keymapping to use with ncurses 21 Years ago
|
|
Hello,
I am trying to use an application that uses ncurses on RedHat 8 and I am having problems related to the keymapping specially the backspace, PageUp, PageDow, delete, etc keys.
Testing with a well knwo package that uses curses, like "mc" the behaviour is different depending of the emulation. In "xterm" the "PageUp", "PageDown", "delete", .. does nothing. It works fine with "vt100".
Any suggestions?
Thanks in advance
|
|
|
Logged
|
|
35
|
|
The administrator has disabled public write access.
|
|
Re: keymapping to use with ncurses 21 Years ago
|
|
Hi Jose,
running RH 8.0 with version 2.12 of AbsoluteTelnet and it works great. I have tested "mc" and I get all the PgUp/PgDown etc. My settings are:
(From VT Options tab):
VT Keypad
Output is 7 bit
XTerm
XMousing (Allow remote mouse enabled)
(From appearance):
Translation: UTF-8
Running over SSH connection.
If you do a "echo $TERM" on the Linux-system, is the response from the system the same as set in the Preferences?
/msa
[ April 11, 2003, 02:58 AM: Message edited by: Mattias Sandstrom ]
|
|
msa (User)
Expert Boarder
Posts: 124
|
Logged
|
|
The administrator has disabled public write access.
|
|
Re: keymapping to use with ncurses 21 Years ago
|
|
Hello Mattias,
Yes, it works. I also have tested that. The problem arises when you need to use a program que uses "ncurses" and need to use the keypad keys.
So far I have been unable to edit any entry made with fields (curses fields) as it seems that the definition of the string of characters associated with those keys are not the right ones.
In short, I can not delete a character or even move right or left along a field.
I have some programs, in source, for testing if you are interested.
Thanks for your prompt reply.
|
|
|
Logged
|
|
35
|
|
The administrator has disabled public write access.
|
|
Re: keymapping to use with ncurses 21 Years ago
|
|
Hi Jose,
if it is OK with you, I can give it a try and compile the program on my systems, RedHat 7.x and RedHat 8.0 running English version and see if it will work here. Use the "Send Private Message" feature or direct me to an URL.
Sincerely,
/msa
|
|
msa (User)
Expert Boarder
Posts: 124
|
Logged
|
|
The administrator has disabled public write access.
|
|
Re: keymapping to use with ncurses 21 Years ago
|
|
Thanks, Mattias for answering so quickly, but I believe the issue revolves around the 'VT Keypad' setting.
With 'VT Keypad' enabled the keypad behaves like a VT100(and compatible) keypad, which sends sequences to the host that are specific to the VT NUMERIC KEYPAD and have *no* relationship to the extended keys(up, down, left, right, home, end, pgup, pgdn, ins, del clustered between the keypad and the keyboard).
Your solutions are to:
1. Use the extended keys instead
2. Disable 'VT Keypad' to make the keypad operate in the manner you'd expect a PC to operate. (Make sure num lock is off for cursor functions to work)
|
|
bpence (Admin)
Admin
Posts: 1412
|
Logged
|
|
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
|
|
The administrator has disabled public write access.
|
|
Re: keymapping to use with ncurses 21 Years ago
|
|
Hello Brian and Mattias,
Thanks for your help. I already soved the problem usign "VT Keypad and setting "7 bits".
|
|
|
Logged
|
|
35
|
|
The administrator has disabled public write access.
|
|
Re: keymapping to use with ncurses 21 Years ago
|
|
Glad to hear!
|
|
msa (User)
Expert Boarder
Posts: 124
|
Logged
|
|
The administrator has disabled public write access.
|
|
|