This is a bad incarnation of
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=265553
As said there:
psmisc generates a line including escape sequences,
and then truncates it to fit in the width of the screen. It
adds this "+" to indicate the line was chopped. Since it
doesn't take the escape sequences into account, the
lines are often truncated at much shorter than
$COLUMNS displayable characters, and also it could
chop a line in the middle of an escape sequence
If that happens while pstree outputs line-drawing characters
in the last output line, the terminal becomes unusable. See
the attached typescript. Relevant environment variables:
LANG=ru_RU.KOI8-R
TERM=xterm
The version of NCurses is 20050319. xterm is started as
"LANG=ru_RU.KOI8-R xterm -lc"
Anonymous
Broken typescript
Logged In: YES
user_id=21630
I'm trying to find a nice way of pstree detecting this sort
of terminal and doing the right thing. I suspect the REAL
fix is to remove the hard-coded evilness that does the line
drawing characters and make proper curses calls.
Logged In: YES
user_id=1037618
A hackish fix is available at:
http://www.linuxfromscratch.org/~alexander/patches/psmisc-21.6-acsc-1b.patch
Logged In: YES
user_id=1037618
Actually, I'd prefer dropping the code that draws lines
using escape sequences. It's just too buggy.
Logged In: NO
http://bugs.debian.org/288856 is a duplicate of this
Logged In: YES
user_id=21630
a work-around is in place for 21.7 onwards, it will default
to ASCII type.