Path: utzoo!attcan!uunet!husc6!purdue!decwrl!karlton From: karlton@decwrl.dec.com (Philip Karlton) Newsgroups: comp.windows.x Subject: Re: xterm status line Message-ID: <525@bacchus.DEC.COM> Date: 10 Jun 88 01:51:23 GMT References: <8806080534.AA04134@coco0.istc.sri.com> <348@kaon.uchicago.edu> Reply-To: karlton@decwrl.UUCP (Philip Karlton) Organization: DEC Western Software Lab, Palo Alto, CA Lines: 34 I run with a window manager that displays the applications title. I use the following sets of csh macros when I change the directory stack, and the title changes appropriately. The \033's below, and the \007's should be turned into the appropriate character. "in" is used to label the icon. "wn" is used to label the window. "pwd" is usually a '>' character. PK ===================================================================== switch ($term) case xterm: alias newprompt fullprompt alias fullprompt set prompt = \ '"$machine ! ${pchr}\033]2;${machine}:${cwd}\007\033]1;${machine}\007"' alias partprompt set prompt = \ '"$machine ! ${pchr}\033]2;${machine}:${cwd}\007"' alias minprompt set prompt = '"$machine ! ${pchr}"' alias pt echo -n "\033]2\;"${machine}\: \`dirs\`\007 alias in 'echo -n "\033]1;\!*\007"; alias newprompt partprompt; partprompt' alias wn 'echo -n "\033]2;\!*\007"; alias newprompt minprompt; minprompt' alias cd "cd \!* ; newprompt" alias pd "pushd \!* ; newprompt" alias Pd "popd \!* ; newprompt" alias d "dirs ; newprompt" alias xs 'set noglob; eval `resize`' alias sd "setenv DISPLAY \!*\:0" newprompt breaksw endsw