1834650 Members
2387 Online
110069 Solutions
New Discussion

stty line

 
SOLVED
Go to solution
Clyde Stringer_1
Occasional Contributor

stty line

I want to change the stty line setting in my .profile. I set it as stty line 1, but it shows line = 0 after doing stty -a.
The user is for telnet session with a Symbol 6840 RF terminal. The screen does not paint correctly. Application vendor thinks the line setting is causing the problem.
2 REPLIES 2
Bill Hassell
Honored Contributor
Solution

Re: stty line

IF the application vendor is not familiar with HP-UX, I would start with the TERM setting first if the display doesn't look correct. It is important to understand that HP-UX can handle hundreds of terminal types with the TERM setting and programs that use the CURSES library. If the vendor cannot provide a valid terminfo file (similar to termcap on other Unix flavors), then the application program writer will have to provide a list of the terminal features (escape sequences) required by the RF termional.

The solution is very simple if the program uses the CURSES library. Just create a terminfo file that defines all the features of the RF terminal. stty typically handles read/write handshaking but if the display doesn't look right, it is likely a terminfo (and value for TERM) issue.


Bill Hassell, sysadmin
A. Clay Stephenson
Acclaimed Contributor

Re: stty line

The stty line discipline is not supported by all drivers and in fact very, very seldom requires any changes. You could try a small c program using the termio or termios calls but I rather doubt that that is your problem. Man 7 termio for details.

Your problem sounds much more like improper TERM settings. As Bill said, the programmers should consult the curses manual. This is really state of the art early 1980's stuff. Curses hides all the details about how to position
the
cursor, clear the screen, reverse video, color, how linefeeds and CR's are handled (on input and output), ... from the application.

If it ain't broke, I can fix that.