From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 21b3ed9e for ; Thu, 7 Feb 2019 17:56:22 +0000 (UTC) Received: (qmail 1759 invoked by alias); 7 Feb 2019 17:56:08 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44055 Received: (qmail 4238 invoked by uid 1010); 7 Feb 2019 17:56:08 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f65.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.210.65):SA:0(-2.0/5.0):. Processed in 3.000236 secs); 07 Feb 2019 17:56:08 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RPwDgy5bU0cLn2KhS9GH1PG58GaG4kqvZB9byJXLld4=; b=t1DncR5xY33xhHlLvj3L9+o8aphC7sBROzJqBG4iyVoNUe7dl3qOcg4o6LMZ0uilDK 6W02gi3ervSK+isSrIWopqvOu0GBttct6Md4dARn0rnlfxEUXMy0mY/VdYbUZc0vGEHf cz4Rc6llD+JXkILjTorm1397ssqtfdTonnIQXac9IHZpbhrM1hkHgd0d+9ktgve+Q6k6 XtgMctNyEZdgHVsTCC/s9GT2aeR/42VcnPDEugTWsHZ/zKSmsgs8+Hy2MO0h7xZhyjSj WE4I0uJDq0ppOvQB5mVVA1L5ac8ITbxD1cSY6LG5Y7lhhhzkc0IWhKKufb1Gz9BMTCTl 5+sg== X-Gm-Message-State: AHQUAuZTpB0tH3rbJGYrToT+OJ5PEvAUG/5mLszUhlQvLNOWWvQuVlla o1bo8sndSjf5ewS8cKUYfNK1PHjI5QtfH5r/d/6I+Q== X-Google-Smtp-Source: AHgI3Ia8y1DC8taKwNVCloFsI3CQ4BZnv95YzuvLpKZRNhO+uHKUfQ4yKKFKNdRlFlinbG6NqrRmfdQg1s4HBRzC4k0= X-Received: by 2002:a9d:17ca:: with SMTP id j68mr8907419otj.268.1549562163307; Thu, 07 Feb 2019 09:56:03 -0800 (PST) MIME-Version: 1.0 References: <1549551768.5863.1.camel@samsung.com> <1549558209.5863.7.camel@samsung.com> In-Reply-To: <1549558209.5863.7.camel@samsung.com> From: Sebastian Gniazdowski Date: Thu, 7 Feb 2019 18:55:51 +0100 Message-ID: Subject: Re: Could multios response positively to isatty(1) test? To: Peter Stephenson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 7 Feb 2019 at 17:50, Peter Stephenson wr= ote: > > On Thu, 2019-02-07 at 17:41 +0100, Sebastian Gniazdowski wrote: > > On Thu, 7 Feb 2019 at 16:10, Peter Stephenson wrote> Implementing isn;'t necessary =E2=80=93 what's needed is the knowl= edge, that > > original fd=3D1 is a tty,, and conveying that lfurther to the zsh > > process realizing the multios =E2=80=93 i.e.: conveying only the test a= nswer > > to isatty(fd=3D1), 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