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 <[email protected]> wrote: > PROMPT_COMMAND=' [[ $? == 148 ]] && stty sane ' > > On Sat, Nov 16, 2024, 11:29 AM David Moberg <[email protected]> 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 <[email protected]> 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 [email protected] >> http://tiswww.cwru.edu/~chet/ >> > >> >
