On Mon, 13 Jun 2005, Paul van Tilburg wrote:
Package: ncurses-base
Version: 5.4-5
Severity: normal
Hi,
After I updated ncurses-base to 5.4-5 and restarted my terminal emulator, I
got parts of escape sequences in my zsh prompt. Zsh seems to insert such
escape sequences before all prompts and messages, so I have "[27m" strings
all over the place, of which zsh doesn't know that they aren't displayed so
everything gets misaligned and messy.
I'm not sure what zsh is doing - it's possible that the problem lies
there. But the related change in ncurses is that the termcap interface
is a little smarter for transforming "me" (sgr0 in terminfo) to remove
the alternate character set string. That was a bug fix, exposed by
changing sgr0 from
\E[m^O
to
\E[m\E(B
in xterm's terminfo. ncurses modifies "me" to avoid confusing screen
(and possibly other termcap applications). When I first made that change,
I did not notice that it only worked for single-characters such as ^O.
I'm assuming that zsh is using the termcap interface rather than terminfo.
You can verify this by "nm" on zsh (or - it's probably stripped) using
"strings - /bin/zsh" and looking for tgetent. That would be for termcap.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]