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 50280152 for ; Thu, 7 Feb 2019 16:47:03 +0000 (UTC) Received: (qmail 18049 invoked by alias); 7 Feb 2019 16:46:53 -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: 44053 Received: (qmail 22403 invoked by uid 1010); 7 Feb 2019 16:46:53 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f53.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.53):SA:0(-2.0/5.0):. Processed in 0.839691 secs); 07 Feb 2019 16:46:53 -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=e/dNC9fEZzcCBoDthEf6fMHL0qziUDNvRB1UpDgH1As=; b=dOtkXJpeW3mNp7Cvk52SIIDW8MIQzUTvN3TNfE4R+nnbMUvdQTwTrJdcG8AFAlVxb4 Hgmbx3gjwvGy96YEqmJYHPeFn4Nasz6KRTN7HobxY+73IVIZBpdrn11itXgTVyKkIqX3 XD/btjm8glmyMijN/nnTxv/DpIQ3cvowRNFqYP6ywrzcXS2b3V44RmU4xcewGBUkFOWQ st51T6RH92QkxsRMjjC4/Dt7omHXwTotFzWr6IV8a4jEev62Vm88wSQCdEgMsezhq7zF zz7LxPTEVYFTtOM5cxLsn1IoKNQyIFxcnfXff5596vMtD7WYhl6pGKxcpcWnHtFwnRuk aIJg== 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=e/dNC9fEZzcCBoDthEf6fMHL0qziUDNvRB1UpDgH1As=; b=GK5q+32Z2C+LGUBDejF0DJo9mGeKsBjNVADC/6p8D3uR/nsv2LxsZGwl+k0rEcPis3 /jCkhfKu1AwWn3BoT1ioScRHpIv7BV+O4El+waLk1DFxK9d86Xc7CiI5wvx8Ism9M1ZE VhfY4Caq+EiAWE+0q/N42m9BdNMT9UxHwskk/+zMOfAwxNwRwqGUzH43CjoskF2pPGoi XtDbDVpMdpPW2lchQJJmUkrlT6Tt/Oli6IUT2YGnNmsTs8gLNiLsFo46WCRkLlyuWR2D kGCYTGwdMTUW0z0ggqSVgIqqfdvZ17VEtJ+9oii4+k/ebrUhP8elAyiD6EJXpGkN6xIb kILg== X-Gm-Message-State: AHQUAuatWgjPdFShvHYINhhdBgR6r/YrWN9Zin9NkWSmw7fBqiCkBG4P B0WAzUXg4kHFQlpYwf0kCAkHLAzr1yiXW5nvIQd/hpj6 X-Google-Smtp-Source: AHgI3IZC7EMMvLRpQ91SlS0m92MMQJcDDFOZW3nbFf0hv0jg6Gn7G+mIDDxvDWX+Yo/Tgq4RluV+fO8QzgQOofSSeH4= X-Received: by 2002:aca:6545:: with SMTP id j5mr762025oiw.35.1549558009798; Thu, 07 Feb 2019 08:46:49 -0800 (PST) MIME-Version: 1.0 References: <1549551768.5863.1.camel@samsung.com> In-Reply-To: From: Sebastian Gniazdowski Date: Thu, 7 Feb 2019 17:46:38 +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:41, Sebastian Gniazdowski wrote: > Implementing isn;'t necessary =E2=80=93 what's needed is the knowledge, t= hat > 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 ans= wer > to isatty(fd=3D1), 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. --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org