bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

terminfo el1 sequence semantics.


From: Sam Varshavchik
Subject: terminfo el1 sequence semantics.
Date: Sun, 27 Oct 2002 18:54:54 -0500

I'm trying to track down the reason for some occasional screen garbage from an application that uses ncurses 5.2 and runs under gnome terminal 2.0.1 The garbage is reproducible. What I've been able to determine is this: * gnome-terminal uses TERM=xterm * the culprit is the following terminfo sequence:
 clr_bol                       el1        cb        Clear to beginning
of line * terminfo specifies '\E[1K' for 'el1'.
* If I set el1 to \s\b\E[1K for xterm, the corruption I'm observing goes
away. Based on that, it appears to me that:
* ncurses expects el1 to clear from the beginning of the line up to, and
including the current cursor column.
* gnome terminal responds to \E[1K by clearing from the beginning of the
line up to, but not including, the current cursor column. For example:
$ echo -e 'aaaabc\b\E[1K'
c So, who's right?
--
Sam




reply via email to

[Prev in Thread] Current Thread [Next in Thread]