Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <5.0.2.1.0.20010412161400.01d282a8@pop.atg.com> X-Sender: bbarber AT pop DOT atg DOT com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 12 Apr 2001 16:20:41 -0400 To: Corinna Vinschen From: Brad Barber Subject: Re: Upcoming changes in the console handler In-Reply-To: <20010409184552.A8132@cygbert.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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