Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: The "set" utility outputs binary data



Vincent Lefevre wrote on Thu, Dec 03, 2015 at 15:05:58 +0100:
> The "set" utility outputs binary data (probably due to escape
> sequences for coloring and so on in some parameters such as
> prompts):
...
> This is also important when the output is on a terminal.

History expansions have a similar issue: after running
.
    bindkey ^T f
    (where ^T is a control character, inputted as ^V^T)
.
and then issueing a history expansion
    !!
the ^T is rendered, not as the two characters "^" "T" in reverse video,
but as a literal ^T, which my terminal renders as a box with "0 0 1 6"
inside it (the codepoint).

Printing an easier-to-read representation would be nice, although of
course it's a minor issue.



Messages sorted by: Reverse Date, Date, Thread, Author