VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Linux and curses (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Linux and curses
#1491
Linux and curses 16 Years, 11 Months ago  
Hi,

I am running version 5.35 on Windows XP and I have been using AbsoluteTelnet for years. I use it primarily to log into various linux machines and I find I have a problem when I am running applications that use curses in an AbsoluteTelnet window.

For example when configuring a linux kernel, I run make menuconfig which uses curses. I can not find any keys that allow me to navigate in the window properly. Neither tab nor the arrow keys on the keyboard work. I usually eventually give up and use an x window instead.

I have the following options set. VT keypad turned off, BS CR/LF 8 bit, ansii CR is CR, LF is LF, Scroll Sync->Resync on tty input.

Thanks in advance,

--Tom
tfherbert (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1492
Re: Linux and curses 16 Years, 11 Months ago  
What emulation are you using and what is the value of the TERM environment variable?
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.  
#1493
Re: Linux and curses 16 Years, 11 Months ago  
Brian,

Thanks for your prompt response.

terminal type is set to ansi in options.

on linux:

$ echo $TERM
ansi
tfherbert (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1494
Re: Linux and curses 16 Years, 11 Months ago  
Try switching to xterm, then disconnect and reconnect. Make sure TERM says 'xterm'. It should get set automatically at connect time, but it doesn't hurt to check.
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.  
#1495
Re: Linux and curses 16 Years, 11 Months ago  
Did this help?
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.  
#1496
Re: Linux and curses 16 Years, 11 Months ago  
Brian,

Thanks for your help. I set the term type to xterm and Linux tty session inherits the terminal type properly. I just tried it with "make menuconfig" and yes, it helps. The screen formats properly now.

However, my windows keyboard arrow keys don't map. Touching the down arrow key make the cursor jump down 4 lines instead of 1. I tried it after setting the VT keypad box.

By the way, thanks for your excellent customer support and your attention to detail.

--Tom
tfherbert (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1497
Re: Linux and curses 16 Years, 10 Months ago  
Where/how can I reproduce this? What version of linux do I need to have to do a 'make menuconfig'?

Are there any other curses apps that are exhibiting this behavior that I may have a better chance reproducing?
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.  
#1498
Re: Linux and curses 16 Years, 10 Months ago  
Brian,

Thanks for your help. Any recent version of Linux would do. make menuconfig is the first step to build a Linux kernel and allows you to configure kernel options on an "ordinary" terminal as opposed to an xwindow.

However, as I implied in my last posting it is no longer an issue. I think the curses problem is fixed because the screen formats perfectly and all the things seem to get painted in the right place. I think using xterm term type fixed it and I think you for your help.

My problem now is to get the arrow keys to input the right character sequences to the xterm and I think this is a different issue.

--TFH
tfherbert (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1499
Re: Linux and curses 16 Years, 10 Months ago  
I agree it's probably a different issue. My concern is still whether or not it is an AbsoluteTelnet issue.

In order to know for sure, I'll have to reproduce the issue. Is there a specific directory I need to be in to execute this make command?

Brian
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.  
#1500
Re: Linux and curses 16 Years, 10 Months ago  
Brian,

Download a linux kernel from kernel.org such as the most recent 2.6.21 kernel and put it in a directory in a user account. You don't need to be root.

unzip it and build it. The following commands should do this for you.

cd tmp
wget http://www.kernel.org/pub/linux/kernel/v...nux-2.6.21.1.tar.bz2
tar -xvjf linux-2.6.21.1
cd linux-2.6.21.1
make menuconfig

Let me know how it works out,

--Tom
tfherbert (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1501
Re: Linux and curses 16 Years, 10 Months ago  
I finally got around to trying this. No problems at all. The menu navigation worked fine. I tested in xterm mode.

If you have anything further to add to help reproduce the problem, please let me know.

Brian
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.  
#1502
Re: Linux and curses 16 Years ago  
Brian,

I actually am still having this problem. I am running FC7. It works fine on a native xterm running in a gnome desktop.

I am not saying that this is necessary an absolute telnet problem. It is just that it is only on absolute telnet that I have the problem.

The arrow keys work fine in a normal xterm window until I start the curses application.

I am still running 5.35. I haven't upgraded yet.

--Tom
tfherbert (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
Go to top