Mail Archives: cygwin/2001/04/12/16:29:37
At 12:45 PM Monday 4/9/2001, you wrote:
>Hi,
>
>just FYI. I have added two features to the console handler code in
>Cygwin. If you are living on the edge (using developer snapshots of
>Cygwin) you get these features working by changing the cygwin
>termcap entry or the cygwin terminfo file. For tcsh and vim it's
>ok just to change termcap.
Good news. I look forward to the new version.
I've also noticed that if you scroll the screen, a CR goes to the line
after the screen instead of the last line in the screen buffer. As a
result, new text overwrites old text.
My memory is that the pre-cygwin version of tcsh, restored the screen
as it was prior to the scroll.
As a convenience, I think the 'escape' key should similarly restore the screen,
--Brad
>- Insert mode.
>
> Tcsh users know that the command line has become scrubby when
> trying to insert characters.
>
> I have added the following control codes to the console:
>
> "enter_insert_mode", termcap entry "im", terminfo entry "smir".
> The escape sequence is
>
> ESC [ 4 h
>
> "exit_insert_mode", termcap entry "ei", terminfo entry "rmir".
> The escape sequence is
>
> ESC [ 4 l
>
>- Save/restore console.
>
> Vim users which also use vim on other OSes know that vim saves
> the screen on startup and restores the screen on exit. For that
> purpose it uses the "enter_ca_mode", "exit_ca_mode" capabilities
> of a terminal. I have added two console codes to save and restore
> the screen content:
>
> Save console: ESC [ ? 47 h
> Restore console: ESC [ ? 47 l
>
> This allows creating the following termcap/terminfo entries
> which are used by vim and which can simply get stolen by the
> xterm entry:
>
> "enter_ca_mode", termcap entry "ti", terminfo entry "smcup".
> The escape sequence is:
>
> ESC 7 ESC [ ? 47 h
>
> "exit_ca_mode", termcap entry "te", terminfo entry "rmcup".
> The escape sequence is:
>
> ESC [ 2 J ESC [ ? 47 h ESC 8
>
>
>Corinna
>
>--
>Corinna Vinschen Please, send mails regarding Cygwin to
>Cygwin Developer mailto:cygwin AT cygwin DOT com
>Red Hat, Inc.
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -