Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: edit-command-line, vim, and pasting
- X-seq: zsh-workers 37065
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: edit-command-line, vim, and pasting
- Date: Thu, 05 Nov 2015 12:09:03 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1446721744; bh=/wZu4dC1aBLd7m+bcGL8426g/EZYMX6mNrC3nJRmqx0=; h=From:cc:Subject:In-reply-to:References:Date:From:Subject; b=ORxQH208o/zSVjWagovZOs7jw8w0SCb/Y/tm4mu2yB34tIrvCakc49aePXscmMe0T/9fAHKT/sIm4XqefHZdhTSGuN3LSXqw7FVvJuNAOeg2h7HS3L32dAdv/xSXfzXJ/f1VwFAV/aivGAy7ffcapCu8/4aAF5cQBvszSMPxZyOaUlDX4nohfpkDxvNIJlhp4lTOLBEp3Mc9inFW5PGAd+2mTrgRSNOBEz9VpKmJdNzHYd98Wn2X49U90cZh8MZoyqPua2G7XyB3IS8pNR/XTEWL45ZN+wgVCWtrGwkO/330doBaCGDgyyeqwhrtXJF4RejLHKSgrrcUdHthK5XuAQ==
- In-reply-to: <151103093149.ZM18895@torch.brasslantern.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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAPZ477Oz5BCB797hpE5SO+X9f_Sz8BXX49nUZ9jPERgVGcXHzw@mail.gmail.com> <151101103921.ZM16163@torch.brasslantern.com> <18028.1446462993@thecus.kiddle.eu> <151103093149.ZM18895@torch.brasslantern.com>
Bart wrote:
> Ideally there'd be some mechanism ala the STTY parameter / ttyctl that
> resets this state every time an external command gets control of the
> terminal.
It needs to send both an end sequence before the external command
gets control and a start sequence once that external command has
finished. I don't think it'd be great to spew out the sequences every
time an external command is run. That could add up to quite a few escape
sequences being generated for completion - and to no real purpose.
I'm not aware of any signals or other mechanisms to detect commands
reading from the terminal after they've been executed and even if there
was, it wouldn't actually help for many reasons.
edit-command-line already does this:
exec </dev/tty
I'm not quite sure why stdin (but not stdout/stderr) is closed for zle
widgets but we could generate sequences only for commands executed with
the tty opened on fd 0. However, it is easier to just handle the case
specifically in edit-command-line.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author