On Fri, Aug 13, 2004 at 09:00:13PM +0200, Joey Hess wrote:
> Package: xterm
> Version: 4.3.0.dfsg.1-6
> Severity: normal
that's xterm 191?
e.g., output from
xterm -v
> The pstree command outputs a process tree, and on a capable terminal
> such as xterm it will use some kind of escape sequences to display line
> drawing characters(?). It seems that this sometimes confuses xterm
> leading to display glitches. Let me try to paste in what I'm seeing:
"sometimes"(?)
- I don't see this behavior when I'm looking for it.
(I saw the previous posting wrt this problem).
much of the posting is relatively simple. However -
> So the indentation is broken with the line drawing characters. At first I
> assumed this was a pstree bug, but then I straced it:
>
> write(1, " \33(0\17tq\33(Bxdm\33(0\17qwq\33(BXFree"..., 41 tqxdmqwqXFree86-debug) = 41
> write(1, " \33(0\17x\33(B \33(0\17mq\33(Bxdm\33("..., 80 x mqxdmqqq.xsessionqwqionqwqfirefo+) = 80
^^^^^^^^^^^^^^
This caught my eye though. It doesn't correspond to one of the terminal
descriptions in ncurses. Checking the source (psmisc), I see that it's
using hardcoded escape sequences in combination with some termcap features.
It also has some hardcoded behavior which would make it produce garbage
for ISO-8859-1 text, since it assumes that it must be UTF-8. (I'm
looking at the out_char function in pstree.c). That makes it look like
a problem in psmisc rather than xterm.
> The strace shows that pstree is properly indenting the lines that do not
I'm not certain about "properly" unless I take the whole thing apart.
I'll look at the typescript (though it seemed mangled by the newsreader).
> diplay indented when it's not straced. Also, notice that after each write()
> output by strace, we see the actual result of the write, and in each case
> xterm managed this time to display the leading indentation properly.
>
> I sshed around to a few other systems, and pstree on those has the
> occasional missing indentation too. These systems were running various
> versions of pstree. I also tried running it in gnome-terminal, and in
> uxterm, and in both cases it displayed ok. I cleared all X resource
But when you're running in xterm, what locale?
> indentation. I hope it's enough to help reproduce the bug.
I don't see the $TERM and locale variables which are in use - those
are relevant.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Attachment:
pgp1Ps5ZKj6T9.pgp
Description: PGP signature