Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: Changing title in kterm
- To: tlug@example.com
- Subject: Re: tlug: Changing title in kterm
- From: Jim Schweizer <schweiz@example.com>
- Date: Sun, 13 Dec 1998 18:34:29 +0900 (JST)
- Content-Transfer-Encoding: 8bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <13939.21757.146626.709667@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
On 13-Dec-98 Stephen J. Turnbull wrote: > Evidently xtitle is an external program not provided by > TurboLinux (which is why I don't have any documentation). AHA! success (at least for me, YMMV) in .bash_profile -------start--------------------------------------------------- # This function sets the xterm title to be the argument of xtitle # It is used below so that 'cd' will write the current directory # to the xterm title (see November #7 Linux Gazette for # explanation of the escape sequences, and how to insert them) xtitle() { if [ "$*" != "" ]; then echo -n "]0;$* " else echo -n "]0;xterminal:`/usr/bin/tty`" fi } # Only write to xterm if X is running if [ "$DISPLAY" ]; then # Assign the titles of any xterms started in ~/.xinitrc xtitle $PWD temp_cd() { cd $1 # Set the xterm title xtitle $PWD # Echo to screen, if you like echo $PWD } else temp_cd() { cd $1 # Cannot write to xterm, just echo to screen echo $PWD } fi alias cd='temp_cd' -----------end-------------------------------------- Regards, Jim S. ---------------------------------- email: jims@example.com http://tlug.linux.or.jp/~jims/ ---------------------------------- ------------------------------------------------------------------ Next Nomikai: 15 January 1999, 19:30 Tengu TokyoEkiMae 03-3275-3691 Next Technical Meeting: 13 February, 12:30 Place: TBD ------------------------------------------------------------------ more info: http://tlug.linux.or.jp Sponsor: PHT
- References:
- Re: tlug: Changing title in kterm
- From: "Stephen J. Turnbull" <turnbull@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: Web page updates
- Next by Date: Re: tlug: Network card not found
- Prev by thread: Re: tlug: Changing title in kterm
- Next by thread: Re: tlug: Changing title in kterm
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links