LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-04-2007, 03:52 AM   #1
ricky_ds
Member
 
Registered: Aug 2004
Location: Bern, Switzerland
Distribution: Kubuntu, FC, RHEL
Posts: 48
Blog Entries: 2

Rep: Reputation: 17
Question dialog exits with code 255 when typing numbers with numpad


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?
 
Old 07-04-2007, 09:20 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Works in slackware ... unless the numLock key isn't pressed.
But then you wouldn't get numbers, either....


Cheers,
Tink
 
Old 07-05-2007, 02:06 AM   #3
ricky_ds
Member
 
Registered: Aug 2004
Location: Bern, Switzerland
Distribution: Kubuntu, FC, RHEL
Posts: 48
Blog Entries: 2

Original Poster
Rep: Reputation: 17
Tinkster, this is interesting. I'm having the problem on RHEL4 and RHEL5. What version of dialog do you have?
RHEL4: cdialog (ComeOn Dialog!) version 1.0-20040731
RHEL5: cdialog (ComeOn Dialog!) version 1.0-20051107
Or maybe the keyboard is the problem?
 
Old 07-05-2007, 04:17 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
$ dialog --version
Version: 1.0-20060126


But is *your* NumLock enabled?


Cheers,
Tink
 
Old 07-06-2007, 01:48 AM   #5
ricky_ds
Member
 
Registered: Aug 2004
Location: Bern, Switzerland
Distribution: Kubuntu, FC, RHEL
Posts: 48
Blog Entries: 2

Original Poster
Rep: Reputation: 17
Lightbulb

Yes, of course, my NumLock is enabled. I've been able to research this a little bit further and noticed that the problem is coming from the ssh client Putty on windows. I've tried several different keyboard settings but none would work as expected.

When directly logging on the machine, the numbers work well, but it closes with return 255 when pressing any of /*-+.
 
  


Reply

Tags
dialog, exit status


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are Broadcasts to 255.255.255.255 Routed MQMan Linux - Networking 6 11-23-2005 03:16 PM
Logs full of hits to 255.255.255.255; how to stop logging? mac_phil Mandriva 2 02-23-2004 11:25 AM
left numeric keyboard is typing numbers (problem with NumLock on/off) zstingx Linux - General 0 11-10-2003 10:59 AM
UDP broadcast 255.255.255.255 java8964 Linux - Networking 0 10-29-2003 03:05 PM
configuring RH 7 for a subnet mask of 255.255.255.224 CDPL Linux - Networking 2 04-20-2002 10:06 AM


All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration