Re: FVWM: Window title for xterm

From: Rasmus Peter Tamstorf <c918885_at_student.dtu.dk>
Date: Fri, 17 May 1996 11:47:00 +0200 (METDST)

On Thu, 16 May 1996, Alan Wild wrote:

> Todd Tyrone Fries wrote:
> >
[---trim---]
> > My solution was to do this:
>
> Well. . . .since you mentioned it, I actually do this:
>
> if [ "${TERM}" = "xterm" ]; then
> if [ "${GROUP:-}" != "" ]; then
> PS1="\[\033]0;\h:${GROUP}:\w\007\033]1;\h\007\]\h\$ "
> else
> PS1="\[\033]0;\h:\w\007\033]1;\h\007\]\h\$ "
> fi
> else
> if [ -n "${GROUP:-}" ]; then
> PS1="${GROUP}\h:\w\$ "
> else
> PS1="\h:\w\$ "
> fi
> fi
>
> BUT, he wasn't asking about all the nitty-gritty details.

True, *BUT* I was hoping for even more ;-) Suppose I have an xterm in
which I start top, gdb or something like that. Has anyone found out how
I can make the window title reflect that ? In pseudo-code I'd like
something like :

  set prg = program running in the foreground
  if (prg = shell) then
    title = cwd
  else
    title = prg
  endif

Rasmus

------------------------------------------------------------------------------
Rasmus Tamstorf "A problem worth attacking
Institute of Mathematical Modelling always strikes back"
Technical University of Denmark
E-mail : rt_at_imm.dtu.dk (Unknown, to me ;-)
------------------------------------------------------------------------------



--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri May 17 1996 - 04:49:30 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST