Everywhere I checked, I can read that dialog exits with status 255 when the [Esc] key is pressed. This is correct here too. However, in addition to the [Esc] key, all Numpad keys but [/],[*], [-] and [Enter] close dialog with return code 255.
Try this:
Code:
dialog --inputbox text 10 40
echo $?
Type in any text; whenever you use one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, . or + (from the numpad), the dialog closes and the echo $? will show the exit status "255". This is extremely nasty since it's hard to make my users understand that the numpad numbers are taboo when typing in the application. Also, there's no way to trap them since they return the same code like escape.
Is this a known bug, an undocumented feature? and how to get around it?