🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.apps
Article #700

Re: Setting icon title for an xterm

#700
From: Andy.Behrens
Date: Thu, 21 Jan 1993 23:44
33 lines
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!news
References: <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