- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Vi editor problem when using SSH
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
тАО12-04-2003 05:41 AM
тАО12-04-2003 05:41 AM
Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2003 05:46 AM
тАО12-04-2003 05:46 AM
Re: Vi editor problem when using SSH
--Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2003 05:46 AM
тАО12-04-2003 05:46 AM
Re: Vi editor problem when using SSH
First make sure what terminal program you use on the client side. For instance, putty (a freeware ssh client for windows) can run as vt100 or xterm.
Then take a look at your TERM environment variable on the server and make it match (vt100 or xterm when using putty, for instance).
Then it should work like you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2003 05:46 AM
тАО12-04-2003 05:46 AM
Re: Vi editor problem when using SSH
export TERM=vt100.
Also check LINES and COLUMN settings.
env to get these values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2003 05:56 AM
тАО12-04-2003 05:56 AM
Re: Vi editor problem when using SSH
Try some different TERM entries.
export TERM=vt220
also export the editor and try,
export EDITOR=vi
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2003 06:30 AM
тАО12-04-2003 06:30 AM
Re: Vi editor problem when using SSH
I am running Exceed as my xwindows emulator, and here's the stty settings that I have found to work best:
speed 9600 baud; line = 0;
rows = 44; columns = 133
min = 4; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2
stop = ^S; start = ^Q; susp
werase
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
See also the man pages for resize and tset.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2003 06:45 AM
тАО12-04-2003 06:45 AM
Re: Vi editor problem when using SSH
If the $TERM setting matches OK you may just need to resize the screen - try the command
resize
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2003 08:38 AM
тАО12-04-2003 08:38 AM
Re: Vi editor problem when using SSH
Kevin
- Tags:
- UNIX95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2003 08:55 AM
тАО12-04-2003 08:55 AM
SolutionUNIX95=1
export UNIX95
ps -efH | grep root
This will return an enhanced ps output that indents child processes making them easier to spot. This is one of many features you get by setting UNIX95
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
тАО12-04-2003 02:56 PM
тАО12-04-2003 02:56 PM
Re: Vi editor problem when using SSH
To avoid all the side effect, use it only for the duration of a command such as ps:
UNIX95= ps -e -H
A lot of sysadmins misunderstand the defining of a variable on the same line as a command. It works just fine. Setting UNIX95 equal to nothing defines the variable name, and according to XPG4 standards, that's all that is necessary. See the man page for ps, particularly options -H -C and -o. So avoid lots of future problems and only use UNIX95 for specific commands based on the manpage.
Bill Hassell, sysadmin
- Tags:
- UNIX95