Re: FVWM: Xterm titles

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Fri, 13 Sep 2002 16:29:11 +0200

On Fri, Sep 13, 2002 at 03:08:49PM +0100, Andy Arbon wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> Firstly, I'm not 100% sure this is really on topic on the FVWM list for
> which I apologise, but it's definitely a related query.
>
> I am looking for a way to make it easier to tell the many xterms I
> always end up running apart in the window lists. What I am currently
> thinking of doing is changing the title of each xterm to something like
> "xterm (<username>) - <last issued command>"
>
> Using the environment variable PROMPT_COMMAND I can give bash a command
> to execute before it draws each prompt, which would seem to be the right
> time to do the change. What I don't know is how to change the xterm
> title from within bash - is it possible, and if so, how?

There are some special escape sequences that chenge the window
title. Use this command:

  printf "\e]2;"blabla"\a"

And replace "blabla" with the desired text. In zsh, the syntax is

  print -Pn "\e]2;blabla\a"

> PS. If anyone else has any other ideas on how to solve the problem of
> making the xterms easier to tell apart I'd be interested to hear them.

In the 2.5.x branch (unstable development versions at the moment),
Windows with the same title can be numbered with

  Style * IndexedWindowName

So instead of

  xterm
  xterm
  ...

you get

  xterm
  xterm (2)
  xterm (3)
  ...

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, mail: dominik.vogt_at_schlund.de, phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Sep 13 2002 - 09:30:13 BST

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