Re: setting window title
From: Victor Wagner (vitus_at_45.free.net)
Date: 03/28/05
- Next message: Kamal R. Prasad: "unix domain sockets within the kernel"
- Previous message: Ulrich Eckhardt: "Re: setting window title"
- In reply to: Ulrich Eckhardt: "Re: setting window title"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Mar 2005 14:13:02 +0000 (UTC)
Ulrich Eckhardt <doomster@knuut.de> wrote:
: junky_fellow@yahoo.co.in wrote:
: > Is there any way to set my window title equal to
: > my shell prompt "PS1" ?
: > If the "PS1" changes the (as I change directories) the
: > window title should also change.
: > I have set my PS1 to indicate hostname, present working directory
: > and the user name.
: There is a program called xttitle and some shells have another environment
: var called PROMPT_COMMAND.
This command just outputs simple escape sequence, which shell can just
as well output itself.
: BTW: you should deactivate this when not running under X, so a check for
: e.g. $XAUTHORITY is in place.
Better to check terminal type. If it is xterm* or rxvt*, then you can
use xterm-specific escape sequence.
Who have said you that thing would work only under X11?
There is for example, win32 terminal emulator putty, which support this
sequence among other xterm-specific things. It sets TERM variable to
xterm.
: All this assuming you're talking about X11 terminals, which you never said
: though....
And this is correct, because it would work under Windows too. May be it
would also work under MacOS if you find good terminal emulator for it.
If there is shell WINDOW and it have a title, somebody would write
support for this escape sequence eventually.
--
- Next message: Kamal R. Prasad: "unix domain sockets within the kernel"
- Previous message: Ulrich Eckhardt: "Re: setting window title"
- In reply to: Ulrich Eckhardt: "Re: setting window title"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|