Subject: Re: bug#34224: 25.1; ansi-term displays garbage on tree(1) command

From: Phil Sainty <[email-masked]>
Date: Tue, 29 Jan 2019 10:10:54 +1300

On 2019-01-29 04:47, Eli Zaretskii wrote:
> If someone can tell what does 'tree' do to "turn on ANSI line graphics
> hack", then perhaps we could decide whether there's something wrong
> with how Emacs interprets the bytestream delivered to it by 'tree' in
> this mode.

Does this help?

$ tree -A | cat -v
.
^[(0tqq ^[(Bbar
^[(0tqq ^[(Bfoo
^[(0mqq ^[(Bsubdir
^[(0    tqq ^[(Bbar
^[(0    mqq ^[(Bfoo

1 directory, 4 files

$ tree -A
.
0tqq Bbar
0tqq Bfoo
0mqq Bsubdir
0    tqq Bbar
0    mqq Bfoo

1 directory, 4 files

$ tree
.
├── bar
├── foo
└── subdir
     ├── bar
     └── foo

1 directory, 4 files

I note that the 'tqq' and 'mqq' match up with the VT column at:

http://www.robelle.com/smugbook/linedraw.html