Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'changing title' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
changing title
Authored by: ateles on Aug 22, '02 10:25:15AM

I tried it but doesn\'t work. Is this supposed to work with
all shells? I am using tcsh. I put the code in .alias. When I type

[plasmo:~] jorge% locktitle Whatever

my propmt changes to

^[]2;Whatever^G[plasmo:~] jorge%

?



[ Reply to This | # ]
changing title
Authored by: hpdoelle on Aug 22, '02 11:36:53AM

^[ and ^G are control characters! If you just do a copy and paste from the web page, these are no longer control characters, but 2 individual letters. If you edit the alias file with vi, you can get the ^[ with CRTL-v and CRTL-[. The ^G you will get with CTRL-v and CTRL-G.
To be honest, I ran into the same problem until I read the comments from the script.



[ Reply to This | # ]