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