Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Could multios response positively to isatty(1) test?
- X-seq: zsh-workers 44053
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: Could multios response positively to isatty(1) test?
- Date: Thu, 7 Feb 2019 17:46:38 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=e/dNC9fEZzcCBoDthEf6fMHL0qziUDNvRB1UpDgH1As=; b=dOtkXJpeW3mNp7Cvk52SIIDW8MIQzUTvN3TNfE4R+nnbMUvdQTwTrJdcG8AFAlVxb4 Hgmbx3gjwvGy96YEqmJYHPeFn4Nasz6KRTN7HobxY+73IVIZBpdrn11itXgTVyKkIqX3 XD/btjm8glmyMijN/nnTxv/DpIQ3cvowRNFqYP6ywrzcXS2b3V44RmU4xcewGBUkFOWQ st51T6RH92QkxsRMjjC4/Dt7omHXwTotFzWr6IV8a4jEev62Vm88wSQCdEgMsezhq7zF zz7LxPTEVYFTtOM5cxLsn1IoKNQyIFxcnfXff5596vMtD7WYhl6pGKxcpcWnHtFwnRuk aIJg==
- In-reply-to: <CAKc7PVDYtms1L85GvNufswZ7zm1DFxWUwhHXvP_CEhkPT==9LQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20190207132020epcas2p21907126ab733665c20d5881eb13488ef@epcas2p2.samsung.com> <CAKc7PVAdyyvBAmpMHpiBt4=_C9aMnGz88Fy1h1OYhAdNOX5qOQ@mail.gmail.com> <1549551768.5863.1.camel@samsung.com> <CAKc7PVDYtms1L85GvNufswZ7zm1DFxWUwhHXvP_CEhkPT==9LQ@mail.gmail.com>
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