Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Why multios affects >/dev/tty redirection?
- X-seq: zsh-users 23858
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Why multios affects >/dev/tty redirection?
- Date: Tue, 5 Feb 2019 02:28:39 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=nmO1d4IqBypuGmQ7JguBN4oXY305KOGbyA0epoRntr8=; b=NsEfOU8uJKE3OhyhcS1ibfBm3cbFlpMtvH6RF6H6ZaeSDQkMArWJArLbB21BQkVXGl ++B4fSgwy8QovUmaFVc2okgk+wdljrUynYQJ8lkB7Yvt1r3SswgK9rbsuxtTucX8sIpk 2Pyp1I2gBlHx3OrWXly04peSmaRMJlXvViB8yOD6sE66MzQqROYycVxDyWnu77k555Kn d/CAAVJCEn0LZFtfaMbPdpZYblkpwaMfMjsEm8I5y06OiRv0QUm/aSOKGXb360udUplm usHMCs6/lI5mfb2FzYFffW0nKFcLXzhouq2GCDyLX679jeJhHrsZMV83hDfIX/YmYKrb gEFw==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
I have a command:
scrapy crawl 2nd "$@" "${optarray[@]}" 2> /tmp/reply 2> /dev/tty 1>
/tmp/reply 1> /dev/tty
When invoked this way, scrapy (a python project) spawns an interactive
console and it isn't fully usable – e.g.: cursor keys emit escape
sequencess rather t than moving the cursor or browsing history.
However, when I invoke scrqpy in following way:
scrapy crawl 2nd "$@" "${optarray[@]}" 2> /dev/tty 1> /dev/tty
Then the python interactive console spawned by scrapy is working fully
correct – cursor keys are working (ii.e. they move the cursor and
browse the history), the same for Home/End keys, etc.
Is there a way around this? The actual command that I'm running uses
multios to redirect un-colorized messages to a log files:
scrapy crawl 2nd_Crawler "$@" "${optarray[@]}" 2> >(ansifilter \
>>! "$logpth/2nd_scrapy.slog") 2> /dev/tty \
> >(ansifilter >>! "$logpth/2nd_scrapy.slog") 1> /dev/tty
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author