- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vi with tsm
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
Discussions
Discussions
Discussions
Forums
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
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
тАО07-10-2007 02:05 AM
тАО07-10-2007 02:05 AM
tsm 2.2.4d
Hello,
I connect to a machine with HP-UX with putty.
After that there is no problem with using vi.
When I run tsm and run vi, it "fills" only
upper part of the putty window. I mean vi
fixes its command line in the middle of the
window (about 24 lines from the top)
instead of the bottom of the window as it does
as usual. This line is also a baseline for
scrolling etc.
I used different values of TERM and TSMTERM,
stty and resize with no success. Does anybody
has an idea what is wrong with tsm?
I appreciate any help.
wojtek
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 02:14 AM
тАО07-10-2007 02:14 AM
Re: vi with tsm
24 lines 80 columns per line is the standard terminal interface.
I don't know why you'd expect more than that.
Any reason why you're not using pure putty? It works fine.
You should be able to change the putty scroll settings and see enough history to work on the system.
Perhaps reveal what TERM settings you are using and maybe someone more familiar with tsm can help.
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
тАО07-10-2007 02:16 AM
тАО07-10-2007 02:16 AM
Re: vi with tsm
Try this before starting tsm:
# export TERM=vt100
# tsm
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 02:24 AM
тАО07-10-2007 02:24 AM
Re: vi with tsm
after starting tsm I can see standard output:
Terminal type is: vt100. TSM Terminal type is: vt100.
# TSM vt100 (80 column only) description file 05/18/90
# generic vt100 - see also wy60vt100 es3vt100 es3vt100-2.
# See also Vt100 for 80/132 columns.
#
# !!! IMPORTANT NOTE !!!
# Set Terminal to: XON/XOFF MODE
#
Before running tsm I maximize putty window. Before tsm, vi can see the whole window. When tsm is started, vi can see only first 24 lines of the screen. The problem is the same when TERM is set to vt100, Vt100, vt220 etc.
Regards,
wojtek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 02:36 AM
тАО07-10-2007 02:36 AM
Re: vi with tsm
I think HP-UX might have a reset command to re-initialise the terminal.
Jov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 02:40 AM
тАО07-10-2007 02:40 AM
Re: vi with tsm
Regards,
wojtek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 02:51 AM
тАО07-10-2007 02:51 AM
Re: vi with tsm
Can you post the stty and env output?
Jov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 03:06 AM
тАО07-10-2007 03:06 AM
Re: vi with tsm
I attach file with required output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 03:22 AM
тАО07-10-2007 03:22 AM
Re: vi with tsm
Also the man page says
"WARNINGS
Some operations are not supported on certain terminals."
There are a lot of setting files in /usr/tsm/term with many settings, among them are fixed numbers of lines.
e.g. see
more /usr/tsm/term/more vt220sw7-m.fi
I would not change any of this settings, but I would simply open another putty session.
Perhaps one of the terminal gurus can explain more details.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 03:30 AM
тАО07-10-2007 03:30 AM
Solutioneval $(ttytype -s)
To see what this does, just type: ttytype -s
Now you will see that PuTTY by itself is set to 80 chars by 24 lines, all very standard -- *UNLESS* you resized the terminal window. Resizing may look trivial but there are major issues when you do this. First, you can resize the window and everything gets bigger, but still the character grid is 80x24. But more commonly, your resize left the characters the same size but the grid changed radically, to perhaps 120x48. Now a 'good' terminal emulator will use a special telnet subcode to tell the HP-UX terminal driver to change COLUMNS and LINES. If not, you must manually run resize or ttytype like this:
eval $(resize)
or
eval $(ttytype -s)
This is what allows your PuTTY terminal to work with vi correctly.
However, tsm makes this very messy because it is yet another terminal handler, designed when everyone was using a dialup modems to talk to their computers. According to the program's timestamp, it was last updated in 2000, about 7 years ago, by a company called Structured Software Solutions, Inc (SSSI) which is now FacetCorp. And it turns out that tsm is overriding your PuTTY terminal identification and size. If you run ttytype -s in your tsm window, the TERM value may be different but COLUMNS=80, LINES=24. That's bad. This is a design defect that will probably never be fixed. Even manually setting COLUMNS and LINES doesn't fix the problem with vi.
So if you really, really need to use tsm, resize your PuTTY window back to 80x24 and it should work OK. Otherwise, start multiple copies of PuTTY on your PC and use ATL-TAB to instantly switch between sessions.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2007 06:58 PM
тАО07-10-2007 06:58 PM
Re: vi with tsm
Thank you for your help.
Regards,
wojtek