Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

Terminal/Xterminalk name.

Hi everybody,

when I open new terminal or xterminal window (SunOs 5.8, CDE 1.4) I have any default name, defined by comopany sys. admin. Usualy I have the are many open windows in my desk. When I minimize them all of them looks a same.

My question is:
How I can change a name of existed/opened terminal or xterminal ?

Thank you in advance.
Kug :))
0
kug
Asked:
kug
  • 4
  • 4
1 Solution
 
ahoffmannCommented:
echo -n "^[]0;new title^G"
# depending on OS, xterm and shell you may have to use
echo -n "^[]0;new title^G" > `tty`

# where ^[  is ESC  and  ^G  is bell
0
 
kugAuthor Commented:
Ahoffmann,

I tried to run your commands in command in different shells (tcsh, csh, sh) it did nothing :((

Any other suggestions ?
0
 
ahoffmannCommented:
shell doesn't matter, usually.
The trick is to write the ESC and bell character.

Which terminal do you have? xterm? suncmd?
check with echo $TERM
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
kugAuthor Commented:

I use two type of terminals: dtterm & xterm
0
 
ahoffmannCommented:
my suggestion works for xterm, xter, linux, xwsh, iris-ansi
so I guess you didn't write the ESC correctly. How did you do it?
On the shell command line you have to write
   Ctrl-V key    followed by     ESC key
   Ctrl-V key    followed by     Ctrl-G key
0
 
kugAuthor Commented:
I think my problem to find a bell button.
I dont sure where is it on my keyboard( I have very strange, UK, one).

0
 
ahoffmannCommented:
there is no bell button, usually.
It's  Ctrl-G, means hit Ctrl and G
0
 
kugAuthor Commented:
Ahffman,

Thank you - right now it work !

Kug :)))))))))
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now