LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2014, 12:05 PM   #1
monmak
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Rep: Reputation: Disabled
A real Terminal Emulator?


I need a Terminal Emulator that can use a terminfo file from /usr/share/terminfo. It seems that most emulators available only use built in terminfo files for one or two types of terminals. I'm trying display on an RPi data intended for a dumb terminal from an older system's serial port. I can see that the escape sequences for absolute cursor positioning are being passed to the screen instead of being processed.
 
Old 10-17-2014, 12:20 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
http://www.ltsp.org/

Not sure if that's what you're looking for, terminal is kind of a broad term these days. The old dumb terminals were 3270 something or other.
 
Old 10-17-2014, 12:53 PM   #3
monmak
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Further Explanation

I have an old z80 based system that the software is written to use a serial dumb terminal as a user interface .. probably a Lear Siegler, not a VT100 or 3120 or any other common protocol that current "terminal" programs are set up to emulate. I want to substitute an RPi with monitor and keyboard for the user interface. So what I mean by "terminal emulator" is in the literal sense.. I want to actually emulate a serial terminal.
 
Old 10-17-2014, 01:31 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Is the RPi to be the client? or the server?

One I found for getting an amiga 500 on the interwebs.
http://hackaday.com/2013/05/28/an-ov...etrocomputers/
 
Old 10-17-2014, 02:43 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,460

Rep: Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828
The DEC VT100 is/was a real serial terminal... May not be dumb since it contained a microprocessor but it is what the terminal emulators are based upon.

Can you post the ESC sequences? Looks like the Lear Siegler used ESC=;YX whereas the VT100 uses ESC[X;YH for cursor placement.

Last edited by michaelk; 10-17-2014 at 03:09 PM.
 
Old 10-17-2014, 04:30 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,877

Rep: Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615
To get a real terminal, you'd have to have some hardware.

http://tldp.org/HOWTO/Text-Terminal-HOWTO-16.html

As noted, bugs exist in database.

I forget how to determine what settings you have in terminal but there is a command for that. set or termsys or what I forget. Haven't used terminals for decade.

Pick one terminal (try xterm) and stick with it. Yes, some terminals may have internal settings on different set of files.

Last edited by jefro; 10-17-2014 at 04:31 PM.
 
Old 10-19-2014, 01:08 PM   #7
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
minicom is one linux terminal emulator. I've heard you can get Procomm for windows or dos to run in wine, but never tried. Many systems I worked on in the past used physical terminals, mostly wyse or lear siegler, and with PC's procomm was the physical terminal replacement of choice.
 
Old 10-20-2014, 09:15 AM   #8
monmak
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Michaelk,
Esc=yx is what I'm seeing on the screen preceding text that should be placed in a specific location.
Jefro,
I looked at xterm, didn't see how to open a serial port in it. I've been using gnu screen for that.
 
Old 10-20-2014, 10:01 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,460

Rep: Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828
Depending you your distribution you might be able to install the adm3 terminfo via the ncurses-term package.
 
Old 10-20-2014, 03:10 PM   #10
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,874
Blog Entries: 13

Rep: Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928
Agree with Doug G, minicom. It's probably already there.

You can also set the port for RAW mode. You probably should check out the tc_get/set attr suite of library functions, as well as stty for the command line. Is the hook up to be RPi with USB to serial? So it might be /dev/ttyUSB0? You can disable the flow controls for HW and SW in minicom. The question is if you need to translate characters. If it's just ASCII-8 coding and 8N1 (8-bit no parity, 1 stop bit) serial then the questions merely become whether or not you need local echo, whether or not CR means LF, CR, or CR-LF together, and so forth. Minicom will allow you to set all that up. I also delete all the modem strings so it doesn't try to send ATDT<blah-blah> through the port. Minicom's tendency is that it thinks it needs to control a Hayes AT modem.
 
Old 10-20-2014, 03:32 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,460

Rep: Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828
As far as I know minicom has only ANSI and VT100 emulation. The OP wants the escape characters to be translated to cursor position.
 
Old 10-21-2014, 11:04 AM   #12
monmak
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
michaelk, you have summed up the problem exactly. I'm surprised there is not an easy solution to this. I've seen it done with mirror and procomm in dos, was hoping to avoid dos.
BTW, I do have the ncurses terminfo package installed, just can't seem to get an emulator (that will open a serial port) to access it. Found this in the gnu screen manual:
"Each window in a screen session emulates a VT100 terminal, with some extra functions added. The VT100 emulator is hard-coded, no other terminal types can be emulated."
... I tried starting minicom with -t and different lear seigler terminal types.. returned error message "no support for cursor movement (cm)". No ambiguity there!.

Last edited by monmak; 10-21-2014 at 12:49 PM.
 
Old 10-21-2014, 04:04 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,460

Rep: Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828
Unfortunately terminfo will not work for your situation. Most terminal apps only support VT100, VT102 type protocols.
 
Old 10-21-2014, 08:58 PM   #14
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,759

Rep: Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206Reputation: 2206
I don't know of any terminal eumlator that can be given terminfo data and told, "Act like a terminal that does this." Terminfo works in the other direction, telling client programs how to work with a terminal type, not for telling the terminal emulator itself how to behave.
 
Old 10-21-2014, 10:23 PM   #15
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,748

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
You might find kermit will do what you want. (Amongst many other things, it does ADM-3A emulation.) Don't ask me how to use it though.
Code:
man kermit
http://linux.die.net/man/1/kermit
http://www.columbia.edu/kermit/

I guess it will start with something like
Code:
set terminal type adm3a
Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is a terminal Emulator bharathgowda8 Linux - Software 5 09-06-2007 03:37 PM
Terminal Emulator blinton25 Red Hat 4 04-12-2007 01:49 AM
Terminal Emulator fayez Linux - General 6 10-06-2006 01:42 AM
Terminal Emulator bmorgan98 Linux - Newbie 5 08-15-2005 09:38 AM
Looking for a better terminal emulator. Travis86 Linux - Newbie 5 03-16-2003 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration