Christian Weisgerber wrote:
> On 2015-10-23, "Ted Unangst" <t...@tedunangst.com> wrote:
> 
> >> To what degree should tools like ls protect terminals from escape codes?
> >
> > I think this is beyond the scope of what ls should care about. du doesn't 
> > have
> > such a check. Does the shell perform a check before tab completing?
> 
> Our ksh, bash, and tcsh all escape unprintable characters.

well, if this is a blocking issue, the putchar line is now changed to print ?
instead of any control characters.

        putchar(c >= ' ' ? c : '?');

Reply via email to