bug-ncurses
[Top][All Lists]
Advanced

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

binding a key to OK, EXTRA or HELP does not output selected menu entry


From: sgerwk
Subject: binding a key to OK, EXTRA or HELP does not output selected menu entry
Date: Thu, 25 Jul 2019 15:04:20 +0000 (UTC)

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 return
value is correct (0), and is also correct if I bind Ctrl-K to the other
buttons.

Also, I do not see where --last-key outputs the last key pressed.

Also, the man page tells that \k should bind a simple 'k', but that does not
work for me.


reply via email to

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