delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/24/13:08:36

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: Wed, 24 Jan 2001 18:28:24 +0100
From: Jiri TRAVNICEK <jitr AT jitr DOT cjb DOT net>
X-Mailer: The Bat! (v1.48f) Personal
Reply-To: Jiri TRAVNICEK <jitr AT jitr DOT cjb DOT net>
X-Priority: 3 (Normal)
Message-ID: <2721088573.20010124182824@jitr.cjb.net>
To: cygwin AT cygwin DOT com
Subject: cygwin terminal emulation - ANSI escape sequences
Mime-Version: 1.0

Hello folks,
I have the following question and/or suggestion. I have discovered the
cygwin terminal emulation difference to e. g. Linux console in the
following way:

When I send a clear screen ("\e[H\e[J" or "\e[2J]") or a delete line
("\e[K") sequence, everything works well (except of "\e[2J]" on the
Linux console which behaves a bit different but I'm not sure this
sequence is standard either). However there's a difference.

On the Linux console the screen is cleared or line deleted while the
last-selected colour attributes are applied in the cleared space. With
linux console this doesn't work this way as there are always default
attributes applied.

So, this will make a nice(?) blue screen in the Linux console while
nothing special will occur under the Cygwin console:

printf "\e[0;37;44m\e[H\e[J"

The reason while I'm reporting this problem is also the way I
discovered it: VIM uses clearing the screen with Nornmal highlighting
group's attributes set, so when one uses non-default (ie. different
from the terminal's default) background, everything works under Linux
console. Under the Cygwin one the blank area after the end of line
always stays displayed with the default console colours.

To reproduce this in VIM run:

syntax on                     (if not run before)
hi Normal ctermbg=DarkBlue

I'm sorry to say I don't know what the standard says about exact
behaviour of the escape sequences mentioned above. I leave it up to
you whether you change this or not. Since I found this problem with
more terminals, I'm going to ask VIM author for workaround.

Regards

JITR

P. S.: Thanx for your patience, I can never make it shorter... ;-)

-- 

+----------------------------+
| Jiri TRAVNICEK (aka JITR)  |
| e-mail: jitr AT jitr DOT cjb DOT net  |
|         jitr2 AT jitr DOT cjb DOT net |
| WWW: http://jitr.cjb.net   |
+----------------------------+
| ver. 01.02.06/2001-01-08   |
+----------------------------+



--
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