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 44055
- 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 18:55:51 +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=RPwDgy5bU0cLn2KhS9GH1PG58GaG4kqvZB9byJXLld4=; b=jxPxDVUE+xQj0UzuIaNq7J42PTFPuS3NkzKyH1v/AqgNVjE0mUroTc5tVDI5c58gKZ ViDhD0m1mdk/2ahT/eqmkn65tZ2C5XqOMCZwrFz8O3eQ70baQXtKS2zmESMMDJxNkrs9 p0IbjVJAvH7Y2i6NkRGdlGlgABdcae+8lyq81gFkWweIyAxxreHBSSp+9IjEnEzMv4Ks CtuWE+qQf7/TCeCiD04mypSfPGNLWQ3kkGaPJKqr5XZwHY+pENaYzerOaoRaWi6NkRxh wLC6s/PwMmB8hkgQfWsf0QFqMYha5+FslmsQZpPPKOHFTtxWZcR+PFsq4HC+SvnC02oO eqgw==
- In-reply-to: <1549558209.5863.7.camel@samsung.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> <1549558209.5863.7.camel@samsung.com>
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