[neomutt-users] Shortcut messed up

Jakub Jindra jakub.jindra at jakubjindra.eu
Mon Jun 1 10:54:20 CEST 2020


Hi Meino,

Let's keep the discussion here on neomutt-users list.

I've found this in neomutt issues on github:
https://github.com/neomutt/neomutt/issues/1195#issuecomment-388016804

Hope this will finally help you.

Best,
JJ

On 2020-06-01 10:45, tuxic at posteo.de wrote:
>Hi,
>
>unfortunately this does not help.
>
>Before applying your fix ^O (for example) was recognized
>by neomutt but mapped to a wrong function or a "key not bound"
>message was displayed.
>
>The fix does not change that in any way.
>
>All this has worked with the release version of neomutt.
>With code of the repo afterwareds it does not work anymore.
>The terminal setting were not changed in between.
>Any other program using this kind of shortcuts works
>perfectly (vim for example, externally called in called from
>inside neomutt.
>
>Without your fix nothing has changed.
>
>My unaltered stt settings are:
>
>
>speed 38400 baud;
> rows 76; columns 210; line = 0;
>intr = ^C;
> quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
>eol2 = <undef>;
> swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
>werase = ^W;
> lnext = ^V; discard = ^O; min = 1; time = 0;
>-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
>-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
>-iuclc -ixany imaxbel iutf8
>opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
>isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
>echoctl echoke -flusho -extproc
>
>Cheers!
>Meino
>
>
>On 06/01 10:12, Jakub Jindra wrote:
>> 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
>
>

-- 
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/0d07a4e4/attachment.sig>


More information about the neomutt-users mailing list