Article View: comp.windows.x.apps
Article #700Re: Setting icon title for an xterm
From: Andy.Behrens
Date: Thu, 21 Jan 1993 23:44
Date: Thu, 21 Jan 1993 23:44
33 lines
1224 bytes
1224 bytes
schwager@mike.cs.uiuc.edu (Mike Schwager) writes:
> How would I set the icon title for an xterm, from that xterm. I already
> know how to reset the titlebar title ...
The following script lets you change the titlebar, the icon name, or
(the default behavior) both at once.
Examples:
titlebar New Name
titlebar -n New IconName
titlebar -T New Title
============================== CUT HERE ==============================
#! /bin/sh
# titlebar - sets titlebar and icon name
param=0
esc=` echo X | tr X '\033' `
bel=` echo X | tr X '\007' `
case "$1" in
-n | -icon[nN]ame)
param=1; shift ;;
-T | -title)
param=2; shift ;;
-*)
echo >&2 'usage: titlebar [-T | -n] text'; exit 1 ;;
esac
echo "${esc}]${param};$*${bel}"
============================== CUT HERE ==============================
Technical Details
Message-ID:
<C189xD.9yp@dartvax.dartmouth.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ncar!hsdndev!dartvax!newsReferences:
<C17oFA.Hq2@cs.uiuc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ncar!hsdndev!dartvax!news From: Andy.Behrens@coat.com Newsgroups: comp.windows.x.apps Subject: Re: Setting icon title for an xterm Message-ID: <C189xD.9yp@dartvax.dartmouth.edu> Date: 21 Jan 93 23:44:00 GMT References: <C17oFA.Hq2@cs.uiuc.edu> Sender: wendell@coos.dartmouth.edu Organization: Dartmouth College, Hanover, NH Lines: 33