• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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