- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- xterm window label
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
11-30-2001 06:45 AM
11-30-2001 06:45 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 06:50 AM
11-30-2001 06:50 AM
Re: xterm window label
Don't think there is a way to change it after the window is open, but I have been wrong before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 06:52 AM
11-30-2001 06:52 AM
SolutionThis page contains exactly the information you need:
http://www.linuxdoc.org/HOWTO/mini/Xterm-Title-6.html
Regards,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 06:56 AM
11-30-2001 06:56 AM
Re: xterm window label
Pretty cool stuff.
http://swexpert.com/C2/SE.C2.MAY.99.pdf
Have fun,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 06:57 AM
11-30-2001 06:57 AM
Re: xterm window label
drop me a line @ MBouwma@softhome.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 08:56 AM
11-30-2001 08:56 AM
Re: xterm window label
Sigh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 09:06 AM
11-30-2001 09:06 AM
Re: xterm window label
Here is my script
#!/bin/sh
/bin/echo '\033]2;'$*'\007\c'
Use the command line
scriptname.sh "Xterm Title"
This should work for you.
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 11:16 AM
11-30-2001 11:16 AM
Re: xterm window label
That esc string only works for dtterm, not hpterm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 12:51 PM
11-30-2001 12:51 PM
Re: xterm window label
Use this to change hpterm's title bar and icon:
TITLE="My Favorite Window Title"
echo "\033&f0k${#TITLE}D${TITLE}\c"
This is unique to hpterm so there is no terminfo entry. Because there are so MANY different and incompatible terminals, the concept of a TERM variable plus a library of capabilities was developed. By using this library rather than hardcoding special escape sequences, programs like vi will work just fine on xterm or hpterm or many other terminal types.
From a script, you have a lot of flexibility to perform terminal manipulation by using tput. tput accepts special codes (man terminfo) and returns back the terminal-specific string needed to perform the action. You can clear any terminal with either:
$ clear
$ tput clear
But you can also do lots of terminal manipulation where there are no predefined commands to do so:
export HB=$(/usr/bin/tput dim) # dim text
export HV=$(/usr/bin/tput smso) # 1/2 bright inverse
export IV=$(/usr/bin/tput bold) # inverse
export UL=$(/usr/bin/tput smul) # underline
export BL=$(/usr/bin/tput blink) # blink
export CL=$(/usr/bin/tput clear) # home, clear screen
export ED=$(/usr/bin/tput ed) # clear to end of screen
export EE=$(/usr/bin/tput sgr0) # end all enhancements
# test some selected features:
echo "Testing $IV bold $HB half-brite $HV half-inverse $UL underline $EE"
And you'll see it works on all emulators. Now some terminal emulators do not have certain capabilities so the tput result will be null, and can be verified with the untic command.
Bill Hassell, sysadmin