[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fg via keybind modifies tty settings
From: |
Martin D Kealey |
Subject: |
Re: fg via keybind modifies tty settings |
Date: |
Mon, 11 Nov 2024 10:14:24 +1000 |
On Fri, 8 Nov 2024 at 05:19, Chet Ramey <chet.ramey@case.edu> wrote:
> The bind -x execution code could restore the terminal settings to icanon
> mode before executing the command, and then set them back to what readline
> is using (-icanon) before returning. This is not backwards compatible
> and would break all the bind -x bindings that assume the terminal is the
> way readline set it, so I'm not inclined to do it.
>
This would seem to indicate a requirement for two different bind options,
the existing one that assumes the sub-process does not interact with the
terminal (or expects the terminal to be in raw mode), and a new one that
provides a shortcut for "replace the current input buffer and submit it as
if the user had pressed enter".
Then again, one could simply define the function key as ^E^Ufg^J
Perhaps what's really needed is to make sure that "ordinary" commands bound
using bash -x are completely broken (so people won't try to use them),
rather than almost working.
-Martin
- Re: fg via keybind modifies tty settings, David Moberg, 2024/11/05
- Re: fg via keybind modifies tty settings, Chet Ramey, 2024/11/07
- Re: fg via keybind modifies tty settings,
Martin D Kealey <=
- Re: fg via keybind modifies tty settings, Chet Ramey, 2024/11/12
- Re: fg via keybind modifies tty settings, David Moberg, 2024/11/16
- Re: fg via keybind modifies tty settings, #!microsuxx, 2024/11/16
- Re: fg via keybind modifies tty settings, #!microsuxx, 2024/11/16
- Re: fg via keybind modifies tty settings, David Moberg, 2024/11/16
- Re: fg via keybind modifies tty settings, #!microsuxx, 2024/11/16
- Re: fg via keybind modifies tty settings, #!microsuxx, 2024/11/16
- Re: fg via keybind modifies tty settings, Martin D Kealey, 2024/11/17
- Re: fg via keybind modifies tty settings, Chet Ramey, 2024/11/18
- Re: fg via keybind modifies tty settings, David Moberg, 2024/11/27