[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fg via keybind modifies tty settings
From: |
#!microsuxx |
Subject: |
Re: fg via keybind modifies tty settings |
Date: |
Sat, 16 Nov 2024 16:48:18 +0100 |
trap ' t=$? ; [[ $BASH_COMMAND != *'$'bashcmd* ]] && bashcmd=$BASH_COMMAND
' debug ; PROMPT_COMMAND=' [[ $t == 148 && $bashcmd == vim* ]] && echo ye
&& stty sane '
On Sat, Nov 16, 2024, 4:40 PM #!microsuxx <fxmbsw7@gmail.com> wrote:
> PROMPT_COMMAND=' [[ $? == 148 ]] && stty sane '
>
> On Sat, Nov 16, 2024, 11:29 AM David Moberg <kaddkaka@gmail.com> wrote:
>
>> Ok, is there anything I can do on my user side to get desired behavior?
>> (similar to running `stty sane` every time I send vim to the background.)
>>
>> Den tis 12 nov. 2024 16:49Chet Ramey <chet.ramey@case.edu> skrev:
>>
>> > On 11/10/24 7:14 PM, Martin D Kealey wrote:
>> >
>> > > 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.
>> >
>> > `Ordinary' commands aren't broken. Programs like vim that modify the
>> > terminal settings, which are in the minority, are.
>> >
>> > --
>> > ``The lyf so short, the craft so long to lerne.'' - Chaucer
>> > ``Ars longa, vita brevis'' - Hippocrates
>> > Chet Ramey, UTech, CWRU chet@case.edu
>> http://tiswww.cwru.edu/~chet/
>> >
>>
>
- 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, 2024/11/10
- 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 <=
- 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
- Re: fg via keybind modifies tty settings, Martin D Kealey, 2024/11/28
- Re: fg via keybind modifies tty settings, Martin D Kealey, 2024/11/17