delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/10/10:17:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 9 Apr 2001 18:45:53 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Upcoming changes in the console handler
Message-ID: <20010409184552.A8132@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i

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.

- 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019