GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
xtset(1) FreeBSD General Commands Manual xtset(1)

xtset
Set title text for xterm

xtset [-i] [-t] text

xtset writes an xterm ``set title text'' command sequence based on the text argument to stdout. If the TERM environment variable does not start with xterm, xtset does nothing.

Set the title only.
Set the icon name only.

By default, xtset sets both the title and the icon name.

A number of metavariables allow substituting environmental information:
%h
is replaced by the hostname, excluding domain name.
%H
is replaced by the hostname, including domain name if gethostname returns it.
%d
is replaced by the current directory name.
%D
is replaced by the current directory name, only last part (unless this is src, man, doc, etc., in which case the previous part is included as well).
%u
is replaced by the current user name.
%g
is replaced by the current group name.
%U
is replaced by the current real user name.
%G
is replaced by the current real group name.
%m
is replaced by the octal current umask.
%e
is replaced by the value of environment variable XTXTRA or null string.
%t
is replaced by the complete name of the stdin terminal, if it is a terminal.
%T
is replaced by the last part of the stdin file name, if it is a terminal.
%%
is replaced by the real percent sign.

Uses the TERM and XTXTRA variables.

xtset always writes to stdout.

xtset -i Foo

will expand to

Foo
but only on the icon. The title will remain unchanged.

xtset %d@%h (%u:%g)

might expand to

/home/sol/msmith@rheya (msmith:group2)"

xtset -t %u (%T) %h:%D
xtset -i %u@%h:%D

might set the title text to

root (ttyp0) myhost:usr/src

and the icon text to

root@myhost:usr/src

Written by Martin Smith <msmith@lssec.bt.co.uk>. Modifications by Greg Lehey <grog@FreeBSD.org>
March 9, 2001 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.