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:41, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> 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. Simple forwarding of
> all data to the terminal through non-terminal. works (a good test: vim
> | cat).

No, that's isn't logical, correct statement. The correct one:

What's needed is the knowledge, that some (one) of mutlios targets is
a tty, and conveying that information upper to the multios-process, so
that it can mark (?) it's exposed to the writer (the application that
needs a terminal) pipe or FD (unsure)

Confirming test: vim | cat works without any problems, so the exposed
to the application pipe or FD doesn't have to implement a terminal.



-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



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