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

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



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", and I
don't think it would be useful for the shell to behave like that in
general even if it could.

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