Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

windows title???

Posted on 1997-09-16
14
Medium Priority
?
394 Views
Last Modified: 2008-03-06
i want to know 2 things :
1.) when running xterm ,cmdtool how can i set the window name and its icon name (of the program running inside) ,to be displayed ,if i have 7 windows open i can't know which window is running what program ... how can i set this option
.... automatically and not each time manualy (-n switch for the xterm).

2.) the points here for question ,when do they get reseted ,after i ran out of points i can't ask anymore q. for how long ,or what should i do to reset them back to their initial value?
0
Comment
Question by:doron123
[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
  • 7
  • 7
14 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 400 total points
ID: 2007033
csh syntax:
 switch ($term)
 case sun:
 case sun-cmd:
    alias back      "echo -n '^[[6t' > /dev/ttyp\!*"
    alias close     "echo -n '^[[2t' > /dev/ttyp\!*"
    alias front     "echo -n '^[[5t' > /dev/ttyp\!*"
    alias open      "echo -n '^[[1t' > /dev/ttyp\!*"
    alias ttytext   'echo -n "^[]l\!*^[\^[]L\!*^[\">`tty`'
    breaksw
 case hpterm:
    alias ttytext   'set ll = `echo "\!*" | awk "{print length}"`;echo -n "^[&f0k${ll}D\!*"; unset ll'
    breaksw
 case iris-ansi*:
    # buggy: does not support window settings
    alias ttytext   'echo -n "^[]2;\!*^G"'
    alias ttytitle  'echo -n "^[]2;\!*^G"'
    breaksw
 case dtterm:
 case linux:
 case xwsh:
 case xterm:
    alias ttytext   'echo -n "^[]0;\!*^G"'
    alias ttyname   'echo -n "^[]1;\!*^G"'
    alias ttytitle  'echo -n "^[]2;\!*^G"'
    breaksw
endsw


take care about
   ^G  and  ^[
they are ASCII 0x07  and  ASCII  0x1b

Good luck
0
 

Author Comment

by:doron123
ID: 2007034
how do i write the ascii 0x07 and 0x1b in the unix i don't know ,in the pc i know you press the Ctrl+the ascii number .
could you please tell me ....
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2007035
depends on your editor, in vi for example use:
  ^V^G            Ctrl-V followed by Ctrl-G
or
  ^VESC         Ctrl-V followed by ESC

In a shell it can be more tricky, try to type the chars as is, just the CTRL-G itself
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:doron123
ID: 2007036
i uses the emacs ,shouid i write there ctrl+g ?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2007037
emacs, I can't give **you** this answer, because this depends highly on your personal emacs configuration/settings.
I suggest using vi, it's pretty simple:
i  for insert, then type your text, ESC to end your input, then :wq to save and quit (but this is not subject to this question:)
0
 

Author Comment

by:doron123
ID: 2007038
i get when running source .scrc
breaksw: endsw not found.

what is it ,what should i do to fix it?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2007039
you've forgotten the   endsw   command.

Uups, may be you've a Copy/Paste  problem:
there is **exactly** one line between  case hpterm:  and  breaksw
0
 

Author Comment

by:doron123
ID: 2007040
i only wrote from :case sun till the hp(not including the hp),and tthe xterm case so i have 2 cases and 2 breaksw and one endsw.

i didn't write the hp ect since im working on the sunos and xterm ,is this ok ...?
but still i think i covered the breaks and end sw ,so why do i still get breaksw: endsw not found ??

p.s.
------
thanks for the fast and efficient help
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2007041
Hmm, no idea.
You may send your script to hoagascht@gmx.net
0
 

Author Comment

by:doron123
ID: 2007042
i added it to the .cshrc someone here told me that its not for the c shell ...? is this correct?

please help me i must have an answer...

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2007043
Yes, sounds good.
As I wrote it is csh syntax, so $HOME/.cshrc is a good place.
0
 

Author Comment

by:doron123
ID: 2007044
i deleted one breaksw and now when sourcing the .cshrc i don't get the error i got ,but still it doesn't work....

how do i make it work ???


0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2007045
Hey, csh is like C (C-shell:-), so in worst case you get the wrong settings.
It's best if you send your script or give me a email address.
0
 

Author Comment

by:doron123
ID: 2007046
ok its better ,my e-mail add. is doron-a@vectronics.co.il

id love to send you my cshrc so you could check it ,and that could save us a day of assumptions.

thanks ahead doron amedey
                fae
0

Featured Post

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!

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

730 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