[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34224: 25.1; ansi-term displays garbage on tree(1) command
From: |
Eli Zaretskii |
Subject: |
bug#34224: 25.1; ansi-term displays garbage on tree(1) command |
Date: |
Tue, 29 Jan 2019 18:17:00 +0200 |
severity 34224 wishlist
thanks
> Date: Tue, 29 Jan 2019 10:10:54 +1300
> From: Phil Sainty <psainty@orcon.net.nz>
> Cc: Marvin Gülker <m-guelker@phoenixmail.de>,
> 34224@debbugs.gnu.org
>
> 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
Yes, thanks. These are escape sequences which term.el doesn't
currently support:
(defun term-emulate-terminal (proc str)
[...]
;; Ignore NUL, Shift Out, Shift In.
((or ?\0 #xE #xF 'nil) nil))
Patches to add such support are welcome.