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

Re: Are completion and prompt expansion 8-bit clean?



On Jun 23, 10:15pm, Zefram wrote:
> Subject: Re: Are completion and prompt expansion 8-bit clean?
> 
> In one sense, yes: they can handle 8-bit data.  In fact, they can handle
> arbitrary binary data.  In another sense, no: they do not treat all 8-bit
> data as printable, even when the display will interpret them as Latin-1
> or whatever.  Unfortunately, Unix does not provide a way to find out
> what characters are printable on a particular display device, so we have
> to choose in the source which characters zsh will treat as printable.

Sounds like a job for a module ... supply several localized tty-output
modules, and select one to load based on $TERM or a capability of $TERM
or some other environment setting ($TERM combined with $LANG, perhaps).



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