[ale] Xterm Title

Danny Cox danscox at mindspring.com
Fri Apr 19 09:32:44 EDT 2002


Mark,

On Fri, 2002-04-19 at 09:13, Mark E. Schill wrote:
> Is there anyway to set the Xterm title? Whenever I set it, it is ALWAYS
> overidden with @username:@hostname:@path. Is there any to stop that from
> happening??

	Yes, you must do two things:

	1) disable what's setting it
	2) change it to what you wish

	#1 is done via the shell variable "PROMPT_COMMAND".  Just unset it.  #2
is done via the attached shell script.

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny


#!/bin/sh
# chtitle --- change the title of an xterm window
#
# sequence is: ESC ] 2 ; string BEL

case $DISPLAY in
	'') ;;
	*) echo -en "\033]2;$@\007";;
esac



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.




More information about the Ale mailing list