XTERMCONTROL(1) | User Commands | XTERMCONTROL(1) |
xtermcontrol - dynamic control of XFree86 xterm properties.
xtermcontrol [OPTIONS]...
xtermcontrol makes it easy to change colors, title, font and geometry of a running XFree86 xterm(1), as well as to report the current settings of the aforementioned properties.
Window manipulations de-/iconify, raise/lower, maximize/restore and reset are also supported.
To complete the feature set; xtermcontrol lets advanced users issue any xterm control sequence of their choosing.
The default configuration file ~/.xtermcontrol is sourced if xtermcontrol is run without options or if specifically requested, e.g. 'xtermcontrol --file=~/.xtermcontrol'.
Each line in a configuration file is either a comment or contains an attribute. Attributes consist of a keyword and an associated value:
The valid keyword/value combinations are:
keyword = value # comment
foreground="COLOR"
background="COLOR"
highlight="COLOR"
cursor="COLOR"
mouse-foreground="COLOR"
mouse-background="COLOR"
geometry="WIDTHxHEIGHT+XOFF+YOFF"
font="FONT"
color0="COLOR"
color1="COLOR"
color2="COLOR"
color3="COLOR"
color4="COLOR"
color5="COLOR"
color6="COLOR"
color7="COLOR"
color8="COLOR"
color9="COLOR"
color10="COLOR"
color11="COLOR"
color12="COLOR"
color13="COLOR"
color14="COLOR"
color15="COLOR"
Whitespace is ignored in attributes unless within a quoted value. The character ´#´ is taken to begin a comment. Each ´#´ and all remaining characters on that line is ignored.
xtermcontrol accepts any X(7x) FONT NAMES. Font names like ´-adobe-courier-medium-r-normal--10-100-75-75-m-60-iso8859-1´ are very cumbersome to write, so it is convenient to make use of aliases, e.g. ´fixed´ or ´8x13´, if present in fonts.alias files of the font directories.
xtermcontrol accepts any X(7x) COLOR NAMES. Basically this means that colors are specified by name or rgb value, e.g. ´blue´, ´rgb:0000/0000/FFFF´ or ´#00F´. Colors are typically reported by the xterm in a device-dependent numerical form, e.g. ´rgb:0000/0000/FFFF´. Note that old syntax rgb values should always be quoted to avoid ´#´ being interpreted as the beginning of a comment by the shell (see also FILES).
The secret behind xtermcontrol is xterm control sequences. All the possible (there are a plethora of them) control sequences are documented in ctlseqs.txt, found in the xterm(1) distribution (see also FILES).
The OS X Terminal.app emulates an extended set of the VTxxx series commands, closely resembling dtterm. Therefore the following subset of xtermcontrol options works as expected:
--title
--geometry
--get-geometry
--maximize
--restore
--iconify
--de-iconify
--raise
--lower
--reset
If read/write permissions on the tty's are changed so that special group membership is required to be able to write to the pseudo terminal, the easiest workaround is to install xtermcontrol setuid root.
Xterm(1) has three resources, allowWindowOps, allowTitleOps, and allowFontOps, that enables or disables special operations which xtermcontrol relies on. If any of these resources are set (or defaults) to 'false' xtermcontrol may hang. The resources corresponds to xtermcontrol options as:
All three resources can usually be enabled for the current xterm session via a menu; ctrl+rightclick and look for menu item names like 'Allow Window Ops'. To set these resource values persistently you can add the following to either your local ~/.Xdefaults file, or to a system-wide resource file like /etc/X11/app-defaults/XTerm:
allowWindowOps:
--raise
--lower
--restore
--maximize
--iconify
--de-iconify
--get-title
--geometry
--get-geometry
allowTitleOps:
--title
allowFontOps:
--font
--get-font
*VT100.allowWindowOps: true
*VT100.allowTitleOps: true
*VT100.allowFontOps: true
Copyright © 2002-2015 Jess Thrysoee <jess@thrysoee.dk>
December 13, 2015 | xtermcontrol 3.3 |