rxvt-unicode sgr0 terminfo entry incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ncurses (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The rxvt-unicode terminfo entry for sgr0 is currently set to \E[m\017, but this should be \E[m\(B. The original rxvt entry uses \016 and \017 for smacs and rmacs respectively and the sgr0 entry is correspondingly set to \E[m\017. For rxvt-unicode the smacs and rmacs entries have been changed to \E(0 and \E(B, but the sgr0 entry has not been updated to reflect the different rmacs sequence.
Steps to reproduce the error: the following two shell command sequences should result in the same output (two checkerboard blocks followed by two a's), but the first result in incorrect output (two times two checkerboard blocks):
tput smacs ; echo aa ; tput sgr0 ; echo aa ; tput rmacs
tput smacs ; echo aa ; tput rmacs ; echo aa ; tput rmacs
Note that I ended the sequence with tput rmacs to ensure that the terminal is left in normal character set mode, and not in the (unreadable) alternate character set mode.
Note that the rxvt-unicode entry is in the ubuntu diff, and not in the original source package. Bug found in karmic release, but may also exist in previous releases.
ProblemType: Bug
Architecture: amd64
Date: Wed Apr 21 23:50:02 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: ncurses-base 5.7+20090803-
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: ncurses
Uname: Linux 2.6.31-20-generic x86_64
XsessionErrors: (polkit-
This is fixed at least in Ubuntu precise:
$ dpkg -S /lib/terminfo/ r/rxvt- unicode r/rxvt- unicode
ncurses-base: /lib/terminfo/
$ infocmp -1 rxvt-unicode | grep sgr0
sgr0=\E[m\E(B,