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

Re: Could multios response positively to isatty(1) test?



On Thu, 7 Feb 2019 at 17:50, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
>
> On Thu, 2019-02-07 at 17:41 +0100, Sebastian Gniazdowski wrote:
> > On Thu, 7 Feb 2019 at 16:10, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote> Implementing isn;'t necessary – what's needed is the knowledge, that
> > original fd=1 is a tty,, and conveying that lfurther to the zsh
> > process realizing the multios – i.e.: conveying only the test answer
> > to isatty(fd=1), not the terminal implementation.
>
> isatty() is part of the operating system, it doesn't have a way of
> checking for "not a real TTY but pretending to be one except actually it
> isn't really even pretending to be one but it might work anyway"

Yes it's a part of the operating system, and i wonder how it works? I
suspect that there's just a flag needed to be set on the FD exposed to
the application.

> The right fix for pty behaviour is in some kind of terminal interface,
> not in the core shell.
>
> pws



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