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: Thomas Dickey
Subject: Re: binding a key to OK, EXTRA or HELP does not output selected menu entry
Date: Sun, 4 Aug 2019 20:24:01 -0400
User-agent: NeoMutt/20170113 (1.7.2)

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 :-)

> 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".

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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