Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: Changing title in kterm




>>>>> "Jim" == Jim Schweizer <schweiz@example.com> writes:

    Jim> HOSTNAME=`uname -n`
    Jim> if [ "$TERM" = "xterm" ] && [ "$0" = "-bash" ]
    Jim> then
    Jim>    ilabel () { echo -n "^[]1;$*^G"; }

I dunno if you can put ESC (ASCII 27) in a string that easily.

    Jim>    cds () { "cd" $*; eval stripe; }
    Jim>    alias cd=cds

This looks like asking for trouble, by not using `builtin'.

    Jim> And then from the bashFAQ

    Jim>   cd()
    Jim>     {
    Jim>       builtin cd "$@" &amp;&amp; xtitle "$HOST: $PWD"
    Jim>     }

    Jim> I haven't figured that one out yet.

Evidently xtitle is an external program not provided by TurboLinux
(which is why I don't have any documentation).

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for?  "Free software rules."
------------------------------------------------------------------
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


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links