what terminal type for ubuntu linux on intel pc?

341 views
Skip to first unread message

Ed Jahn

unread,
May 7, 2013, 9:36:09 AM5/7/13
to ope...@googlegroups.com
After working in Windows for too many years, I am getting started in linux. Got a good deal on a Dell PC with pre-loaded with Ubuntu 2.10.

Going into qm directly (i.e., not through Accuterm) I find the command line editor acting strangely in ways that probably mean the terminal type
is wrong. The control-f, control-b, etc, work, but home, end, delete, backspace, etc on the PC keyboard do not.

The terminal type defaults to xterm. Changing it to linux or xterm-eeepc gets the arrow keys to work, but not the other keys.
Also, TERM does not change the color nor the size of the window.

Suggestions, anyone?
Ed Jahn
George Mason University, Virginia, USA

CDMI - Steve T

unread,
May 7, 2013, 9:50:50 AM5/7/13
to ope...@googlegroups.com
i might try vt100
i think that might be the default, but not 100% sure
 
Steve Trimble
Computerized Data Mgmt Inc
2705 Justin Matthews Dr
N Little Rock, AR 72116
(501) 615-8674 09:00am - 6:00pm CST



From: Ed Jahn <ejah...@gmail.com>
To: ope...@googlegroups.com
Sent: Tue, May 7, 2013 8:36:13 AM
Subject: what terminal type for ubuntu linux on intel pc?
--
You received this message because you are subscribed to the Google Groups "OpenQM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openqm+un...@googlegroups.com.
To post to this group, send an email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openqm?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ed Jahn

unread,
May 8, 2013, 11:01:27 AM5/8/13
to ope...@googlegroups.com, CDMI - Steve T
vt100 does not work :(

So far, "linux" seems to do best with arrow keys, so that is what I have been using. 
The default is "xterm", which has its own strangeness. In "xterm", unlike the other types, TERM COLOR works -- but the arrow keys do not. 

TERM DISPLAY shows what character sequences the terminal type sends. By writing a file with ED and hitting the keys, I confirmed that the sequences being sent are those that TERM DISPLAY shows.
Oddly, within ED the backspace, delete, right- and left-arrow keys work, contrary to what you would expect in a line editor, and even though the command line does not understand them. 

If I can find out what sequences the command line editor needs, I could make a terminal type to send them.

Martin Phillips

unread,
May 8, 2013, 11:21:50 AM5/8/13
to ope...@googlegroups.com

Hi Ed/Steve,

 

QM uses the TERM environment variable to determine the default terminal type. Perhaps the Linux terminal emulation does too. I don’t know.

 

I have just tested with Ubuntu and the linux terminal type and it is working fine.

 

Please try the following little test program. This will display the characters sent by each keystroke until you enter a space. Use it to see what the cursor keys or others that are causing problems are actually sending.

 

loop

   c = keyin()

until c = ' '

   n = seq(c)

   if n >= 32 then

      display fmt(seq(c), '5L') : ' ' : dtx(seq(c), 4) : ' ' : c

   end else display seq(c)

repeat

end

 

 

Martin

Tony Gravagno

unread,
May 8, 2013, 3:10:29 PM5/8/13
to Ope...@googlegroups.com

I published a keyboard map for AccuTerm which allows us to use standard keyboard keys to navigate QM TCL and SED:

http://www.pickwiki.com/cgi-bin/wiki.pl?AccuTermKeyboardMapping

 

Unfortunately, I haven't had time to work out what happens when we shell out to the OS where the mapping is different. I believe if you fire up AccuTerm and create a new connection type for host "Linux" that  your key mapping will allow smooth navigation through the shell. While I haven't done it I expect it would be easy to save that mapping and then toggle to the QM mapping using a hotkey.

 

I hope that helps someone…

T

 

From: Ed Jahn

 

vt100 does not work :(

 

So far, "linux" seems to do best with arrow keys, so that is what I have been using. 

The default is "xterm", which has its own strangeness. In "xterm", unlike the other types, TERM COLOR works -- but the arrow keys do not. 

 

TERM DISPLAY shows what character sequences the terminal type sends. By writing a file with ED and hitting the keys, I confirmed that the sequences being sent are those that TERM DISPLAY shows.

Oddly, within ED the backspace, delete, right- and left-arrow keys work, contrary to what you would expect in a line editor, and even though the command line does not understand them. 

 

If I can find out what sequences the command line editor needs, I could make a terminal type to send them.

On Tuesday, May 7, 2013 9:50:50 AM UTC-4, Steve Trimble wrote:

i might try vt100

i think that might be the default, but not 100% sure
 

Steve Trimble

Computerized Data Mgmt Inc
2705 Justin Matthews Dr
N Little Rock, AR 72116
(501) 615-8674 09:00am - 6:00pm CST

 

From: Ed Jahn <ejah....@gmail.com>
To: ope...@googlegroups.com
Sent: Tue, May 7, 2013 8:36:13 AM
Subject: what terminal type for ubuntu linux on intel pc?

After working in Windows for too many years, I am getting started in linux. Got a good deal on a Dell PC with pre-loaded with Ubuntu 2..10.

CDMI - Steve T

unread,
May 8, 2013, 4:04:46 PM5/8/13
to ope...@googlegroups.com
thanks Tony
when i connect to linux using Accuterm, I set emulation for vt100
course i have my .profile set as such
when i connect thru Linux/QM, i using AccuTerm, I set emulation for ADDS4000-AT
take care,
 
Steve Trimble
Computerized Data Mgmt Inc
2705 Justin Matthews Dr
N Little Rock, AR 72116
(501) 615-8674 09:00am - 6:00pm CST



From: Tony Gravagno <wosc...@sneakemail.com>
To: Ope...@googlegroups.com
Sent: Wed, May 8, 2013 2:10:44 PM
Subject: RE: what terminal type for ubuntu linux on intel pc?
--

Donald Montaine

unread,
May 9, 2013, 10:54:45 AM5/9/13
to ope...@googlegroups.com
I have found the easiest way to use QM on LInux is to use the Putty terminal emulator (apt-get install putty), which is available in the Ubuntu repositories.  The only modification you have to make is set the backspace key to issue a Cntl-H.  It will do well if your qm term type is either VT100, VT101 or VT220.  It will handle a local qm database by using 127.0.0.1 as the IP and is great for accessing systems over the network.  It is available on many other Linux distributions and of course, also on Windows.  

s

Mike

unread,
May 14, 2013, 9:33:24 AM5/14/13
to ope...@googlegroups.com
I presume you mean ubuntu 12.10!

I presume that you mean you are using the 'terminal' on the desktop and typing 'qm' (or qm -a<myaccount>)

It depends on which flavour of ubuntu and which 'terminal' you are using. I would try the settings for that particular device. xterm and vt100 are the same but sometimes they are not. How is a mystery.

You may do better to ssh to your ubuntu machine from an Accuterm session on another box and then you can control the settings.

Alternatively, install putty on the ubuntu server and then use putty directly. Putty allows you to change the terminal settings.

If this doesn't help, post back.

Mike

Martin Phillips

unread,
May 14, 2013, 10:37:37 AM5/14/13
to ope...@googlegroups.com

Hi Mike,

 

Following a bit of research by Ed, we have added a new terminfo definition named xterm-ubuntu for release 3.0-9.

 

 

Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton NN4 6DB, England
+44 (0)1604-709200

Reply all
Reply to author
Forward
0 new messages