[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
Re: binding a key to OK, EXTRA or HELP does not output selected menu entry
Wed, 7 Aug 2019 04:42:04 -0400
On Sun, Aug 04, 2019 at 08:24:01PM -0400, Thomas Dickey wrote:
> 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.
Thomas E. Dickey <address@hidden>
Description: PGP signature