[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: |
Wed, 7 Aug 2019 04:42:04 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
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.
https://invisible-island.net/dialog/CHANGES.html#t20190806
--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature