[neomutt-users] Shortcut messed up

Jakub Jindra jakub.jindra at jakubjindra.eu
Mon Jun 1 10:12:30 CEST 2020


Hi,

This is not a bug. It's caused by your terminal device configuration.

Running ':exec what-key' in neomutt and pressing ^O won't do anything 
until you unset discard control character in using 'stty discard undef'

I'm not educated so well in this matter. Changing this configuration may
affect behaviour of other applications.

See my example output:
----
$ stty -a
speed 38400 baud; 68 rows; 118 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
	-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
	-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel iutf8
	-ignbrk brkint -inpck -ignpar -parmrk
oflags: opost onlcr -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
	-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
	eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
	min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
	stop = ^S; susp = ^Z; time = 0; werase = ^W;

$ stty discard undef
$ stty -a
speed 38400 baud; 68 rows; 118 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
	-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
	-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel iutf8
	-ignbrk brkint -inpck -ignpar -parmrk
oflags: opost onlcr -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
	-dtrflow -mdmbuf
cchars: discard = <undef>; dsusp = ^Y; eof = ^D; eol = <undef>;
	eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
	min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
	stop = ^S; susp = ^Z; time = 0; werase = ^W;
----

After disabling discard control character neomutts correctly reports ^O key press.


On 2020-06-01 08:56, tuxic at posteo.de wrote:
>Hi,
>
>newer version from the repo after the latest release seem to handle
>native keyboard shortcut (like ^O and such) at least so differently,
>that I can't figure out how to get them back working.
>
>Was there something changed in this context?
>Do I need to adapt my configs somehow?
>Is this a bug?
>
>Cheers!
>Meino
>
>

-- 
Jakub Jindra  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20200601/77656f31/attachment.sig>


More information about the neomutt-users mailing list