- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Strange behavior in vi
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
03-01-2002 07:36 AM
03-01-2002 07:36 AM
Strange behavior in vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 07:40 AM
03-01-2002 07:40 AM
Re: Strange behavior in vi
Sometimes that will happen if the shell does not recognize the term, so try:
# TERM=vt100 ; export TERM
# echo $TERM
(or put in the correct type of TERM you may happen to be using)
Good Luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 07:41 AM
03-01-2002 07:41 AM
Re: Strange behavior in vi
#echo $KBD_LANG
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 07:57 AM
03-01-2002 07:57 AM
Re: Strange behavior in vi
# untic hpterm
==> will give you list of terminfo vars
==> find out the escape sequence of the keys you want to map (eg: the arrow keys) by checking terminfo (4) man page.
===> Once you know what the escape sequence is for the particular key you want to map, you can map it either from vi or include $HOME/.exrc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 08:03 AM
03-01-2002 08:03 AM
Re: Strange behavior in vi
Check your TERM setting and match them to the type of interface you are using. exceed / xterm / hpterm.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 08:05 AM
03-01-2002 08:05 AM
Re: Strange behavior in vi
This could be due to Display setting. Try setting display with appropriate TERM.
You can check this with the command
# env | grep -i term on the other servers where you think vi its functioning properly . Try to set the same settings in this box too.
TERM=hp, xterm ansi, vt100, vt220 any one of this then export it
-USA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 08:17 AM
03-01-2002 08:17 AM
Re: Strange behavior in vi
The untic of vt220, when "diffed" with the untic of vt220 on the system that's working yields no differences. This is why I am so puzzled by it. The only differences I can see are some things in the stty settings. I am looking at the man page for stty now to see if I can determine if these are related or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 08:20 AM
03-01-2002 08:20 AM
Re: Strange behavior in vi
h = move left
j = move down
k = move up
l = move right
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 08:24 AM
03-01-2002 08:24 AM
Re: Strange behavior in vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 06:41 PM
03-01-2002 06:41 PM
Re: Strange behavior in vi
Start by checking:
echo $LINES $COLUMNS
The best way to set $TERM is by using ttytype in /etc/profile or .profile. However, there is a little secret about telnet: it can propagate $TERM from a remote system, and will generate a SIGWINCH which updates the values of LINES and COLUMNS, sometimes incorrectly. So to avoid problems like this, run the ttytype command in /etc/profile:
eval $(/usr/bin/ttytype -s)
Sometimes, /etc/profile may bypass this test by checking if $TERM is already set. Be sure by always running ttytype.
Bill Hassell, sysadmin