On Thu, Aug 02, 2001 at 09:21:32AM -0700, Mac Reason wrote:
> I want to customize the title text on genome-terminal windows.
> Can this be done after the window is open? If not, can I modify
> the window opening process to change the title?
Setting the window title on an already-open terminal window:
The following works for me, but could stand polishing for general
distribution. The script fragments below make a new "xwtname" (X Window
Terminal Name) command available in the shell for changing titles in
currently open windows. Example:
xwtname Backup
As I recall, the escape sequences used below separately set
the window title and the window icon label.
--------------------------------
In .bashrc:
--------------------------------
function xwtname
{
unset PROMPT_COMMAND
case "${term:-}" in
*ansi*)
echo -e -n "\\2201.y$*\\234\\2203.y$*\\234"
;;
*xterm*)
echo -e -n "\\033]0;$*\\007"
;;
*)
;;
esac
}
--------------------------------
in .cshrc and/or .tcshrc
--------------------------------
if ($?term ) then
if ("$term" =~ *ansi* ) then
alias xwtname "echo -n \\02201.y\!:*\\0234\\02203.y\!:*\\0234"
else if ("$term" =~ *xterm* ) then
alias xwtname 'echo -n "\033]0;\!:*\007"'
else
alias xwtname 'true'
endif
endif
--------------------------------
When creating a new gnome-terminal window, use command line option
"--title" (which is the same as "-t"). If starting a new gnome-terminal
window from a desktop icon, one should be able to specify the title by
right-mouse clicking on the icon, selecting properties, and modifying
the startup command line. The option for xterm is "-T".
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list