VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
keymapping to use with ncurses (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: keymapping to use with ncurses
#1015
keymapping to use with ncurses 20 Years, 11 Months 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
josesanleandro (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1016
Re: keymapping to use with ncurses 20 Years, 11 Months 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
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#1017
Re: keymapping to use with ncurses 20 Years, 11 Months 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.
josesanleandro (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1018
Re: keymapping to use with ncurses 20 Years, 11 Months 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
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#1019
Re: keymapping to use with ncurses 20 Years, 11 Months 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: 1404
graph
User Offline Click here to see the profile of this user
Logged 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.  
#1020
Re: keymapping to use with ncurses 20 Years, 11 Months ago  
Hello Brian and Mattias,
Thanks for your help. I already soved the problem usign "VT Keypad and setting "7 bits".
josesanleandro (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1021
Re: keymapping to use with ncurses 20 Years, 11 Months ago  
Glad to hear!
msa (User)
Expert Boarder
Posts: 124
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
Go to top