bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding a key to OK, EXTRA or HELP does not output selected menu ent


From: sgerwk
Subject: Re: binding a key to OK, EXTRA or HELP does not output selected menu entry
Date: Mon, 12 Aug 2019 11:37:02 +0000 (UTC)

> From: Thomas Dickey <address@hidden>
> On Thu, Jul 25, 2019 at 03:04:20PM +0000, sgerwk--- via Bug-ncurses wrote:
>> This is about dialog-1.3-20190211
>> My understanding is that binding a key to OK, EXTRA or HELP in dialog makes
>> it the same as pressing the corresponding button.  The return value is
>> indeed correct, but the selected entry is not output.
>>
>> Example:  file "bindings" contains only "bindkey menubox ^k OK", and I run:
>>
>> DIALOGRC=bindings dialog --last-key --extra-button --help-button \--menu "menu" 20 70 20 abc efgh fgsdf ere >2>| log; echo $?; ls -l log
>>
>> Pressing Enter writes "abc" in "log".  Pressing Ctrl-K does not.  The
>> returnvalue is correct (0), and is also correct if I bind Ctrl-K to the
>> otherbuttons.
>
> That part's a bug (unintended behavior).  I'm considering how to improve this.
>
>> Also, I do not see where --last-key outputs the last key pressed.
>
> The --last-key option doesn't do anything for menubox (not yet, anyway).
> See the bug report which asked for the feature:
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697607
>
> The menubox wasn't in that :-)

Thanks for fixing it!

>> Also, the man page tells that \k should bind a simple 'k', but that does
>> notwork for me.
> I don't see which part of the manual you might be reading for "\k".

Section "KEY BINDINGS" says: "Finally, it allows any single character to be escaped with a backslash"
(third paragraph).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]