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 44056
- From: Philippe Troin <phil@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Could multios response positively to isatty(1) test?
- Date: Thu, 07 Feb 2019 10:56:14 -0800
- In-reply-to: <CAKc7PVDrrkNi7KL_UfEGG-hcxcfb6XXMF44JdHrBz5B2iG=78w@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> <1549558209.5863.7.camel@samsung.com> <CAKc7PVDrrkNi7KL_UfEGG-hcxcfb6XXMF44JdHrBz5B2iG=78w@mail.gmail.com>
On Thu, 2019-02-07 at 18:55 +0100, Sebastian Gniazdowski wrote:
> On Thu, 7 Feb 2019 at 17:50, Peter Stephenson <
> p.stephenson@xxxxxxxxxxx> wrote:
> >
> > 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.
It boils down to ioctl(TCGETS) on linux if you have to know.
It the same ioctl as the one used for tcsetattr/tcgetattr.
Have you tried:
script -c "scrapy crawl $options[@]" log.txt
Phil.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author