keyboard problem [message #33674] |
Sun, 19 January 2003 13:08  |
Chris[1]
Messages: 23 Registered: January 2003
|
Junior Member |
|
|
Hi;
We recently moved to IDL 5.5, running on a Dell Inspiron laptop under Linux
8.0, with an NVidia Gforce 4 card. Everything works really well except for
one irritating bug - IDL doesn't recognize the arrow keys. No other program
I run has that problem, so I assume it is either an issue with IDL or the
way I have it set up. Any thoughts out there about how to fix this problem?
TIA,
Chris
|
|
|
Re: keyboard problem [message #33745 is a reply to message #33674] |
Wed, 22 January 2003 09:41  |
Chris[1]
Messages: 23 Registered: January 2003
|
Junior Member |
|
|
Thanks for the several offers of help. Though they didn't fix it directly,
it did lead to a partial solution - the problem only occurs in a
gnome-terminal window, not an xterm. So I can work from there.
Thanks again
Chris
"Chris" <not@this.address> wrote in message
news:2tEW9.294$mL1.20524@ursa-nb00s0.nbnet.nb.ca...
> Hi;
> We recently moved to IDL 5.5, running on a Dell Inspiron laptop under
Linux
> 8.0, with an NVidia Gforce 4 card. Everything works really well except for
> one irritating bug - IDL doesn't recognize the arrow keys. No other
program
> I run has that problem, so I assume it is either an issue with IDL or the
> way I have it set up. Any thoughts out there about how to fix this
problem?
>
> TIA,
>
> Chris
>
>
|
|
|
Re: keyboard problem [message #33766 is a reply to message #33674] |
Mon, 20 January 2003 16:55  |
sciprogrammer
Messages: 2 Registered: January 2003
|
Junior Member |
|
|
"Chris" <not@this.address> wrote in message news:<2tEW9.294$mL1.20524@ursa-nb00s0.nbnet.nb.ca>...
> Hi;
> We recently moved to IDL 5.5, running on a Dell Inspiron laptop under Linux
> 8.0, with an NVidia Gforce 4 card. Everything works really well except for
> one irritating bug - IDL doesn't recognize the arrow keys. No other program
> I run has that problem, so I assume it is either an issue with IDL or the
> way I have it set up. Any thoughts out there about how to fix this problem?
>
> TIA,
>
> Chris
Try using HELP,/ALL_KEYS to see what IDL thinks your keyboard mapping
should be. On my system I have these settings for the arrow keys:
LEFT ARROW (\033[D) <Cursor Left>
RIGHT ARROW (\033[C) <Cursor Right>
UP ARROW (\033[A) <Previous Line>
DOWN ARROW (\033[B) <Next Line>
You can experiment with key mappings using DEFINE_KEY. Check the
documentation for the exact synax, but it would be something like
DEFINE_KEY,'LEFT ARROW',ESC='SomeEscapeSequence',/BACK_CHARACTER
DEFINE_KEY,'RIGHT ARROW',ESC='SomeEscapeSequence',/FORWARD_CHARACTER
DEFINE_KEY,'UP ARROW',ESC='SomeEscapeSequence',/PREVIOUS_LINE
DEFINE_KEY,'DOWN ARROW',ESC='SomeEscapeSequence',/NEXT_LINE
If you figure it out, just put the commands in your .idl_startup file.
|
|
|