[comp.windows.x] xterm status line

paul@daisy.uchicago.edu (Paul Burchard) (06/10/88)

If anyone actually wants to put the xterm status line in, please be
very careful about porting the old X10 code.  There were bugs in the
status line code that caused xterms to die occasionally on resize.  I
personally disabled the this code on our xterm since the problem of
disappearing windows was far more disconcerting to users than lack of
a status line.
-----------------------------------------------------------------------------
Paul Burchard	paul@zaphod.UChicago.Edu
"A free society is one where it is safe to be unpopular." --Adlai Stevenson
-----------------------------------------------------------------------------

karlton@decwrl.dec.com (Philip Karlton) (06/10/88)

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