- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with ttytype and wyse terminal on AClass s...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 07:53 AM
02-13-2004 07:53 AM
Problem with ttytype and wyse terminal on AClass server
I have a wyse term attached to an A-Class, and am having problems getting it to work with certain homegrown apps (that are menu driven).
If I type 'eval $( ttytype -a -s ), I do not get a response.
I have the following line in /etc/ttytypes:
wyse50 tty2a1
and the terminal ID setting on the terminal itself is wyse50.
Any ideas as to how I can get this to work correctly?
Thanks-
Stacey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 08:16 AM
02-13-2004 08:16 AM
Re: Problem with ttytype and wyse terminal on AClass server
See if that works any bettter. It may seem counter intuitive, but it might.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 02:36 AM
02-16-2004 02:36 AM
Re: Problem with ttytype and wyse terminal on AClass server
ADDSVP
HZ1500
WY50
TVI910
TVI920
TVI925
I don't have a vt100 option.
Thanks-
Stacey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 02:48 AM
02-16-2004 02:48 AM
Re: Problem with ttytype and wyse terminal on AClass server
How about putting "[ `tty` = "/dev/tty2a1" ] && export TERM=wyse50" instead of teh "tty" command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 03:00 AM
02-16-2004 03:00 AM
Re: Problem with ttytype and wyse terminal on AClass server
Thanks-
Stacey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 03:02 AM
02-16-2004 03:02 AM
Re: Problem with ttytype and wyse terminal on AClass server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 05:13 AM
02-16-2004 05:13 AM
Re: Problem with ttytype and wyse terminal on AClass server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 06:18 AM
02-16-2004 06:18 AM
Re: Problem with ttytype and wyse terminal on AClass server
are you saying some terminals work correctl now? If so, there will be some difference in the set up of the ones that don't work. Failing that, I think you need to do a bit more investigating. See if the users with a problem still have a problem if they try one of the working screens. If they do, then their TERM is being overwritten either in their personal .profile or somewhere in the chain between logging in and running the app.
If still no luck, check your homegrown apps, you need to find out if they use termcap or terminfo. Also, what they use for cursor positioning. Do they use the "curses" routines. The definition for each terminal is held in /etc/termcap or the termcap database depending on how they were linked at compile time. These files (/etc/termcap you can just have a look at, whereas termcap you need to "decompile" with "untic") describe the sequences to control the terminal. Make sure that a) the entry for wyse50 is correct (probably is) and make sure that the application is using them correctly. If using "curses" this isn't an issue.
Hope that give syou some more to be going on with!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 06:19 AM
02-16-2004 06:19 AM
Re: Problem with ttytype and wyse terminal on AClass server
Set the terminal to WY50 mode. No amount of playing with TERM settings will work right until you match TERM with the type of terminal you have. The other settings correspond to ADDS, TVI and Hazeltine terminals. These are truly pre-historic terminals so the first problem is to pick an emulation that actually has an answer-back capability. Don't bother using the eval $(ttytype -s) command until ttytype -s works by itself. You'll have to look inside the terminal settings for any automated response settings so that ttytype will actually work. If ttytype gets no response then the terminal is not replying to a standard Wyse query.
Now it's important that your homegrown apps use the Curses library (scripts use tput for terminal control). If not, then it is very likely the scripts were hardcoded for a particular terminal (very bad design), the very reason that Curses was written. In that case, the value of TERM is meaningless and you'll have to either scrap all your terminals and buy new ones that match the hardcoded sequences, or rewrite the code to use Curses (and get the terminals to reply to a status inquiry.
Now once you get an emulation that replies back (or are stuck with using /etc/ttytype), if a particular screen is messed up, you'll have to track down the code and see if it is a hardcoded escape sequence, or it is a valid Curses capability, in which case, the terminal apparently does not understand the codes. Use tput to test the Curses code as in:
tput clear | xd -xc
where clear is the capname used in the Curses library call.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 07:20 AM
02-16-2004 07:20 AM
Re: Problem with ttytype and wyse terminal on AClass server
I'm really starting to think that you may be right in that something is hardcoded in the programs.
We've run into this in the past when we were trying to get our serial devices functioning.
As far as I can tell, my terminal settings (and yes, that /etc/ttytypes was *my* typo) appear to be correct, so I'm going to start looking to see where and how terminfo and termcap are being referenced.
Thanks guys-
Stacey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 03:16 PM
02-16-2004 03:16 PM
Re: Problem with ttytype and wyse terminal on AClass server
Bill Hassell, sysadmin