[TUHS] xvi

Steffen Nurpmeso steffen at sdaoden.eu
Sun Jul 20 05:10:31 AEST 2025


Marshall Conover wrote in
 <CAK0pxsFBAd6BdpZ9d3KTuPQS_JwUdhKtniSLXzFVUD3kQD5b5w at mail.gmail.com>:
 |In my experience, for the sake of mental organization and not sending the
 |wrong command to the wrong place, there's a case to be made for
 |"namespacing" all activity around a certain task/environment in a singular
 |shell, which makes job handling with fore- and backgrounding relevant. For
 |example, I'll be iterating on a script targeting a new deployment
 |environment that requires certain env vars and a history of related
 |commands, then running it to see if it works, and reflexively I'm more
 |likely to open & edit the script, then ctrl+z the editor and run the script
 |than to open the editor in a separate window in my experience. That said, I
 |certainly have sometimes thought "you know, you could just edit the script
 |in another window."
 |
 |I did only just learn about ":stop" with this message, though. For me, the
 |surprising thing is implementing in vim what users can do by hitting ctrl+z
 |(and which I do daily in vim with ctrl+z). Even before getting to the
 |window system, the shell's already got this covered by giving you the
 |ability to background the application: why add lines of code to your
 |application to do it again? But perhaps there is a scripting utility to
 |having it within vim itself.

You may have the desire to strip termios/ISIG at times due
to whatever reasons (raw input mode), but still want the
functionality to happen upon a certain (configurable) keypress.
If you then have the function, why not also offer it to users.
(Having said that, the MUA i maintain, for example, has
     ‘\cZ’     raise(3)∞ ‘SIGTSTP’ (mle-raise-tstp).
which then does exactly that, after restoring normal termios;
but that is just how it came.)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
|
|During summer's humble, here's David Leonard's grumble
|
|The black bear,          The black bear,
|blithely holds his own   holds himself at leisure
|beating it, up and down  tossing over his ups and downs with pleasure
|
|Farewell, dear collar bear


More information about the TUHS mailing list