[Pkg-xfce-devel] Bug#719228: xfce4-terminal: Does not understand DECRQM, yet claims to be TERM=xterm

Paul Evans leonerd at leonerd.org.uk
Fri Aug 9 13:48:50 UTC 2013


Package: xfce4-terminal
Version: 0.6.2-3
Severity: normal

The DECRQM sequence (CSI ? ... $ p) is important for programs to be able
to query the current settings of modes, either to be able to restore
them after exit, or just to see what the settings are or probe for
supported features.

A real xterm responds to this. xfce4-terminal, while claiming to be an
xterm (by setting TERM=xterm) does not; instead leaving unprocessed CSI
output directly on the screen. I would copy-paste it here but I can't,
because the output contains -literal- Escape bytes and that would upset
vim, and possibly your mail client ;)

The effect can be observed by

 $ echo -e '\e[?25$p'

A terminal supporting DECRQM should reply something like:

 ^[[?25;1$y

(which, since bash/readline don't understand the response, will just be
printed raw into your next prompt line)

xfce4-terminal however, raw-prints the query bytes, including the
literal U+001B of the leading Escape byte, turning it into the little
square-box pango substitution character.

(Also it could be argued as a second bug that valid but unrecognised CSI
sequences really ought to be stripped from the stream and not displayed
as raw bytes of text; doubly-so should not be displayed with literal
Escape characters in the terminal text buffer).

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xfce4-terminal depends on:
ii  exo-utils           0.10.2-2
ii  libatk1.0-0         2.8.0-2
ii  libc6               2.17-7
ii  libgdk-pixbuf2.0-0  2.28.2-1
ii  libglib2.0-0        2.36.3-3
ii  libgtk2.0-0         2.24.20-1
ii  libpango-1.0-0      1.32.5-5+b1
ii  libvte9             1:0.28.2-5
ii  libx11-6            2:1.6.0-1
ii  libxfce4ui-1-0      4.10.0-3
ii  libxfce4util6       4.10.1-1

Versions of packages xfce4-terminal recommends:
ii  dbus-x11  1.6.12-1

xfce4-terminal suggests no packages.

-- no debconf information---



More information about the Pkg-xfce-devel mailing list