- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- removing prompt "TERM = (hp)"
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
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-02-2007 12:10 AM
03-02-2007 12:10 AM
Whenever I "su" to a particular ID from root, I'm always greeted with the prompt :
TERM = (hp)
And everytime this appears, I enter "vt100" to get pass this.
How do I remove this prompt?
Thanks in advance.
cheers !!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 12:56 AM
03-02-2007 12:56 AM
Re: removing prompt "TERM = (hp)"
Change the particular ID's .profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 01:22 AM
03-02-2007 01:22 AM
Re: removing prompt "TERM = (hp)"
depending on the options used, you may just be able to hit a carriage return and let ttytype id the terminal.
"man ttytype" for more info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 04:12 PM
03-02-2007 04:12 PM
Re: removing prompt "TERM = (hp)"
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 01:36 PM
03-04-2007 01:36 PM
Re: removing prompt "TERM = (hp)"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 02:03 PM
03-04-2007 02:03 PM
Re: removing prompt "TERM = (hp)"
Not sure what you mean. The testdrive systems are setup to use the POSIX shell which is just like Korn shell or Bash. You delete characters with the backspace key. Verify that stty reports: erase=^H
Now if you have setup your PuTTY configuration to login to a Tru64 system, then the delete key is probably mapped to your backspace key.
Also make sure you put this line of code in your .profile:
exec $(ttytype -s)
That ensures that whatever you setup as a terminal emulator, it will be (or should be) automatically identified.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 02:17 PM
03-04-2007 02:17 PM
Re: removing prompt "TERM = (hp)"
I tried the "env" cmd to verify the value fo ERASE
I saw this "ERASE=^H"
When I try to use backspace key it gives me just a new prompt.
But when I login to the Linux test drive server, I don't have any problem. Backspace, ctrl+u, ctrl+h work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 02:39 PM
03-04-2007 02:39 PM
Re: removing prompt "TERM = (hp)"
As Bill said, use "stty -a" to see what is set by default. Typically the defaults may be "@" and "#".
>I tried the "env" cmd to verify the value of ERASE I saw this "ERASE=^H"
I have that set but it probably does nothing. Possibly useful if you enclude it in an echo?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 02:45 PM
03-04-2007 02:45 PM
Re: removing prompt "TERM = (hp)"
stty -a
speed 9600 baud; line = 0;
rows = 24; columns = 80
min = 4; time = 0;
intr = DEL; quit = ^\; erase = DEL; kill = @
**************************************
Here is the output for :
ttytype -s
TERM='vt100'; export TERM;
LINES=24; export LINES;
COLUMNS=80; export COLUMNS;
ERASE='^?'; export ERASE;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 03:12 PM
03-04-2007 03:12 PM
Re: removing prompt "TERM = (hp)"
eval $(ttytype -s)
stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff
stty susp \^Z dsusp \^Y
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 03:20 PM
03-04-2007 03:20 PM
Re: removing prompt "TERM = (hp)"
At least the backspace is working now. Not the ctrl +U or ctrl+H
Thanks again,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2007 10:19 AM
03-05-2007 10:19 AM
Re: removing prompt "TERM = (hp)"
I don't see how you can get one to work without the others.
I do know that several people at work have problems where backspace and ctrl+H don't work the same, like they do for me. This has to do with the terminal emulator they use. I believe on MS, there is an option to make them the same.
In addition to the commands Bill gave you, you should make sure those are conditioned so you don't do them if you are not interactive:
if [ "${-%%*i*}" != "$-" ]; then
ttytype ...
stty ...
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 05:42 AM
01-12-2008 05:42 AM
Re: removing prompt "TERM = (hp)"
Yes, this is a very common problem at HP since most HP people (that use a terminal emulator) are running Reflection for HP and the default settings for DEC/VT emulation is backspace = DEL. When I asked the reason, WRQ (now Attachmate) replied that most VT users are connected to DEC/Tru64/VMS type machines and as everyone knows, the delete key is supposed to erase the current character and move to the left. :-(
The erase setup is in the Setup -> Terminal -> Emulation box.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2008 07:24 AM
01-12-2008 07:24 AM
Re: removing prompt "TERM = (hp)"
Or my favorite:
if tty -s
then
ttytype...
stty...
fi
which properly bypasses terminal-only code in /etc/profile and .profile when used from cron or batch.
Bill Hassell, sysadmin