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 44054
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: Could multios response positively to isatty(1) test?
- Date: Thu, 7 Feb 2019 16:50:09 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190207165012euoutp017174685e47f83618294c7b0854d05f03~BIvvqdDrV1705517055euoutp01m
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1549558212; bh=vVgW99ardcm6Ysf4Ehi4tHP1Eoxwq5su4W1EBNs2+/w=; h=Subject:From:To:Date:In-Reply-To:References:From; b=tArNv8EOmWTFpFsGvquQ0bGYvdovNe5qcEFwmG734Qp0hT3vF10f2Rljx5s+iMzoh atEyEgwNXOw23mXaC3tIOto2IyDKEPP3Qa7o4FKQLoBqy7HOQkxL2vyf+/iI14fDea 6ffzEeBKfjLKOMbuApaRLThNifgdJtSQbcCnzIlA=
- 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, 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