Disabling start and stop keys

Derek Martin invalid at pizzashack.org
Tue Nov 15 00:24:06 UTC 2022


On Mon, Nov 07, 2022 at 11:11:33PM -0000, Jeffery Small wrote:
> I have a script that fires up mutt in an xfce4-terminal window.  In my ksh
> shell .kshrc file, I use stty to disable (undef) the stop (^S) and start
> (^Q) characters.  However, when I run mutt as follows:

I don't have ksh installed to test (and I'm too lazy to install it),
but I suspect your .kshrc file is not being read because the shell
that xfce4-terminal launches to run mutt is not an interactive shell.
But the question is, if you're doing this via a script to begin with,
why rely on .kshrc?  Run stty in the script before starting mutt...
or better yet, make the thing that xfce4-terminal starts be the shell
script that starts mutt, and consists of this:

#!/bin/sh
stty start undef
stty stop undef
exec /usr/local/bin/mutt

Call that script, say, /foo/bin/mutt, and then start with

xfce4-terminal $options -e /foo/bin/mutt

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20221114/3bdcb37c/attachment.asc>


More information about the Mutt-users mailing list