Solved

Terminal/Xterminalk name.

Posted on 2002-06-18
8
327 Views
Last Modified: 2010-04-21
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
Comment
Question by:kug
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7090009
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
 

Author Comment

by:kug
ID: 7098363
Ahoffmann,

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

Any other suggestions ?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7098632
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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 

Author Comment

by:kug
ID: 7098656

I use two type of terminals: dtterm & xterm
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7098685
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
 

Author Comment

by:kug
ID: 7098721
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
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 7098746
there is no bell button, usually.
It's  Ctrl-G, means hit Ctrl and G
0
 

Author Comment

by:kug
ID: 7098764
Ahffman,

Thank you - right now it work !

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

Featured Post

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question