GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Configuration dtterm
Operating System - HP-UX
1855915
Members
9482
Online
104107
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-07-2002 08:05 AM
03-07-2002 08:05 AM
Configuration dtterm
Hi,
I would like to change the title of the active dtterm (not to open a new one like dtterm -title "toto").
Thanks for your help.
Johann
I would like to change the title of the active dtterm (not to open a new one like dtterm -title "toto").
Thanks for your help.
Johann
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 08:09 AM
03-07-2002 08:09 AM
Re: Configuration dtterm
I have a little script I call title
#!/bin/sh
/bin/echo '\033]2;'$*'\007\c'
run it as
title "dttermname"
and ta da !
GL,
C
#!/bin/sh
/bin/echo '\033]2;'$*'\007\c'
run it as
title "dttermname"
and ta da !
GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 08:16 AM
03-07-2002 08:16 AM
Re: Configuration dtterm
Very similar eg ....
To dynamically change the title of each terminal window to reflect the hostname of the current machine, add the following lines (exactly as they are appear here) to the end of the user's .profile file in the user's $HOME directory:
if [ "$TERM" = "hpterm" ] ; then
HOSTNAME=$(hostname)
LENGTH=${#HOSTNAME}
echo "\033&f0k${LENGTH}D${HOSTNAME}"
echo "\033&f-1k${LENGTH}D${HOSTNAME}"
elif [ "$TERM" = "dtterm" ] || [ "$TERM" = "xterm" ] ; then
echo "\033[2;$(hostname)\007"
fi
To dynamically change the title of each terminal window to reflect the hostname of the current machine, add the following lines (exactly as they are appear here) to the end of the user's .profile file in the user's $HOME directory:
if [ "$TERM" = "hpterm" ] ; then
HOSTNAME=$(hostname)
LENGTH=${#HOSTNAME}
echo "\033&f0k${LENGTH}D${HOSTNAME}"
echo "\033&f-1k${LENGTH}D${HOSTNAME}"
elif [ "$TERM" = "dtterm" ] || [ "$TERM" = "xterm" ] ; then
echo "\033[2;$(hostname)\007"
fi
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP