GNU bug report logs - #34224
25.1; ansi-term displays garbage on tree(1) command

Previous Next

Package: emacs;

Reported by: m-guelker <at> phoenixmail.de (Marvin Gülker)

Date: Sun, 27 Jan 2019 18:11:01 UTC

Severity: wishlist

Found in version 25.1

Full log


Message #22 received at control <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 34224 <at> debbugs.gnu.org, m-guelker <at> phoenixmail.de
Subject: Re: 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 <at> orcon.net.nz>
> Cc: Marvin Gülker <m-guelker <at> phoenixmail.de>,
>  34224 <at> 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.




This bug report was last modified 6 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.