[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#265552: pstree indentation doesn't line up in xterm

On Fri, Aug 13, 2004 at 10:23:11PM -0300, Joey Hess wrote:
> Thomas Dickey wrote:
> > Note the "\E+".  That's an error (in psmisc, since it has no reason to generate
> > something like that).  There's no such escape sequence. 
> Hmm, this looks more and more related to bug #265553 then. As I explain
> 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, as it seems to have done here.

right - part of the width computation assumes the output is UTF-8.
I didn't notice anything more complicated than that (which would be
needed to distinguish the embedded escape sequences from the actual text).

> If that sounds right, I'll reassign this bug to psmisc and merge it with
> #265553. I should have thought that when one finds two strange things,
> they're often related..

yes - that sounds correct.

Thomas E. Dickey

Attachment: pgpiE2hzT9FPt.pgp
Description: PGP signature

Reply to: