Thomas Dickey a écrit :
Perhaps aptitude is sending some interesting escape sequence that the
other terminals are finding incomplete. (xterm has a few - the OSC
ones, but since xterm's working, it's not obvious to me). I'd try
capturing the output using script, and analyze that.
I am afraid this won't help
I did these on an Eterm:
$ echo $TERM
Eterm
$ aptitude
# screen is blanked and nothing at all is displayed
# keystroke: qo<return>^C (o stands for oui (french lmocalization))
$ qo
qo:command not found # what I typed was buffered and sent to terminal
when I quit (with ^C)
$ aptitude|tee output-aptitude
## instead of freezing the display is *normal* and i've got the whole
sequence which causes the display in output-aptitude file
$ file output-aptitude
output-aptitude: data
$ declare -x TERM="Eterm"
$ links http://localhost
# keystroke: anything (they are neither displayed nor buffered)
keystroke: ^C
$
$ links|tee output-links # does not display anything at all
# keystrokes does not do anything and are not buffered
## *and*
$ file output-links
output-links: empty
$ declare -x TERM="xterm"
$ links|tee output-links # display is ok
$ file output-links
output-links : ASCII text, with very long lines, with CR line
terminators, with escape sequences, with overstriking
It is the same with mrxvt (rxvt) and rxvt-unicode id if i tee the output
of aptitude the display is ok...
Here is what I get:
$ echo $TERM
Eterm # same with rxvt
$ aptitude #blanks screen and does not display anything else at all
# and keystroke are sent back to the terminal (they are affecting after
QUIT (^C))
$ aptitude |tee /dev/null #the display is OK and I get rid of the
scrolling problem, and <home> and <end> key work (they don't work if
declare mrxvt as xterm)
$ links
# nothing is sent to the terminal at all. keystroke are black holed
$ links |tee output-links # same thing, and output-links file is empty
This happens either with Eterm, mrxvt (rxvt) and rxvt (rxvt-unicode)
I can't find aptitude 0.4.10-1+b2 change log
mrxvt has not been changed since December 07 (I'm using Debian latest
I found an interesting workaround for aptitude (|tee /dev/null (!))