ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvt.7.man.in
Revision: 1.22
Committed: Wed Jul 13 02:53:54 2005 UTC (18 years, 11 months ago) by root
Branch: MAIN
Changes since 1.21: +26 -8 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.3
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
25 ..
26 .\" Set up some character translations and predefined strings. \*(-- will
27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28 .\" double quote, and \*(R" will give a right double quote. | will give a
29 .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
30 .\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
31 .\" expand to `' in nroff, nothing in troff, for use with C<>.
32 .tr \(*W-|\(bv\*(Tr
33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34 .ie n \{\
35 . ds -- \(*W-
36 . ds PI pi
37 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39 . ds L" ""
40 . ds R" ""
41 . ds C` ""
42 . ds C' ""
43 'br\}
44 .el\{\
45 . ds -- \|\(em\|
46 . ds PI \(*p
47 . ds L" ``
48 . ds R" ''
49 'br\}
50 .\"
51 .\" If the F register is turned on, we'll generate index entries on stderr for
52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53 .\" entries marked with X<> in POD. Of course, you'll have to process the
54 .\" output yourself in some meaningful fashion.
55 .if \nF \{\
56 . de IX
57 . tm Index:\\$1\t\\n%\t"\\$2"
58 ..
59 . nr % 0
60 . rr F
61 .\}
62 .\"
63 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
64 .\" way too many mistakes in technical documents.
65 .hy 0
66 .if n .na
67 .\"
68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69 .\" Fear. Run. Save yourself. No user-serviceable parts.
70 . \" fudge factors for nroff and troff
71 .if n \{\
72 . ds #H 0
73 . ds #V .8m
74 . ds #F .3m
75 . ds #[ \f1
76 . ds #] \fP
77 .\}
78 .if t \{\
79 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80 . ds #V .6m
81 . ds #F 0
82 . ds #[ \&
83 . ds #] \&
84 .\}
85 . \" simple accents for nroff and troff
86 .if n \{\
87 . ds ' \&
88 . ds ` \&
89 . ds ^ \&
90 . ds , \&
91 . ds ~ ~
92 . ds /
93 .\}
94 .if t \{\
95 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101 .\}
102 . \" troff and (daisy-wheel) nroff accents
103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110 .ds ae a\h'-(\w'a'u*4/10)'e
111 .ds Ae A\h'-(\w'A'u*4/10)'E
112 . \" corrections for vroff
113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115 . \" for low resolution devices (crt and lpr)
116 .if \n(.H>23 .if \n(.V>19 \
117 \{\
118 . ds : e
119 . ds 8 ss
120 . ds o a
121 . ds d- d\h'-1'\(ga
122 . ds D- D\h'-1'\(hy
123 . ds th \o'bp'
124 . ds Th \o'LP'
125 . ds ae ae
126 . ds Ae AE
127 .\}
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
130 .\"
131 .IX Title "rxvt 7"
132 .TH rxvt 7 "2005-07-13" "5.7" "RXVT-UNICODE"
133 .SH "NAME"
134 RXVT REFERENCE \- FAQ, command sequences and other background information
135 .SH "SYNOPSIS"
136 .IX Header "SYNOPSIS"
137 .Vb 2
138 \& # set a new font set
139 \& printf '\e33]50;%s\e007' 9x15,xft:Kochi" Mincho"
140 .Ve
141 .PP
142 .Vb 2
143 \& # change the locale and tell rxvt-unicode about it
144 \& export LC_CTYPE=ja_JP.EUC-JP; printf "\e33]701;$LC_CTYPE\e007"
145 .Ve
146 .PP
147 .Vb 2
148 \& # set window title
149 \& printf '\e33]2;%s\e007' "new window title"
150 .Ve
151 .SH "DESCRIPTION"
152 .IX Header "DESCRIPTION"
153 This document contains the \s-1FAQ\s0, the \s-1RXVT\s0 \s-1TECHNICAL\s0 \s-1REFERENCE\s0 documenting
154 all escape sequences, and other background information.
155 .PP
156 The newest version of this document is
157 also available on the World Wide Web at
158 <http://cvs.schmorp.de/browse/*checkout*/rxvt\-unicode/doc/rxvt.7.html>.
159 .SH "FREQUENTLY ASKED QUESTIONS"
160 .IX Header "FREQUENTLY ASKED QUESTIONS"
161 .IP "How do I know which rxvt-unicode version I'm using?" 4
162 .IX Item "How do I know which rxvt-unicode version I'm using?"
163 The version number is displayed with the usage (\-h). Also the escape
164 sequence \f(CW\*(C`ESC [ 8 n\*(C'\fR sets the window title to the version number.
165 .IP "I am using Debian GNU/Linux and have a problem..." 4
166 .IX Item "I am using Debian GNU/Linux and have a problem..."
167 The Debian GNU/Linux package of rxvt-unicode in sarge contains large
168 patches that considerably change the behaviour of rxvt\-unicode. Before
169 reporting a bug to the original rxvt-unicode author please download and
170 install the genuine version (<http://software.schmorp.de#rxvt\-unicode>)
171 and try to reproduce the problem. If you cannot, chances are that the
172 problems are specific to Debian GNU/Linux, in which case it should be
173 reported via the Debian Bug Tracking System (use \f(CW\*(C`reportbug\*(C'\fR to report
174 the bug).
175 .Sp
176 For other problems that also affect the Debian package, you can and
177 probably should use the Debian \s-1BTS\s0, too, because, after all, it's also a
178 bug in the Debian version and it serves as a reminder for other users that
179 might encounter the same issue.
180 .IP "When I log-in to another system it tells me about missing terminfo data?" 4
181 .IX Item "When I log-in to another system it tells me about missing terminfo data?"
182 The terminal description used by rxvt-unicode is not as widely available
183 as that for xterm, or even rxvt (for which the same problem often arises).
184 .Sp
185 The correct solution for this problem is to install the terminfo, this can
186 be done like this (with ncurses' infocmp):
187 .Sp
188 .Vb 2
189 \& REMOTE=remotesystem.domain
190 \& infocmp rxvt-unicode | ssh $REMOTE "cat >/tmp/ti && tic /tmp/ti"
191 .Ve
192 .Sp
193 \&... or by installing rxvt-unicode normally on the remote system,
194 .Sp
195 If you cannot or do not want to do this, then you can simply set
196 \&\f(CW\*(C`TERM=rxvt\*(C'\fR or even \f(CW\*(C`TERM=xterm\*(C'\fR, and live with the small number of
197 problems arising, which includes wrong keymapping, less and different
198 colours and some refresh errors in fullscreen applications. It's a nice
199 quick-and-dirty workaround for rare cases, though.
200 .Sp
201 If you always want to do this (and are fine with the consequences) you
202 can either recompile rxvt-unicode with the desired \s-1TERM\s0 value or use a
203 resource to set it:
204 .Sp
205 .Vb 1
206 \& URxvt.termName: rxvt
207 .Ve
208 .Sp
209 If you don't plan to use \fBrxvt\fR (quite common...) you could also replace
210 the rxvt terminfo file with the rxvt-unicode one.
211 .ie n .IP """tic"" outputs some error when compiling the terminfo entry." 4
212 .el .IP "\f(CWtic\fR outputs some error when compiling the terminfo entry." 4
213 .IX Item "tic outputs some error when compiling the terminfo entry."
214 Most likely it's the empty definition for \f(CW\*(C`enacs=\*(C'\fR. Just replace it by
215 \&\f(CW\*(C`enacs=\eE[0@\*(C'\fR and try again.
216 .ie n .IP """bash""'s readline does not work correctly under @@RXVT_NAME@@." 4
217 .el .IP "\f(CWbash\fR's readline does not work correctly under @@RXVT_NAME@@." 4
218 .IX Item "bash's readline does not work correctly under @@RXVT_NAME@@."
219 .PD 0
220 .IP "I need a termcap file entry." 4
221 .IX Item "I need a termcap file entry."
222 .PD
223 One reason you might want this is that some distributions or operating
224 systems still compile some programs using the long-obsoleted termcap
225 library (Fedora Core's bash is one example) and rely on a termcap entry
226 for \f(CW\*(C`rxvt\-unicode\*(C'\fR.
227 .Sp
228 You could use rxvt's termcap entry with resonable results in many cases.
229 You can also create a termcap entry by using terminfo's infocmp program
230 like this:
231 .Sp
232 .Vb 1
233 \& infocmp -C rxvt-unicode
234 .Ve
235 .Sp
236 Or you could use this termcap entry, generated by the command above:
237 .Sp
238 .Vb 20
239 \& rxvt-unicode|rxvt-unicode terminal (X Window System):\e
240 \& :am:bw:eo:km:mi:ms:xn:xo:\e
241 \& :co#80:it#8:li#24:lm#0:\e
242 \& :AL=\eE[%dL:DC=\eE[%dP:DL=\eE[%dM:DO=\eE[%dB:IC=\eE[%d@:\e
243 \& :K1=\eEOw:K2=\eEOu:K3=\eEOy:K4=\eEOq:K5=\eEOs:LE=\eE[%dD:\e
244 \& :RI=\eE[%dC:SF=\eE[%dS:SR=\eE[%dT:UP=\eE[%dA:ae=\eE(B:al=\eE[L:\e
245 \& :as=\eE(0:bl=^G:cd=\eE[J:ce=\eE[K:cl=\eE[H\eE[2J:\e
246 \& :cm=\eE[%i%d;%dH:cr=^M:cs=\eE[%i%d;%dr:ct=\eE[3g:dc=\eE[P:\e
247 \& :dl=\eE[M:do=^J:ec=\eE[%dX:ei=\eE[4l:ho=\eE[H:\e
248 \& :i1=\eE[?47l\eE=\eE[?1l:ic=\eE[@:im=\eE[4h:\e
249 \& :is=\eE[r\eE[m\eE[2J\eE[H\eE[?7h\eE[?1;3;4;6l\eE[4l:\e
250 \& :k1=\eE[11~:k2=\eE[12~:k3=\eE[13~:k4=\eE[14~:k5=\eE[15~:\e
251 \& :k6=\eE[17~:k7=\eE[18~:k8=\eE[19~:k9=\eE[20~:kD=\eE[3~:\e
252 \& :kI=\eE[2~:kN=\eE[6~:kP=\eE[5~:kb=\e177:kd=\eEOB:ke=\eE[?1l\eE>:\e
253 \& :kh=\eE[7~:kl=\eEOD:kr=\eEOC:ks=\eE[?1h\eE=:ku=\eEOA:le=^H:\e
254 \& :mb=\eE[5m:md=\eE[1m:me=\eE[m\e017:mr=\eE[7m:nd=\eE[C:rc=\eE8:\e
255 \& :sc=\eE7:se=\eE[27m:sf=^J:so=\eE[7m:sr=\eEM:st=\eEH:ta=^I:\e
256 \& :te=\eE[r\eE[?1049l:ti=\eE[?1049h:ue=\eE[24m:up=\eE[A:\e
257 \& :us=\eE[4m:vb=\eE[?5h\eE[?5l:ve=\eE[?25h:vi=\eE[?25l:\e
258 \& :vs=\eE[?25h:
259 .Ve
260 .ie n .IP "Why does ""ls"" no longer have coloured output?" 4
261 .el .IP "Why does \f(CWls\fR no longer have coloured output?" 4
262 .IX Item "Why does ls no longer have coloured output?"
263 The \f(CW\*(C`ls\*(C'\fR in the \s-1GNU\s0 coreutils unfortunately doesn't use terminfo to
264 decide wether a terminal has colour, but uses it's own configuration
265 file. Needless to say, \f(CW\*(C`rxvt\-unicode\*(C'\fR is not in it's default file (among
266 with most other terminals supporting colour). Either add:
267 .Sp
268 .Vb 1
269 \& TERM rxvt-unicode
270 .Ve
271 .Sp
272 to \f(CW\*(C`/etc/DIR_COLORS\*(C'\fR or simply add:
273 .Sp
274 .Vb 1
275 \& alias ls='ls --color=auto'
276 .Ve
277 .Sp
278 to your \f(CW\*(C`.profile\*(C'\fR or \f(CW\*(C`.bashrc\*(C'\fR.
279 .IP "Why doesn't vim/emacs etc. use the 88 colour mode?" 4
280 .IX Item "Why doesn't vim/emacs etc. use the 88 colour mode?"
281 .PD 0
282 .IP "Why doesn't vim/emacs etc. make use of italic?" 4
283 .IX Item "Why doesn't vim/emacs etc. make use of italic?"
284 .IP "Why are the secondary screen-related options not working properly?" 4
285 .IX Item "Why are the secondary screen-related options not working properly?"
286 .PD
287 Make sure you are using \f(CW\*(C`TERM=rxvt\-unicode\*(C'\fR. Some pre-packaged
288 distributions (most notably Debian GNU/Linux) break rxvt-unicode
289 by setting \f(CW\*(C`TERM\*(C'\fR to \f(CW\*(C`rxvt\*(C'\fR, which doesn't have these extra
290 features. Unfortunately, some of these (most notably, again, Debian
291 GNU/Linux) furthermore fail to even install the \f(CW\*(C`rxvt\-unicode\*(C'\fR terminfo
292 file, so you will need to install it on your own (See the question \fBWhen
293 I log-in to another system it tells me about missing terminfo data?\fR on
294 how to do this).
295 .IP "My numerical keypad acts weird and generates differing output?" 4
296 .IX Item "My numerical keypad acts weird and generates differing output?"
297 Some Debian GNUL/Linux users seem to have this problem, although no
298 specific details were reported so far. It is possible that this is caused
299 by the wrong \f(CW\*(C`TERM\*(C'\fR setting, although the details of wether and how
300 this can happen are unknown, as \f(CW\*(C`TERM=rxvt\*(C'\fR should offer a compatible
301 keymap. See the answer to the previous question, and please report if that
302 helped.
303 .IP "Rxvt-unicode does not seem to understand the selected encoding?" 4
304 .IX Item "Rxvt-unicode does not seem to understand the selected encoding?"
305 .PD 0
306 .IP "Unicode does not seem to work?" 4
307 .IX Item "Unicode does not seem to work?"
308 .PD
309 If you encounter strange problems like typing an accented character but
310 getting two unrelated other characters or similar, or if program output is
311 subtly garbled, then you should check your locale settings.
312 .Sp
313 Rxvt-unicode must be started with the same \f(CW\*(C`LC_CTYPE\*(C'\fR setting as the
314 programs. Often rxvt-unicode is started in the \f(CW\*(C`C\*(C'\fR locale, while the
315 login script running within the rxvt-unicode window changes the locale to
316 something else, e.g. \f(CW\*(C`en_GB.UTF\-8\*(C'\fR. Needless to say, this is not going to work.
317 .Sp
318 The best thing is to fix your startup environment, as you will likely run
319 into other problems. If nothing works you can try this in your .profile.
320 .Sp
321 .Vb 1
322 \& printf '\ee]701;%s\e007' "$LC_CTYPE"
323 .Ve
324 .Sp
325 If this doesn't work, then maybe you use a \f(CW\*(C`LC_CTYPE\*(C'\fR specification not
326 supported on your systems. Some systems have a \f(CW\*(C`locale\*(C'\fR command which
327 displays this (also, \f(CW\*(C`perl \-e0\*(C'\fR can be used to check locale settings, as
328 it will complain loudly if it cannot set the locale). If it displays something
329 like:
330 .Sp
331 .Vb 1
332 \& locale: Cannot set LC_CTYPE to default locale: ...
333 .Ve
334 .Sp
335 Then the locale you specified is not supported on your system.
336 .Sp
337 If nothing works and you are sure that everything is set correctly then
338 you will need to remember a little known fact: Some programs just don't
339 support locales :(
340 .IP "Why do some characters look so much different than others?" 4
341 .IX Item "Why do some characters look so much different than others?"
342 .PD 0
343 .IP "How does rxvt-unicode choose fonts?" 4
344 .IX Item "How does rxvt-unicode choose fonts?"
345 .PD
346 Most fonts do not contain the full range of Unicode, which is
347 fine. Chances are that the font you (or the admin/package maintainer of
348 your system/os) have specified does not cover all the characters you want
349 to display.
350 .Sp
351 \&\fBrxvt-unicode\fR makes a best-effort try at finding a replacement
352 font. Often the result is fine, but sometimes the chosen font looks
353 bad/ugly/wrong. Some fonts have totally strange characters that don't
354 resemble the correct glyph at all, and rxvt-unicode lacks the artificial
355 intelligence to detect that a specific glyph is wrong: it has to believe
356 the font that the characters it claims to contain indeed look correct.
357 .Sp
358 In that case, select a font of your taste and add it to the font list,
359 e.g.:
360 .Sp
361 .Vb 1
362 \& @@RXVT_NAME@@ -fn basefont,font2,font3...
363 .Ve
364 .Sp
365 When rxvt-unicode sees a character, it will first look at the base
366 font. If the base font does not contain the character, it will go to the
367 next font, and so on. Specifying your own fonts will also speed up this
368 search and use less resources within rxvt-unicode and the X\-server.
369 .Sp
370 The only limitation is that none of the fonts may be larger than the base
371 font, as the base font defines the terminal character cell size, which
372 must be the same due to the way terminals work.
373 .IP "Why do some chinese characters look so different than others?" 4
374 .IX Item "Why do some chinese characters look so different than others?"
375 This is because there is a difference between script and language \*(--
376 rxvt-unicode does not know which language the text that is output is,
377 as it only knows the unicode character codes. If rxvt-unicode first
378 sees a japanese/chinese character, it might choose a japanese font for
379 display. Subsequent japanese characters will use that font. Now, many
380 chinese characters aren't represented in japanese fonts, so when the first
381 non-japanese character comes up, rxvt-unicode will look for a chinese font
382 \&\*(-- unfortunately at this point, it will still use the japanese font for
383 chinese characters that are also in the japanese font.
384 .Sp
385 The workaround is easy: just tag a chinese font at the end of your font
386 list (see the previous question). The key is to view the font list as
387 a preference list: If you expect more japanese, list a japanese font
388 first. If you expect more chinese, put a chinese font first.
389 .Sp
390 In the future it might be possible to switch language preferences at
391 runtime (the internal data structure has no problem with using different
392 fonts for the same character at the same time, but no interface for this
393 has been designed yet).
394 .Sp
395 Until then, you might get away with switching fonts at runtime (see \*(L"Can I switch the fonts at runtime?\*(R" later in this document).
396 .IP "Why does rxvt-unicode sometimes leave pixel droppings?" 4
397 .IX Item "Why does rxvt-unicode sometimes leave pixel droppings?"
398 Most fonts were not designed for terminal use, which means that character
399 size varies a lot. A font that is otherwise fine for terminal use might
400 contain some characters that are simply too wide. Rxvt-unicode will avoid
401 these characters. For characters that are just \*(L"a bit\*(R" too wide a special
402 \&\*(L"careful\*(R" rendering mode is used that redraws adjacent characters.
403 .Sp
404 All of this requires that fonts do not lie about character sizes,
405 however: Xft fonts often draw glyphs larger than their acclaimed bounding
406 box, and rxvt-unicode has no way of detecting this (the correct way is to
407 ask for the character bounding box, which unfortunately is wrong in these
408 cases).
409 .Sp
410 It's not clear (to me at least), wether this is a bug in Xft, freetype,
411 or the respective font. If you encounter this problem you might try using
412 the \f(CW\*(C`\-lsp\*(C'\fR option to give the font more height. If that doesn't work, you
413 might be forced to use a different font.
414 .Sp
415 All of this is not a problem when using X11 core fonts, as their bounding
416 box data is correct.
417 .IP "On Solaris 9, many line-drawing characters are too wide." 4
418 .IX Item "On Solaris 9, many line-drawing characters are too wide."
419 Seems to be a known bug, read
420 <http://nixdoc.net/files/forum/about34198.html>. Some people use the
421 following ugly workaround to get non-double-wide-characters working:
422 .Sp
423 .Vb 1
424 \& #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x)
425 .Ve
426 .IP "My Compose (Multi_key) key is no longer working." 4
427 .IX Item "My Compose (Multi_key) key is no longer working."
428 The most common causes for this are that either your locale is not set
429 correctly, or you specified a \fBpreeditStyle\fR that is not supported by
430 your input method. For example, if you specified \fBOverTheSpot\fR and
431 your input method (e.g. the default input method handling Compose keys)
432 does not support this (for instance because it is not visual), then
433 rxvt-unicode will continue without an input method.
434 .Sp
435 In this case either do not specify a \fBpreeditStyle\fR or specify more than
436 one pre-edit style, such as \fBOverTheSpot,Root,None\fR.
437 .ie n .IP "I cannot type ""Ctrl\-Shift\-2"" to get an \s-1ASCII\s0 \s-1NUL\s0 character due to \s-1ISO\s0 14755" 4
438 .el .IP "I cannot type \f(CWCtrl\-Shift\-2\fR to get an \s-1ASCII\s0 \s-1NUL\s0 character due to \s-1ISO\s0 14755" 4
439 .IX Item "I cannot type Ctrl-Shift-2 to get an ASCII NUL character due to ISO 14755"
440 Either try \f(CW\*(C`Ctrl\-2\*(C'\fR alone (it often is mapped to \s-1ASCII\s0 \s-1NUL\s0 even on
441 international keyboards) or simply use \s-1ISO\s0 14755 support to your
442 advantage, typing <Ctrl\-Shift\-0> to get a \s-1ASCII\s0 \s-1NUL\s0. This works for other
443 codes, too, such as \f(CW\*(C`Ctrl\-Shift\-1\-d\*(C'\fR to type the default telnet escape
444 character and so on.
445 .IP "How can I keep rxvt-unicode from using reverse video so much?" 4
446 .IX Item "How can I keep rxvt-unicode from using reverse video so much?"
447 First of all, make sure you are running with the right terminal settings
448 (\f(CW\*(C`TERM=rxvt\-unicode\*(C'\fR), which will get rid of most of these effects. Then
449 make sure you have specified colours for italic and bold, as otherwise
450 rxvt-unicode might use reverse video to simulate the effect:
451 .Sp
452 .Vb 2
453 \& URxvt.colorBD: white
454 \& URxvt.colorIT: green
455 .Ve
456 .IP "Some programs assume totally weird colours (red instead of blue), how can I fix that?" 4
457 .IX Item "Some programs assume totally weird colours (red instead of blue), how can I fix that?"
458 For some unexplainable reason, some rare programs assume a very weird
459 colour palette when confronted with a terminal with more than the standard
460 8 colours (rxvt\-unicode supports 88). The right fix is, of course, to fix
461 these programs not to assume non-ISO colours without very good reasons.
462 .Sp
463 In the meantime, you can either edit your \f(CW\*(C`rxvt\-unicode\*(C'\fR terminfo
464 definition to only claim 8 colour support or use \f(CW\*(C`TERM=rxvt\*(C'\fR, which will
465 fix colours but keep you from using other rxvt-unicode features.
466 .IP "I am on FreeBSD and rxvt-unicode does not seem to work at all." 4
467 .IX Item "I am on FreeBSD and rxvt-unicode does not seem to work at all."
468 Rxvt-unicode requires the symbol \f(CW\*(C`_\|_STDC_ISO_10646_\|_\*(C'\fR to be defined
469 in your compile environment, or an implementation that implements it,
470 wether it defines the symbol or not. \f(CW\*(C`_\|_STDC_ISO_10646_\|_\*(C'\fR requires that
471 \&\fBwchar_t\fR is represented as unicode.
472 .Sp
473 As you might have guessed, FreeBSD does neither define this symobl nor
474 does it support it. Instead, it uses it's own internal representation of
475 \&\fBwchar_t\fR. This is, of course, completely fine with respect to standards.
476 .Sp
477 However, that means rxvt-unicode only works in \f(CW\*(C`POSIX\*(C'\fR, \f(CW\*(C`ISO\-8859\-1\*(C'\fR and
478 \&\f(CW\*(C`UTF\-8\*(C'\fR locales under FreeBSD (which all use Unicode as \fBwchar_t\fR.
479 .Sp
480 \&\f(CW\*(C`_\|_STDC_ISO_10646_\|_\*(C'\fR is the only sane way to support multi-language
481 apps in an \s-1OS\s0, as using a locale-dependent (and non\-standardized)
482 representation of \fBwchar_t\fR makes it impossible to convert between
483 \&\fBwchar_t\fR (as used by X11 and your applications) and any other encoding
484 without implementing OS-specific-wrappers for each and every locale. There
485 simply are no APIs to convert \fBwchar_t\fR into anything except the current
486 locale encoding.
487 .Sp
488 Some applications (such as the formidable \fBmlterm\fR) work around this
489 by carrying their own replacement functions for character set handling
490 with them, and either implementing OS-dependent hacks or doing multiple
491 conversions (which is slow and unreliable in case the \s-1OS\s0 implements
492 encodings slightly different than the terminal emulator).
493 .Sp
494 The rxvt-unicode author insists that the right way to fix this is in the
495 system libraries once and for all, instead of forcing every app to carry
496 complete replacements for them :)
497 .IP "I use Solaris 9 and it doesn't compile/work/etc." 4
498 .IX Item "I use Solaris 9 and it doesn't compile/work/etc."
499 Try the diff in \fIdoc/solaris9.patch\fR as a base. It fixes the worst
500 problems with \f(CW\*(C`wcwidth\*(C'\fR and a compile problem.
501 .IP "How can I use rxvt-unicode under cygwin?" 4
502 .IX Item "How can I use rxvt-unicode under cygwin?"
503 rxvt-unicode should compile and run out of the box on cygwin, using
504 the X11 libraries that come with cygwin. libW11 emulation is no
505 longer supported (and makes no sense, either, as it only supported a
506 single font). I recommend starting the X\-server in \f(CW\*(C`\-multiwindow\*(C'\fR or
507 \&\f(CW\*(C`\-rootless\*(C'\fR mode instead, which will result in similar look&feel as the
508 old libW11 emulation.
509 .Sp
510 At the time of this writing, cygwin didn't seem to support any multi-byte
511 encodings (you might try \f(CW\*(C`LC_CTYPE=C\-UTF\-8\*(C'\fR), so you are likely limited
512 to 8\-bit encodings.
513 .IP "How does rxvt-unicode determine the encoding to use?" 4
514 .IX Item "How does rxvt-unicode determine the encoding to use?"
515 .PD 0
516 .IP "Is there an option to switch encodings?" 4
517 .IX Item "Is there an option to switch encodings?"
518 .PD
519 Unlike some other terminals, rxvt-unicode has no encoding switch, and no
520 specific \*(L"utf\-8\*(R" mode, such as xterm. In fact, it doesn't even know about
521 \&\s-1UTF\-8\s0 or any other encodings with respect to terminal I/O.
522 .Sp
523 The reasons is that there exists a perfectly fine mechanism for selecting
524 the encoding, doing I/O and (most important) communicating this to all
525 applications so everybody agrees on character properties such as width
526 and code number. This mechanism is the \fIlocale\fR. Applications not using
527 that info will have problems (for example, \f(CW\*(C`xterm\*(C'\fR gets the width of
528 characters wrong as it uses it's own, locale-independent table under all
529 locales).
530 .Sp
531 Rxvt-unicode uses the \f(CW\*(C`LC_CTYPE\*(C'\fR locale category to select encoding. All
532 programs doing the same (that is, most) will automatically agree in the
533 interpretation of characters.
534 .Sp
535 Unfortunately, there is no system-independent way to select locales, nor
536 is there a standard on how locale specifiers will look like.
537 .Sp
538 On most systems, the content of the \f(CW\*(C`LC_CTYPE\*(C'\fR environment variable
539 contains an arbitrary string which corresponds to an already-installed
540 locale. Common names for locales are \f(CW\*(C`en_US.UTF\-8\*(C'\fR, \f(CW\*(C`de_DE.ISO\-8859\-15\*(C'\fR,
541 \&\f(CW\*(C`ja_JP.EUC\-JP\*(C'\fR, i.e. \f(CW\*(C`language_country.encoding\*(C'\fR, but other forms
542 (i.e. \f(CW\*(C`de\*(C'\fR or \f(CW\*(C`german\*(C'\fR) are also common.
543 .Sp
544 Rxvt-unicode ignores all other locale categories, and except for
545 the encoding, ignores country or language-specific settings,
546 i.e. \f(CW\*(C`de_DE.UTF\-8\*(C'\fR and \f(CW\*(C`ja_JP.UTF\-8\*(C'\fR are the normally same to
547 rxvt\-unicode.
548 .Sp
549 If you want to use a specific encoding you have to make sure you start
550 rxvt-unicode with the correct \f(CW\*(C`LC_CTYPE\*(C'\fR category.
551 .IP "Can I switch locales at runtime?" 4
552 .IX Item "Can I switch locales at runtime?"
553 Yes, using an escape sequence. Try something like this, which sets
554 rxvt\-unicode's idea of \f(CW\*(C`LC_CTYPE\*(C'\fR.
555 .Sp
556 .Vb 1
557 \& printf '\ee]701;%s\e007' ja_JP.SJIS
558 .Ve
559 .Sp
560 See also the previous answer.
561 .Sp
562 Sometimes this capability is rather handy when you want to work in
563 one locale (e.g. \f(CW\*(C`de_DE.UTF\-8\*(C'\fR) but some programs don't support it
564 (e.g. \s-1UTF\-8\s0). For example, I use this script to start \f(CW\*(C`xjdic\*(C'\fR, which
565 first switches to a locale supported by xjdic and back later:
566 .Sp
567 .Vb 3
568 \& printf '\ee]701;%s\e007' ja_JP.SJIS
569 \& xjdic -js
570 \& printf '\ee]701;%s\e007' de_DE.UTF-8
571 .Ve
572 .Sp
573 You can also use xterm's \f(CW\*(C`luit\*(C'\fR program, which usually works fine, except
574 for some locales where character width differs between program\- and
575 rxvt\-unicode\-locales.
576 .IP "Can I switch the fonts at runtime?" 4
577 .IX Item "Can I switch the fonts at runtime?"
578 Yes, using an escape sequence. Try something like this, which has the same
579 effect as using the \f(CW\*(C`\-fn\*(C'\fR switch, and takes effect immediately:
580 .Sp
581 .Vb 1
582 \& printf '\ee]50;%s\e007' "9x15bold,xft:Kochi Gothic"
583 .Ve
584 .Sp
585 This is useful if you e.g. work primarily with japanese (and prefer a
586 japanese font), but you have to switch to chinese temporarily, where
587 japanese fonts would only be in your way.
588 .Sp
589 You can think of this as a kind of manual \s-1ISO\-2022\s0 switching.
590 .IP "Why do italic characters look as if clipped?" 4
591 .IX Item "Why do italic characters look as if clipped?"
592 Many fonts have difficulties with italic characters and hinting. For
593 example, the otherwise very nicely hinted font \f(CW\*(C`xft:Bitstream Vera Sans
594 Mono\*(C'\fR completely fails in it's italic face. A workaround might be to
595 enable freetype autohinting, i.e. like this:
596 .Sp
597 .Vb 2
598 \& URxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true
599 \& URxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true
600 .Ve
601 .IP "My input method wants <some encoding> but I want \s-1UTF\-8\s0, what can I do?" 4
602 .IX Item "My input method wants <some encoding> but I want UTF-8, what can I do?"
603 You can specify separate locales for the input method and the rest of the
604 terminal, using the resource \f(CW\*(C`imlocale\*(C'\fR:
605 .Sp
606 .Vb 1
607 \& URxvt*imlocale: ja_JP.EUC-JP
608 .Ve
609 .Sp
610 Now you can start your terminal with \f(CW\*(C`LC_CTYPE=ja_JP.UTF\-8\*(C'\fR and still
611 use your input method. Please note, however, that you will not be able to
612 input characters outside \f(CW\*(C`EUC\-JP\*(C'\fR in a normal way then, as your input
613 method limits you.
614 .IP "Rxvt-unicode crashes when the X Input Method changes or exits." 4
615 .IX Item "Rxvt-unicode crashes when the X Input Method changes or exits."
616 Unfortunately, this is unavoidable, as the \s-1XIM\s0 protocol is racy by
617 design. Applications can avoid some crashes at the expense of memory
618 leaks, and Input Methods can avoid some crashes by careful ordering at
619 exit time. \fBkinput2\fR (and derived input methods) generally succeeds,
620 while \fB\s-1SCIM\s0\fR (or similar input methods) fails. In the end, however,
621 crashes cannot be completely avoided even if both sides cooperate.
622 .Sp
623 So the only workaround is not to kill your Input Method Servers.
624 .IP "Rxvt-unicode uses gobs of memory, how can I reduce that?" 4
625 .IX Item "Rxvt-unicode uses gobs of memory, how can I reduce that?"
626 Rxvt-unicode tries to obey the rule of not charging you for something you
627 don't use. One thing you should try is to configure out all settings that
628 you don't need, for example, Xft support is a resource hog by design,
629 when used. Compiling it out ensures that no Xft font will be loaded
630 accidentally when rxvt-unicode tries to find a font for your characters.
631 .Sp
632 Also, many people (me included) like large windows and even larger
633 scrollback buffers: Without \f(CW\*(C`\-\-enable\-unicode3\*(C'\fR, rxvt-unicode will use
634 6 bytes per screen cell. For a 160x?? window this amounts to almost a
635 kilobyte per line. A scrollback buffer of 10000 lines will then (if full)
636 use 10 Megabytes of memory. With \f(CW\*(C`\-\-enable\-unicode3\*(C'\fR it gets worse, as
637 rxvt-unicode then uses 8 bytes per screen cell.
638 .IP "Can I speed up Xft rendering somehow?" 4
639 .IX Item "Can I speed up Xft rendering somehow?"
640 Yes, the most obvious way to speed it up is to avoid Xft entirely, as
641 it is simply slow. If you still want Xft fonts you might try to disable
642 antialiasing (by appending \f(CW\*(C`:antialiasing=false\*(C'\fR), which saves lots of
643 memory and also speeds up rendering considerably.
644 .IP "Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?" 4
645 .IX Item "Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?"
646 Rxvt-unicode will use whatever you specify as a font. If it needs to
647 fall back to it's default font search list it will prefer X11 core
648 fonts, because they are small and fast, and then use Xft fonts. It has
649 antialiasing disabled for most of them, because the author thinks they
650 look best that way.
651 .Sp
652 If you want antialiasing, you have to specify the fonts manually.
653 .IP "Mouse cut/paste suddenly no longer works." 4
654 .IX Item "Mouse cut/paste suddenly no longer works."
655 Make sure that mouse reporting is actually turned off since killing
656 some editors prematurely may leave the mouse in mouse report mode. I've
657 heard that tcsh may use mouse reporting unless it otherwise specified. A
658 quick check is to see if cut/paste works when the Alt or Shift keys are
659 depressed. See @@RXVT_NAME@@(7)
660 .IP "What's with this bold/blink stuff?" 4
661 .IX Item "What's with this bold/blink stuff?"
662 If no bold colour is set via \f(CW\*(C`colorBD:\*(C'\fR, bold will invert text using the
663 standard foreground colour.
664 .Sp
665 For the standard background colour, blinking will actually make the
666 text blink when compiled with \f(CW\*(C`\-\-enable\-blinking\*(C'\fR. with standard
667 colours. Without \f(CW\*(C`\-\-enable\-blinking\*(C'\fR, the blink attribute will be
668 ignored.
669 .Sp
670 On \s-1ANSI\s0 colours, bold/blink attributes are used to set high-intensity
671 foreground/background colors.
672 .Sp
673 color0\-7 are the low-intensity colors.
674 .Sp
675 color8\-15 are the corresponding high-intensity colors.
676 .IP "I don't like the screen colors. How do I change them?" 4
677 .IX Item "I don't like the screen colors. How do I change them?"
678 You can change the screen colors at run-time using \fI~/.Xdefaults\fR
679 resources (or as long\-options).
680 .Sp
681 Here are values that are supposed to resemble a \s-1VGA\s0 screen,
682 including the murky brown that passes for low-intensity yellow:
683 .Sp
684 .Vb 8
685 \& URxvt.color0: #000000
686 \& URxvt.color1: #A80000
687 \& URxvt.color2: #00A800
688 \& URxvt.color3: #A8A800
689 \& URxvt.color4: #0000A8
690 \& URxvt.color5: #A800A8
691 \& URxvt.color6: #00A8A8
692 \& URxvt.color7: #A8A8A8
693 .Ve
694 .Sp
695 .Vb 8
696 \& URxvt.color8: #000054
697 \& URxvt.color9: #FF0054
698 \& URxvt.color10: #00FF54
699 \& URxvt.color11: #FFFF54
700 \& URxvt.color12: #0000FF
701 \& URxvt.color13: #FF00FF
702 \& URxvt.color14: #00FFFF
703 \& URxvt.color15: #FFFFFF
704 .Ve
705 .Sp
706 And here is a more complete set of non-standard colors described (not by
707 me) as \*(L"pretty girly\*(R".
708 .Sp
709 .Vb 18
710 \& URxvt.cursorColor: #dc74d1
711 \& URxvt.pointerColor: #dc74d1
712 \& URxvt.background: #0e0e0e
713 \& URxvt.foreground: #4ad5e1
714 \& URxvt.color0: #000000
715 \& URxvt.color8: #8b8f93
716 \& URxvt.color1: #dc74d1
717 \& URxvt.color9: #dc74d1
718 \& URxvt.color2: #0eb8c7
719 \& URxvt.color10: #0eb8c7
720 \& URxvt.color3: #dfe37e
721 \& URxvt.color11: #dfe37e
722 \& URxvt.color5: #9e88f0
723 \& URxvt.color13: #9e88f0
724 \& URxvt.color6: #73f7ff
725 \& URxvt.color14: #73f7ff
726 \& URxvt.color7: #e1dddd
727 \& URxvt.color15: #e1dddd
728 .Ve
729 .IP "How can I start @@RXVT_NAME@@d in a race-free way?" 4
730 .IX Item "How can I start @@RXVT_NAME@@d in a race-free way?"
731 Despite it's name, @@RXVT_NAME@@d is not a real daemon, but more like a
732 server that answers @@RXVT_NAME@@c's requests, so it doesn't background
733 itself.
734 .Sp
735 To ensure @@RXVT_NAME@@d is listening on it's socket, you can use the
736 following method to wait for the startup message before continuing:
737 .Sp
738 .Vb 1
739 \& { @@RXVT_NAME@@d & } | read
740 .Ve
741 .IP "What's with the strange Backspace/Delete key behaviour?" 4
742 .IX Item "What's with the strange Backspace/Delete key behaviour?"
743 Assuming that the physical Backspace key corresponds to the
744 BackSpace keysym (not likely for Linux ... see the following
745 question) there are two standard values that can be used for
746 Backspace: \f(CW\*(C`^H\*(C'\fR and \f(CW\*(C`^?\*(C'\fR.
747 .Sp
748 Historically, either value is correct, but rxvt-unicode adopts the debian
749 policy of using \f(CW\*(C`^?\*(C'\fR when unsure, because it's the one only only correct
750 choice :).
751 .Sp
752 Rxvt-unicode tries to inherit the current stty settings and uses the value
753 of `erase' to guess the value for backspace. If rxvt-unicode wasn't
754 started from a terminal (say, from a menu or by remote shell), then the
755 system value of `erase', which corresponds to \s-1CERASE\s0 in <termios.h>, will
756 be used (which may not be the same as your stty setting).
757 .Sp
758 For starting a new rxvt\-unicode:
759 .Sp
760 .Vb 3
761 \& # use Backspace = ^H
762 \& $ stty erase ^H
763 \& $ @@RXVT_NAME@@
764 .Ve
765 .Sp
766 .Vb 3
767 \& # use Backspace = ^?
768 \& $ stty erase ^?
769 \& $ @@RXVT_NAME@@
770 .Ve
771 .Sp
772 Toggle with \f(CW\*(C`ESC [ 36 h\*(C'\fR / \f(CW\*(C`ESC [ 36 l\*(C'\fR as documented in @@RXVT_NAME@@(7).
773 .Sp
774 For an existing rxvt\-unicode:
775 .Sp
776 .Vb 3
777 \& # use Backspace = ^H
778 \& $ stty erase ^H
779 \& $ echo -n "^[[36h"
780 .Ve
781 .Sp
782 .Vb 3
783 \& # use Backspace = ^?
784 \& $ stty erase ^?
785 \& $ echo -n "^[[36l"
786 .Ve
787 .Sp
788 This helps satisfy some of the Backspace discrepancies that occur, but
789 if you use Backspace = \f(CW\*(C`^H\*(C'\fR, make sure that the termcap/terminfo value
790 properly reflects that.
791 .Sp
792 The Delete key is a another casualty of the ill-defined Backspace problem.
793 To avoid confusion between the Backspace and Delete keys, the Delete
794 key has been assigned an escape sequence to match the vt100 for Execute
795 (\f(CW\*(C`ESC [ 3 ~\*(C'\fR) and is in the supplied termcap/terminfo.
796 .Sp
797 Some other Backspace problems:
798 .Sp
799 some editors use termcap/terminfo,
800 some editors (vim I'm told) expect Backspace = ^H,
801 \&\s-1GNU\s0 Emacs (and Emacs-like editors) use ^H for help.
802 .Sp
803 Perhaps someday this will all be resolved in a consistent manner.
804 .IP "I don't like the key\-bindings. How do I change them?" 4
805 .IX Item "I don't like the key-bindings. How do I change them?"
806 There are some compile-time selections available via configure. Unless
807 you have run \*(L"configure\*(R" with the \f(CW\*(C`\-\-disable\-resources\*(C'\fR option you can
808 use the `keysym' resource to alter the keystrings associated with keysyms.
809 .Sp
810 Here's an example for a URxvt session started using \f(CW\*(C`@@RXVT_NAME@@ \-name URxvt\*(C'\fR
811 .Sp
812 .Vb 20
813 \& URxvt.keysym.Home: \e033[1~
814 \& URxvt.keysym.End: \e033[4~
815 \& URxvt.keysym.C-apostrophe: \e033<C-'>
816 \& URxvt.keysym.C-slash: \e033<C-/>
817 \& URxvt.keysym.C-semicolon: \e033<C-;>
818 \& URxvt.keysym.C-grave: \e033<C-`>
819 \& URxvt.keysym.C-comma: \e033<C-,>
820 \& URxvt.keysym.C-period: \e033<C-.>
821 \& URxvt.keysym.C-0x60: \e033<C-`>
822 \& URxvt.keysym.C-Tab: \e033<C-Tab>
823 \& URxvt.keysym.C-Return: \e033<C-Return>
824 \& URxvt.keysym.S-Return: \e033<S-Return>
825 \& URxvt.keysym.S-space: \e033<S-Space>
826 \& URxvt.keysym.M-Up: \e033<M-Up>
827 \& URxvt.keysym.M-Down: \e033<M-Down>
828 \& URxvt.keysym.M-Left: \e033<M-Left>
829 \& URxvt.keysym.M-Right: \e033<M-Right>
830 \& URxvt.keysym.M-C-0: list \e033<M-C- 0123456789 >
831 \& URxvt.keysym.M-C-a: list \e033<M-C- abcdefghijklmnopqrstuvwxyz >
832 \& URxvt.keysym.F12: command:\e033]701;zh_CN.GBK\e007
833 .Ve
834 .Sp
835 See some more examples in the documentation for the \fBkeysym\fR resource.
836 .IP "I'm using keyboard model \s-1XXX\s0 that has extra Prior/Next/Insert keys. How do I make use of them? For example, the Sun Keyboard type 4 has the following mappings that rxvt-unicode doesn't recognize." 4
837 .IX Item "I'm using keyboard model XXX that has extra Prior/Next/Insert keys. How do I make use of them? For example, the Sun Keyboard type 4 has the following mappings that rxvt-unicode doesn't recognize."
838 .Vb 6
839 \& KP_Insert == Insert
840 \& F22 == Print
841 \& F27 == Home
842 \& F29 == Prior
843 \& F33 == End
844 \& F35 == Next
845 .Ve
846 .Sp
847 Rather than have rxvt-unicode try to accommodate all the various possible
848 keyboard mappings, it is better to use `xmodmap' to remap the keys as
849 required for your particular machine.
850 .IP "How do I distinguish wether I'm running rxvt-unicode or a regular xterm? I need this to decide about setting colors etc." 4
851 .IX Item "How do I distinguish wether I'm running rxvt-unicode or a regular xterm? I need this to decide about setting colors etc."
852 rxvt and rxvt-unicode always export the variable \*(L"\s-1COLORTERM\s0\*(R", so you can
853 check and see if that is set. Note that several programs, \s-1JED\s0, slrn,
854 Midnight Commander automatically check this variable to decide whether or
855 not to use color.
856 .IP "How do I set the correct, full \s-1IP\s0 address for the \s-1DISPLAY\s0 variable?" 4
857 .IX Item "How do I set the correct, full IP address for the DISPLAY variable?"
858 If you've compiled rxvt-unicode with \s-1DISPLAY_IS_IP\s0 and have enabled
859 insecure mode then it is possible to use the following shell script
860 snippets to correctly set the display. If your version of rxvt-unicode
861 wasn't also compiled with \s-1ESCZ_ANSWER\s0 (as assumed in these snippets) then
862 the \s-1COLORTERM\s0 variable can be used to distinguish rxvt-unicode from a
863 regular xterm.
864 .Sp
865 Courtesy of Chuck Blake <cblake@BBN.COM> with the following shell script
866 snippets:
867 .Sp
868 .Vb 12
869 \& # Bourne/Korn/POSIX family of shells:
870 \& [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know
871 \& if [ ${TERM:-foo} = xterm ]; then
872 \& stty -icanon -echo min 0 time 15 # see if enhanced rxvt or not
873 \& echo -n '^[Z'
874 \& read term_id
875 \& stty icanon echo
876 \& if [ ""${term_id} = '^[[?1;2C' -a ${DISPLAY:-foo} = foo ]; then
877 \& echo -n '^[[7n' # query the rxvt we are in for the DISPLAY string
878 \& read DISPLAY # set it in our local shell
879 \& fi
880 \& fi
881 .Ve
882 .IP "How do I compile the manual pages for myself?" 4
883 .IX Item "How do I compile the manual pages for myself?"
884 You need to have a recent version of perl installed as \fI/usr/bin/perl\fR,
885 one that comes with \fIpod2man\fR, \fIpod2text\fR and \fIpod2html\fR. Then go to
886 the doc subdirectory and enter \f(CW\*(C`make alldoc\*(C'\fR.
887 .IP "My question isn't answered here, can I ask a human?" 4
888 .IX Item "My question isn't answered here, can I ask a human?"
889 Before sending me mail, you could go to \s-1IRC:\s0 \f(CW\*(C`irc.freenode.net\*(C'\fR,
890 channel \f(CW\*(C`#rxvt\-unicode\*(C'\fR has some rxvt-unicode enthusiasts that might be
891 interested in learning about new and exciting problems (but not FAQs :).
892 .SH "RXVT TECHNICAL REFERENCE"
893 .IX Header "RXVT TECHNICAL REFERENCE"
894 .SH "DESCRIPTION"
895 .IX Header "DESCRIPTION"
896 The rest of this document describes various technical aspects of
897 \&\fBrxvt-unicode\fR. First the description of supported command sequences,
898 followed by menu and pixmap support and last by a description of all
899 features selectable at \f(CW\*(C`configure\*(C'\fR time.
900 .SH "Definitions"
901 .IX Header "Definitions"
902 .ie n .IP "\fB\fB""c""\fB\fR" 4
903 .el .IP "\fB\f(CBc\fB\fR" 4
904 .IX Item "c"
905 The literal character c.
906 .ie n .IP "\fB\fB""C""\fB\fR" 4
907 .el .IP "\fB\f(CBC\fB\fR" 4
908 .IX Item "C"
909 A single (required) character.
910 .ie n .IP "\fB\fB""Ps""\fB\fR" 4
911 .el .IP "\fB\f(CBPs\fB\fR" 4
912 .IX Item "Ps"
913 A single (usually optional) numeric parameter, composed of one or more
914 digits.
915 .ie n .IP "\fB\fB""Pm""\fB\fR" 4
916 .el .IP "\fB\f(CBPm\fB\fR" 4
917 .IX Item "Pm"
918 A multiple numeric parameter composed of any number of single numeric
919 parameters, separated by \f(CW\*(C`;\*(C'\fR character(s).
920 .ie n .IP "\fB\fB""Pt""\fB\fR" 4
921 .el .IP "\fB\f(CBPt\fB\fR" 4
922 .IX Item "Pt"
923 A text parameter composed of printable characters.
924 .SH "Values"
925 .IX Header "Values"
926 .ie n .IP "\fB\fB""ENQ""\fB\fR" 4
927 .el .IP "\fB\f(CBENQ\fB\fR" 4
928 .IX Item "ENQ"
929 Enquiry (Ctrl\-E) = Send Device Attributes (\s-1DA\s0)
930 request attributes from terminal. See \fB\f(CB\*(C`ESC [ Ps c\*(C'\fB\fR.
931 .ie n .IP "\fB\fB""BEL""\fB\fR" 4
932 .el .IP "\fB\f(CBBEL\fB\fR" 4
933 .IX Item "BEL"
934 Bell (Ctrl\-G)
935 .ie n .IP "\fB\fB""BS""\fB\fR" 4
936 .el .IP "\fB\f(CBBS\fB\fR" 4
937 .IX Item "BS"
938 Backspace (Ctrl\-H)
939 .ie n .IP "\fB\fB""TAB""\fB\fR" 4
940 .el .IP "\fB\f(CBTAB\fB\fR" 4
941 .IX Item "TAB"
942 Horizontal Tab (\s-1HT\s0) (Ctrl\-I)
943 .ie n .IP "\fB\fB""LF""\fB\fR" 4
944 .el .IP "\fB\f(CBLF\fB\fR" 4
945 .IX Item "LF"
946 Line Feed or New Line (\s-1NL\s0) (Ctrl\-J)
947 .ie n .IP "\fB\fB""VT""\fB\fR" 4
948 .el .IP "\fB\f(CBVT\fB\fR" 4
949 .IX Item "VT"
950 Vertical Tab (Ctrl\-K) same as \fB\f(CB\*(C`LF\*(C'\fB\fR
951 .ie n .IP "\fB\fB""FF""\fB\fR" 4
952 .el .IP "\fB\f(CBFF\fB\fR" 4
953 .IX Item "FF"
954 Form Feed or New Page (\s-1NP\s0) (Ctrl\-L) same as \fB\f(CB\*(C`LF\*(C'\fB\fR
955 .ie n .IP "\fB\fB""CR""\fB\fR" 4
956 .el .IP "\fB\f(CBCR\fB\fR" 4
957 .IX Item "CR"
958 Carriage Return (Ctrl\-M)
959 .ie n .IP "\fB\fB""SO""\fB\fR" 4
960 .el .IP "\fB\f(CBSO\fB\fR" 4
961 .IX Item "SO"
962 Shift Out (Ctrl\-N), invokes the G1 character set.
963 Switch to Alternate Character Set
964 .ie n .IP "\fB\fB""SI""\fB\fR" 4
965 .el .IP "\fB\f(CBSI\fB\fR" 4
966 .IX Item "SI"
967 Shift In (Ctrl\-O), invokes the G0 character set (the default).
968 Switch to Standard Character Set
969 .ie n .IP "\fB\fB""SPC""\fB\fR" 4
970 .el .IP "\fB\f(CBSPC\fB\fR" 4
971 .IX Item "SPC"
972 Space Character
973 .SH "Escape Sequences"
974 .IX Header "Escape Sequences"
975 .ie n .IP "\fB\fB""ESC # 8""\fB\fR" 4
976 .el .IP "\fB\f(CBESC # 8\fB\fR" 4
977 .IX Item "ESC # 8"
978 \&\s-1DEC\s0 Screen Alignment Test (\s-1DECALN\s0)
979 .ie n .IP "\fB\fB""ESC 7""\fB\fR" 4
980 .el .IP "\fB\f(CBESC 7\fB\fR" 4
981 .IX Item "ESC 7"
982 Save Cursor (\s-1SC\s0)
983 .ie n .IP "\fB\fB""ESC 8""\fB\fR" 4
984 .el .IP "\fB\f(CBESC 8\fB\fR" 4
985 .IX Item "ESC 8"
986 Restore Cursor
987 .ie n .IP "\fB\fB""ESC =""\fB\fR" 4
988 .el .IP "\fB\f(CBESC =\fB\fR" 4
989 .IX Item "ESC ="
990 Application Keypad (\s-1SMKX\s0). See also next sequence.
991 .ie n .IP "\fB\fB""ESC""\fB\fR" 4
992 .el .IP "\fB\f(CBESC\fB\fR" 4
993 .IX Item "ESC"
994 Normal Keypad (\s-1RMKX\s0)
995 .Sp
996 \&\fBNote:\fR If the numeric keypad is activated, eg, \fBNum_Lock\fR has been
997 pressed, numbers or control functions are generated by the numeric keypad
998 (see Key Codes).
999 .ie n .IP "\fB\fB""ESC D""\fB\fR" 4
1000 .el .IP "\fB\f(CBESC D\fB\fR" 4
1001 .IX Item "ESC D"
1002 Index (\s-1IND\s0)
1003 .ie n .IP "\fB\fB""ESC E""\fB\fR" 4
1004 .el .IP "\fB\f(CBESC E\fB\fR" 4
1005 .IX Item "ESC E"
1006 Next Line (\s-1NEL\s0)
1007 .ie n .IP "\fB\fB""ESC H""\fB\fR" 4
1008 .el .IP "\fB\f(CBESC H\fB\fR" 4
1009 .IX Item "ESC H"
1010 Tab Set (\s-1HTS\s0)
1011 .ie n .IP "\fB\fB""ESC M""\fB\fR" 4
1012 .el .IP "\fB\f(CBESC M\fB\fR" 4
1013 .IX Item "ESC M"
1014 Reverse Index (\s-1RI\s0)
1015 .ie n .IP "\fB\fB""ESC N""\fB\fR" 4
1016 .el .IP "\fB\f(CBESC N\fB\fR" 4
1017 .IX Item "ESC N"
1018 Single Shift Select of G2 Character Set (\s-1SS2\s0): affects next character
1019 only \fIunimplemented\fR
1020 .ie n .IP "\fB\fB""ESC O""\fB\fR" 4
1021 .el .IP "\fB\f(CBESC O\fB\fR" 4
1022 .IX Item "ESC O"
1023 Single Shift Select of G3 Character Set (\s-1SS3\s0): affects next character
1024 only \fIunimplemented\fR
1025 .ie n .IP "\fB\fB""ESC Z""\fB\fR" 4
1026 .el .IP "\fB\f(CBESC Z\fB\fR" 4
1027 .IX Item "ESC Z"
1028 Obsolete form of returns: \fB\f(CB\*(C`ESC [ ? 1 ; 2 C\*(C'\fB\fR \fIrxvt-unicode compile-time option\fR
1029 .ie n .IP "\fB\fB""ESC c""\fB\fR" 4
1030 .el .IP "\fB\f(CBESC c\fB\fR" 4
1031 .IX Item "ESC c"
1032 Full reset (\s-1RIS\s0)
1033 .ie n .IP "\fB\fB""ESC n""\fB\fR" 4
1034 .el .IP "\fB\f(CBESC n\fB\fR" 4
1035 .IX Item "ESC n"
1036 Invoke the G2 Character Set (\s-1LS2\s0)
1037 .ie n .IP "\fB\fB""ESC o""\fB\fR" 4
1038 .el .IP "\fB\f(CBESC o\fB\fR" 4
1039 .IX Item "ESC o"
1040 Invoke the G3 Character Set (\s-1LS3\s0)
1041 .ie n .IP "\fB\fB""ESC ( C""\fB\fR" 4
1042 .el .IP "\fB\f(CBESC ( C\fB\fR" 4
1043 .IX Item "ESC ( C"
1044 Designate G0 Character Set (\s-1ISO\s0 2022), see below for values of \f(CW\*(C`C\*(C'\fR.
1045 .ie n .IP "\fB\fB""ESC ) C""\fB\fR" 4
1046 .el .IP "\fB\f(CBESC ) C\fB\fR" 4
1047 .IX Item "ESC ) C"
1048 Designate G1 Character Set (\s-1ISO\s0 2022), see below for values of \f(CW\*(C`C\*(C'\fR.
1049 .ie n .IP "\fB\fB""ESC * C""\fB\fR" 4
1050 .el .IP "\fB\f(CBESC * C\fB\fR" 4
1051 .IX Item "ESC * C"
1052 Designate G2 Character Set (\s-1ISO\s0 2022), see below for values of \f(CW\*(C`C\*(C'\fR.
1053 .ie n .IP "\fB\fB""ESC + C""\fB\fR" 4
1054 .el .IP "\fB\f(CBESC + C\fB\fR" 4
1055 .IX Item "ESC + C"
1056 Designate G3 Character Set (\s-1ISO\s0 2022), see below for values of \f(CW\*(C`C\*(C'\fR.
1057 .ie n .IP "\fB\fB""ESC $ C""\fB\fR" 4
1058 .el .IP "\fB\f(CBESC $ C\fB\fR" 4
1059 .IX Item "ESC $ C"
1060 Designate Kanji Character Set
1061 .Sp
1062 Where \fB\f(CB\*(C`C\*(C'\fB\fR is one of:
1063 .TS
1064 l l .
1065 C = 0 DEC Special Character and Line Drawing Set
1066 C = A United Kingdom (UK)
1067 C = B United States (USASCII)
1068 C = < Multinational character set unimplemented
1069 C = 5 Finnish character set unimplemented
1070 C = C Finnish character set unimplemented
1071 C = K German character set unimplemented
1072 .TE
1073
1074 .PP
1075
1076 .IX Xref "CSI"
1077 .SH "CSI (Command Sequence Introducer) Sequences"
1078 .IX Header "CSI (Command Sequence Introducer) Sequences"
1079 .ie n .IP "\fB\fB""ESC [ Ps @""\fB\fR" 4
1080 .el .IP "\fB\f(CBESC [ Ps @\fB\fR" 4
1081 .IX Item "ESC [ Ps @"
1082 Insert \fB\f(CB\*(C`Ps\*(C'\fB\fR (Blank) Character(s) [default: 1] (\s-1ICH\s0)
1083 .IX Xref "ESCOBPsA"
1084 .ie n .IP "\fB\fB""ESC [ Ps A""\fB\fR" 4
1085 .el .IP "\fB\f(CBESC [ Ps A\fB\fR" 4
1086 .IX Item "ESC [ Ps A"
1087 Cursor Up \fB\f(CB\*(C`Ps\*(C'\fB\fR Times [default: 1] (\s-1CUU\s0)
1088 .ie n .IP "\fB\fB""ESC [ Ps B""\fB\fR" 4
1089 .el .IP "\fB\f(CBESC [ Ps B\fB\fR" 4
1090 .IX Item "ESC [ Ps B"
1091 Cursor Down \fB\f(CB\*(C`Ps\*(C'\fB\fR Times [default: 1] (\s-1CUD\s0)
1092 .IX Xref "ESCOBPsC"
1093 .ie n .IP "\fB\fB""ESC [ Ps C""\fB\fR" 4
1094 .el .IP "\fB\f(CBESC [ Ps C\fB\fR" 4
1095 .IX Item "ESC [ Ps C"
1096 Cursor Forward \fB\f(CB\*(C`Ps\*(C'\fB\fR Times [default: 1] (\s-1CUF\s0)
1097 .ie n .IP "\fB\fB""ESC [ Ps D""\fB\fR" 4
1098 .el .IP "\fB\f(CBESC [ Ps D\fB\fR" 4
1099 .IX Item "ESC [ Ps D"
1100 Cursor Backward \fB\f(CB\*(C`Ps\*(C'\fB\fR Times [default: 1] (\s-1CUB\s0)
1101 .ie n .IP "\fB\fB""ESC [ Ps E""\fB\fR" 4
1102 .el .IP "\fB\f(CBESC [ Ps E\fB\fR" 4
1103 .IX Item "ESC [ Ps E"
1104 Cursor Down \fB\f(CB\*(C`Ps\*(C'\fB\fR Times [default: 1] and to first column
1105 .ie n .IP "\fB\fB""ESC [ Ps F""\fB\fR" 4
1106 .el .IP "\fB\f(CBESC [ Ps F\fB\fR" 4
1107 .IX Item "ESC [ Ps F"
1108 Cursor Up \fB\f(CB\*(C`Ps\*(C'\fB\fR Times [default: 1] and to first column
1109 .IX Xref "ESCOBPsG"
1110 .ie n .IP "\fB\fB""ESC [ Ps G""\fB\fR" 4
1111 .el .IP "\fB\f(CBESC [ Ps G\fB\fR" 4
1112 .IX Item "ESC [ Ps G"
1113 Cursor to Column \fB\f(CB\*(C`Ps\*(C'\fB\fR (\s-1HPA\s0)
1114 .ie n .IP "\fB\fB""ESC [ Ps;Ps H""\fB\fR" 4
1115 .el .IP "\fB\f(CBESC [ Ps;Ps H\fB\fR" 4
1116 .IX Item "ESC [ Ps;Ps H"
1117 Cursor Position [row;column] [default: 1;1] (\s-1CUP\s0)
1118 .ie n .IP "\fB\fB""ESC [ Ps I""\fB\fR" 4
1119 .el .IP "\fB\f(CBESC [ Ps I\fB\fR" 4
1120 .IX Item "ESC [ Ps I"
1121 Move forward \fB\f(CB\*(C`Ps\*(C'\fB\fR tab stops [default: 1]
1122 .ie n .IP "\fB\fB""ESC [ Ps J""\fB\fR" 4
1123 .el .IP "\fB\f(CBESC [ Ps J\fB\fR" 4
1124 .IX Item "ESC [ Ps J"
1125 Erase in Display (\s-1ED\s0)
1126 .TS
1127 l l .
1128 Ps = 0 Clear Below (default)
1129 Ps = 1 Clear Above
1130 Ps = 2 Clear All
1131 .TE
1132
1133 .ie n .IP "\fB\fB""ESC [ Ps K""\fB\fR" 4
1134 .el .IP "\fB\f(CBESC [ Ps K\fB\fR" 4
1135 .IX Item "ESC [ Ps K"
1136 Erase in Line (\s-1EL\s0)
1137 .TS
1138 l l .
1139 Ps = 0 Clear to Right (default)
1140 Ps = 1 Clear to Left
1141 Ps = 2 Clear All
1142 .TE
1143
1144 .ie n .IP "\fB\fB""ESC [ Ps L""\fB\fR" 4
1145 .el .IP "\fB\f(CBESC [ Ps L\fB\fR" 4
1146 .IX Item "ESC [ Ps L"
1147 Insert \fB\f(CB\*(C`Ps\*(C'\fB\fR Line(s) [default: 1] (\s-1IL\s0)
1148 .ie n .IP "\fB\fB""ESC [ Ps M""\fB\fR" 4
1149 .el .IP "\fB\f(CBESC [ Ps M\fB\fR" 4
1150 .IX Item "ESC [ Ps M"
1151 Delete \fB\f(CB\*(C`Ps\*(C'\fB\fR Line(s) [default: 1] (\s-1DL\s0)
1152 .ie n .IP "\fB\fB""ESC [ Ps P""\fB\fR" 4
1153 .el .IP "\fB\f(CBESC [ Ps P\fB\fR" 4
1154 .IX Item "ESC [ Ps P"
1155 Delete \fB\f(CB\*(C`Ps\*(C'\fB\fR Character(s) [default: 1] (\s-1DCH\s0)
1156 .ie n .IP "\fB\fB""ESC [ Ps;Ps;Ps;Ps;Ps T""\fB\fR" 4
1157 .el .IP "\fB\f(CBESC [ Ps;Ps;Ps;Ps;Ps T\fB\fR" 4
1158 .IX Item "ESC [ Ps;Ps;Ps;Ps;Ps T"
1159 Initiate . \fIunimplemented\fR Parameters are
1160 [func;startx;starty;firstrow;lastrow].
1161 .ie n .IP "\fB\fB""ESC [ Ps W""\fB\fR" 4
1162 .el .IP "\fB\f(CBESC [ Ps W\fB\fR" 4
1163 .IX Item "ESC [ Ps W"
1164 Tabulator functions
1165 .TS
1166 l l .
1167 Ps = 0 Tab Set (HTS)
1168 Ps = 2 Tab Clear (TBC), Clear Current Column (default)
1169 Ps = 5 Tab Clear (TBC), Clear All
1170 .TE
1171
1172 .ie n .IP "\fB\fB""ESC [ Ps X""\fB\fR" 4
1173 .el .IP "\fB\f(CBESC [ Ps X\fB\fR" 4
1174 .IX Item "ESC [ Ps X"
1175 Erase \fB\f(CB\*(C`Ps\*(C'\fB\fR Character(s) [default: 1] (\s-1ECH\s0)
1176 .ie n .IP "\fB\fB""ESC [ Ps Z""\fB\fR" 4
1177 .el .IP "\fB\f(CBESC [ Ps Z\fB\fR" 4
1178 .IX Item "ESC [ Ps Z"
1179 Move backward \fB\f(CB\*(C`Ps\*(C'\fB\fR [default: 1] tab stops
1180 .ie n .IP "\fB\fB""ESC [ Ps '""\fB\fR" 4
1181 .el .IP "\fB\f(CBESC [ Ps '\fB\fR" 4
1182 .IX Item "ESC [ Ps '"
1183 See \fB\f(CB\*(C`ESC [ Ps G\*(C'\fB\fR
1184 .ie n .IP "\fB\fB""ESC [ Ps a""\fB\fR" 4
1185 .el .IP "\fB\f(CBESC [ Ps a\fB\fR" 4
1186 .IX Item "ESC [ Ps a"
1187 See \fB\f(CB\*(C`ESC [ Ps C\*(C'\fB\fR
1188 .ie n .IP "\fB\fB""ESC [ Ps c""\fB\fR" 4
1189 .el .IP "\fB\f(CBESC [ Ps c\fB\fR" 4
1190 .IX Item "ESC [ Ps c"
1191 Send Device Attributes (\s-1DA\s0)
1192 \&\fB\f(CB\*(C`Ps = 0\*(C'\fB\fR (or omitted): request attributes from terminal
1193 returns: \fB\f(CB\*(C`ESC [ ? 1 ; 2 c\*(C'\fB\fR (``I am a \s-1VT100\s0 with Advanced Video
1194 Option'')
1195 .ie n .IP "\fB\fB""ESC [ Ps d""\fB\fR" 4
1196 .el .IP "\fB\f(CBESC [ Ps d\fB\fR" 4
1197 .IX Item "ESC [ Ps d"
1198 Cursor to Line \fB\f(CB\*(C`Ps\*(C'\fB\fR (\s-1VPA\s0)
1199 .ie n .IP "\fB\fB""ESC [ Ps e""\fB\fR" 4
1200 .el .IP "\fB\f(CBESC [ Ps e\fB\fR" 4
1201 .IX Item "ESC [ Ps e"
1202 See \fB\f(CB\*(C`ESC [ Ps A\*(C'\fB\fR
1203 .ie n .IP "\fB\fB""ESC [ Ps;Ps f""\fB\fR" 4
1204 .el .IP "\fB\f(CBESC [ Ps;Ps f\fB\fR" 4
1205 .IX Item "ESC [ Ps;Ps f"
1206 Horizontal and Vertical Position [row;column] (\s-1HVP\s0) [default: 1;1]
1207 .ie n .IP "\fB\fB""ESC [ Ps g""\fB\fR" 4
1208 .el .IP "\fB\f(CBESC [ Ps g\fB\fR" 4
1209 .IX Item "ESC [ Ps g"
1210 Tab Clear (\s-1TBC\s0)
1211 .TS
1212 l l .
1213 Ps = 0 Clear Current Column (default)
1214 Ps = 3 Clear All (TBC)
1215 .TE
1216
1217 .ie n .IP "\fB\fB""ESC [ Pm h""\fB\fR" 4
1218 .el .IP "\fB\f(CBESC [ Pm h\fB\fR" 4
1219 .IX Item "ESC [ Pm h"
1220 Set Mode (\s-1SM\s0). See \fB\f(CB\*(C`ESC [ Pm l\*(C'\fB\fR sequence for description of \f(CW\*(C`Pm\*(C'\fR.
1221 .ie n .IP "\fB\fB""ESC [ Ps i""\fB\fR" 4
1222 .el .IP "\fB\f(CBESC [ Ps i\fB\fR" 4
1223 .IX Item "ESC [ Ps i"
1224 Printing. See also the \f(CW\*(C`print\-pipe\*(C'\fR resource.
1225 .TS
1226 l l .
1227 Ps = 0 print screen (MC0)
1228 Ps = 4 disable transparent print mode (MC4)
1229 Ps = 5 enable transparent print mode (MC5)
1230 .TE
1231
1232 .ie n .IP "\fB\fB""ESC [ Pm l""\fB\fR" 4
1233 .el .IP "\fB\f(CBESC [ Pm l\fB\fR" 4
1234 .IX Item "ESC [ Pm l"
1235 Reset Mode (\s-1RM\s0)
1236 .RS 4
1237 .ie n .IP "\fB\fB""Ps = 4""\fB\fR" 4
1238 .el .IP "\fB\f(CBPs = 4\fB\fR" 4
1239 .IX Item "Ps = 4"
1240 .TS
1241 l l .
1242 h Insert Mode (SMIR)
1243 l Replace Mode (RMIR)
1244 .TE
1245
1246 .PD 0
1247 .ie n .IP "\fB\fB""Ps = 20""\fB\fR (partially implemented)" 4
1248 .el .IP "\fB\f(CBPs = 20\fB\fR (partially implemented)" 4
1249 .IX Item "Ps = 20 (partially implemented)"
1250 .TS
1251 l l .
1252 h Automatic Newline (LNM)
1253 l Normal Linefeed (LNM)
1254 .TE
1255
1256 .RE
1257 .RS 4
1258 .RE
1259 .ie n .IP "\fB\fB""ESC [ Pm m""\fB\fR" 4
1260 .el .IP "\fB\f(CBESC [ Pm m\fB\fR" 4
1261 .IX Item "ESC [ Pm m"
1262 .PD
1263 Character Attributes (\s-1SGR\s0)
1264 .TS
1265 l l .
1266 Ps = 0 Normal (default)
1267 Ps = 1 / 21 On / Off Bold (bright fg)
1268 Ps = 3 / 23 On / Off Italic
1269 Ps = 4 / 24 On / Off Underline
1270 Ps = 5 / 25 On / Off Slow Blink (bright bg)
1271 Ps = 6 / 26 On / Off Rapid Blink (bright bg)
1272 Ps = 7 / 27 On / Off Inverse
1273 Ps = 8 / 27 On / Off Invisible (NYI)
1274 Ps = 30 / 40 fg/bg Black
1275 Ps = 31 / 41 fg/bg Red
1276 Ps = 32 / 42 fg/bg Green
1277 Ps = 33 / 43 fg/bg Yellow
1278 Ps = 34 / 44 fg/bg Blue
1279 Ps = 35 / 45 fg/bg Magenta
1280 Ps = 36 / 46 fg/bg Cyan
1281 Ps = 38;5 / 48;5 set fg/bg to color #m (ISO 8613-6)
1282 Ps = 37 / 47 fg/bg White
1283 Ps = 39 / 49 fg/bg Default
1284 Ps = 90 / 100 fg/bg Bright Black
1285 Ps = 91 / 101 fg/bg Bright Red
1286 Ps = 92 / 102 fg/bg Bright Green
1287 Ps = 93 / 103 fg/bg Bright Yellow
1288 Ps = 94 / 104 fg/bg Bright Blue
1289 Ps = 95 / 105 fg/bg Bright Magenta
1290 Ps = 96 / 106 fg/bg Bright Cyan
1291 Ps = 97 / 107 fg/bg Bright White
1292 Ps = 99 / 109 fg/bg Bright Default
1293 .TE
1294
1295 .ie n .IP "\fB\fB""ESC [ Ps n""\fB\fR" 4
1296 .el .IP "\fB\f(CBESC [ Ps n\fB\fR" 4
1297 .IX Item "ESC [ Ps n"
1298 Device Status Report (\s-1DSR\s0)
1299 .TS
1300 l l .
1301 Ps = 5 Status Report ESC [ 0 n (``OK'')
1302 Ps = 6 Report Cursor Position (CPR) [row;column] as ESC [ r ; c R
1303 Ps = 7 Request Display Name
1304 Ps = 8 Request Version Number (place in window title)
1305 .TE
1306
1307 .ie n .IP "\fB\fB""ESC [ Ps;Ps r""\fB\fR" 4
1308 .el .IP "\fB\f(CBESC [ Ps;Ps r\fB\fR" 4
1309 .IX Item "ESC [ Ps;Ps r"
1310 Set Scrolling Region [top;bottom]
1311 [default: full size of window] (\s-1CSR\s0)
1312 .ie n .IP "\fB\fB""ESC [ s""\fB\fR" 4
1313 .el .IP "\fB\f(CBESC [ s\fB\fR" 4
1314 .IX Item "ESC [ s"
1315 Save Cursor (\s-1SC\s0)
1316 .ie n .IP "\fB\fB""ESC [ Ps;Pt t""\fB\fR" 4
1317 .el .IP "\fB\f(CBESC [ Ps;Pt t\fB\fR" 4
1318 .IX Item "ESC [ Ps;Pt t"
1319 Window Operations
1320 .TS
1321 l l .
1322 Ps = 1 Deiconify (map) window
1323 Ps = 2 Iconify window
1324 Ps = 3 ESC [ 3 ; X ; Y t Move window to (X|Y)
1325 Ps = 4 ESC [ 4 ; H ; W t Resize to WxH pixels
1326 Ps = 5 Raise window
1327 Ps = 6 Lower window
1328 Ps = 7 Refresh screen once
1329 Ps = 8 ESC [ 8 ; R ; C t Resize to R rows and C columns
1330 Ps = 11 Report window state (responds with Ps = 1 or Ps = 2)
1331 Ps = 13 Report window position (responds with Ps = 3)
1332 Ps = 14 Report window pixel size (responds with Ps = 4)
1333 Ps = 18 Report window text size (responds with Ps = 7)
1334 Ps = 19 Currently the same as Ps = 18, but responds with Ps = 9
1335 Ps = 20 Reports icon label (ESC ] L NAME \234)
1336 Ps = 21 Reports window title (ESC ] l NAME \234)
1337 Ps = 24.. Set window height to Ps rows
1338 .TE
1339
1340 .ie n .IP "\fB\fB""ESC [ u""\fB\fR" 4
1341 .el .IP "\fB\f(CBESC [ u\fB\fR" 4
1342 .IX Item "ESC [ u"
1343 Restore Cursor
1344 .ie n .IP "\fB\fB""ESC [ Ps x""\fB\fR" 4
1345 .el .IP "\fB\f(CBESC [ Ps x\fB\fR" 4
1346 .IX Item "ESC [ Ps x"
1347 Request Terminal Parameters (\s-1DECREQTPARM\s0)
1348 .PP
1349
1350 .IX Xref "PrivateModes"
1351 .SH "DEC Private Modes"
1352 .IX Header "DEC Private Modes"
1353 .ie n .IP "\fB\fB""ESC [ ? Pm h""\fB\fR" 4
1354 .el .IP "\fB\f(CBESC [ ? Pm h\fB\fR" 4
1355 .IX Item "ESC [ ? Pm h"
1356 \&\s-1DEC\s0 Private Mode Set (\s-1DECSET\s0)
1357 .ie n .IP "\fB\fB""ESC [ ? Pm l""\fB\fR" 4
1358 .el .IP "\fB\f(CBESC [ ? Pm l\fB\fR" 4
1359 .IX Item "ESC [ ? Pm l"
1360 \&\s-1DEC\s0 Private Mode Reset (\s-1DECRST\s0)
1361 .ie n .IP "\fB\fB""ESC [ ? Pm r""\fB\fR" 4
1362 .el .IP "\fB\f(CBESC [ ? Pm r\fB\fR" 4
1363 .IX Item "ESC [ ? Pm r"
1364 Restore previously saved \s-1DEC\s0 Private Mode Values.
1365 .ie n .IP "\fB\fB""ESC [ ? Pm s""\fB\fR" 4
1366 .el .IP "\fB\f(CBESC [ ? Pm s\fB\fR" 4
1367 .IX Item "ESC [ ? Pm s"
1368 Save \s-1DEC\s0 Private Mode Values.
1369 .ie n .IP "\fB\fB""ESC [ ? Pm t""\fB\fR" 4
1370 .el .IP "\fB\f(CBESC [ ? Pm t\fB\fR" 4
1371 .IX Item "ESC [ ? Pm t"
1372 Toggle \s-1DEC\s0 Private Mode Values (rxvt extension). \fIwhere\fR
1373 .RS 4
1374 .ie n .IP "\fB\fB""Ps = 1""\fB\fR (\s-1DECCKM\s0)" 4
1375 .el .IP "\fB\f(CBPs = 1\fB\fR (\s-1DECCKM\s0)" 4
1376 .IX Item "Ps = 1 (DECCKM)"
1377 .TS
1378 l l .
1379 h Application Cursor Keys
1380 l Normal Cursor Keys
1381 .TE
1382
1383 .PD 0
1384 .ie n .IP "\fB\fB""Ps = 2""\fB\fR (\s-1ANSI/VT52\s0 mode)" 4
1385 .el .IP "\fB\f(CBPs = 2\fB\fR (\s-1ANSI/VT52\s0 mode)" 4
1386 .IX Item "Ps = 2 (ANSI/VT52 mode)"
1387 .TS
1388 l l .
1389 h Enter VT52 mode
1390 l Enter VT52 mode
1391 .TE
1392
1393 .ie n .IP "\fB\fB""Ps = 3""\fB\fR" 4
1394 .el .IP "\fB\f(CBPs = 3\fB\fR" 4
1395 .IX Item "Ps = 3"
1396 .TS
1397 l l .
1398 h 132 Column Mode (DECCOLM)
1399 l 80 Column Mode (DECCOLM)
1400 .TE
1401
1402 .ie n .IP "\fB\fB""Ps = 4""\fB\fR" 4
1403 .el .IP "\fB\f(CBPs = 4\fB\fR" 4
1404 .IX Item "Ps = 4"
1405 .TS
1406 l l .
1407 h Smooth (Slow) Scroll (DECSCLM)
1408 l Jump (Fast) Scroll (DECSCLM)
1409 .TE
1410
1411 .ie n .IP "\fB\fB""Ps = 5""\fB\fR" 4
1412 .el .IP "\fB\f(CBPs = 5\fB\fR" 4
1413 .IX Item "Ps = 5"
1414 .TS
1415 l l .
1416 h Reverse Video (DECSCNM)
1417 l Normal Video (DECSCNM)
1418 .TE
1419
1420 .ie n .IP "\fB\fB""Ps = 6""\fB\fR" 4
1421 .el .IP "\fB\f(CBPs = 6\fB\fR" 4
1422 .IX Item "Ps = 6"
1423 .TS
1424 l l .
1425 h Origin Mode (DECOM)
1426 l Normal Cursor Mode (DECOM)
1427 .TE
1428
1429 .ie n .IP "\fB\fB""Ps = 7""\fB\fR" 4
1430 .el .IP "\fB\f(CBPs = 7\fB\fR" 4
1431 .IX Item "Ps = 7"
1432 .TS
1433 l l .
1434 h Wraparound Mode (DECAWM)
1435 l No Wraparound Mode (DECAWM)
1436 .TE
1437
1438 .ie n .IP "\fB\fB""Ps = 8""\fB\fR \fIunimplemented\fR" 4
1439 .el .IP "\fB\f(CBPs = 8\fB\fR \fIunimplemented\fR" 4
1440 .IX Item "Ps = 8 unimplemented"
1441 .TS
1442 l l .
1443 h Auto-repeat Keys (DECARM)
1444 l No Auto-repeat Keys (DECARM)
1445 .TE
1446
1447 .ie n .IP "\fB\fB""Ps = 9""\fB\fR X10 XTerm" 4
1448 .el .IP "\fB\f(CBPs = 9\fB\fR X10 XTerm" 4
1449 .IX Item "Ps = 9 X10 XTerm"
1450 .TS
1451 l l .
1452 h Send Mouse X & Y on button press.
1453 l No mouse reporting.
1454 .TE
1455
1456 .ie n .IP "\fB\fB""Ps = 10""\fB\fR (\fBrxvt\fR)" 4
1457 .el .IP "\fB\f(CBPs = 10\fB\fR (\fBrxvt\fR)" 4
1458 .IX Item "Ps = 10 (rxvt)"
1459 .TS
1460 l l .
1461 h menuBar visible
1462 l menuBar invisible
1463 .TE
1464
1465 .ie n .IP "\fB\fB""Ps = 25""\fB\fR" 4
1466 .el .IP "\fB\f(CBPs = 25\fB\fR" 4
1467 .IX Item "Ps = 25"
1468 .TS
1469 l l .
1470 h Visible cursor {cnorm/cvvis}
1471 l Invisible cursor {civis}
1472 .TE
1473
1474 .ie n .IP "\fB\fB""Ps = 30""\fB\fR" 4
1475 .el .IP "\fB\f(CBPs = 30\fB\fR" 4
1476 .IX Item "Ps = 30"
1477 .TS
1478 l l .
1479 h scrollBar visisble
1480 l scrollBar invisisble
1481 .TE
1482
1483 .ie n .IP "\fB\fB""Ps = 35""\fB\fR (\fBrxvt\fR)" 4
1484 .el .IP "\fB\f(CBPs = 35\fB\fR (\fBrxvt\fR)" 4
1485 .IX Item "Ps = 35 (rxvt)"
1486 .TS
1487 l l .
1488 h Allow XTerm Shift+key sequences
1489 l Disallow XTerm Shift+key sequences
1490 .TE
1491
1492 .ie n .IP "\fB\fB""Ps = 38""\fB\fR \fIunimplemented\fR" 4
1493 .el .IP "\fB\f(CBPs = 38\fB\fR \fIunimplemented\fR" 4
1494 .IX Item "Ps = 38 unimplemented"
1495 .PD
1496 Enter Tektronix Mode (\s-1DECTEK\s0)
1497 .ie n .IP "\fB\fB""Ps = 40""\fB\fR" 4
1498 .el .IP "\fB\f(CBPs = 40\fB\fR" 4
1499 .IX Item "Ps = 40"
1500 .TS
1501 l l .
1502 h Allow 80/132 Mode
1503 l Disallow 80/132 Mode
1504 .TE
1505
1506 .PD 0
1507 .ie n .IP "\fB\fB""Ps = 44""\fB\fR \fIunimplemented\fR" 4
1508 .el .IP "\fB\f(CBPs = 44\fB\fR \fIunimplemented\fR" 4
1509 .IX Item "Ps = 44 unimplemented"
1510 .TS
1511 l l .
1512 h Turn On Margin Bell
1513 l Turn Off Margin Bell
1514 .TE
1515
1516 .ie n .IP "\fB\fB""Ps = 45""\fB\fR \fIunimplemented\fR" 4
1517 .el .IP "\fB\f(CBPs = 45\fB\fR \fIunimplemented\fR" 4
1518 .IX Item "Ps = 45 unimplemented"
1519 .TS
1520 l l .
1521 h Reverse-wraparound Mode
1522 l No Reverse-wraparound Mode
1523 .TE
1524
1525 .ie n .IP "\fB\fB""Ps = 46""\fB\fR \fIunimplemented\fR" 4
1526 .el .IP "\fB\f(CBPs = 46\fB\fR \fIunimplemented\fR" 4
1527 .IX Item "Ps = 46 unimplemented"
1528 .ie n .IP "\fB\fB""Ps = 47""\fB\fR" 4
1529 .el .IP "\fB\f(CBPs = 47\fB\fR" 4
1530 .IX Item "Ps = 47"
1531 .TS
1532 l l .
1533 h Use Alternate Screen Buffer
1534 l Use Normal Screen Buffer
1535 .TE
1536
1537 .PD
1538
1539 .IX Xref "Priv66"
1540 .ie n .IP "\fB\fB""Ps = 66""\fB\fR" 4
1541 .el .IP "\fB\f(CBPs = 66\fB\fR" 4
1542 .IX Item "Ps = 66"
1543 .TS
1544 l l .
1545 h Application Keypad (DECPAM) == ESC =
1546 l Normal Keypad (DECPNM) == ESC >
1547 .TE
1548
1549 .PD 0
1550 .ie n .IP "\fB\fB""Ps = 67""\fB\fR" 4
1551 .el .IP "\fB\f(CBPs = 67\fB\fR" 4
1552 .IX Item "Ps = 67"
1553 .TS
1554 l l .
1555 h Backspace key sends BS (DECBKM)
1556 l Backspace key sends DEL
1557 .TE
1558
1559 .ie n .IP "\fB\fB""Ps = 1000""\fB\fR (X11 XTerm)" 4
1560 .el .IP "\fB\f(CBPs = 1000\fB\fR (X11 XTerm)" 4
1561 .IX Item "Ps = 1000 (X11 XTerm)"
1562 .TS
1563 l l .
1564 h Send Mouse X & Y on button press and release.
1565 l No mouse reporting.
1566 .TE
1567
1568 .ie n .IP "\fB\fB""Ps = 1001""\fB\fR (X11 XTerm) \fIunimplemented\fR" 4
1569 .el .IP "\fB\f(CBPs = 1001\fB\fR (X11 XTerm) \fIunimplemented\fR" 4
1570 .IX Item "Ps = 1001 (X11 XTerm) unimplemented"
1571 .TS
1572 l l .
1573 h Use Hilite Mouse Tracking.
1574 l No mouse reporting.
1575 .TE
1576
1577 .ie n .IP "\fB\fB""Ps = 1010""\fB\fR (\fBrxvt\fR)" 4
1578 .el .IP "\fB\f(CBPs = 1010\fB\fR (\fBrxvt\fR)" 4
1579 .IX Item "Ps = 1010 (rxvt)"
1580 .TS
1581 l l .
1582 h Don't scroll to bottom on TTY output
1583 l Scroll to bottom on TTY output
1584 .TE
1585
1586 .ie n .IP "\fB\fB""Ps = 1011""\fB\fR (\fBrxvt\fR)" 4
1587 .el .IP "\fB\f(CBPs = 1011\fB\fR (\fBrxvt\fR)" 4
1588 .IX Item "Ps = 1011 (rxvt)"
1589 .TS
1590 l l .
1591 h Scroll to bottom when a key is pressed
1592 l Don't scroll to bottom when a key is pressed
1593 .TE
1594
1595 .ie n .IP "\fB\fB""Ps = 1047""\fB\fR" 4
1596 .el .IP "\fB\f(CBPs = 1047\fB\fR" 4
1597 .IX Item "Ps = 1047"
1598 .TS
1599 l l .
1600 h Use Alternate Screen Buffer
1601 l Use Normal Screen Buffer - clear Alternate Screen Buffer if returning from it
1602 .TE
1603
1604 .ie n .IP "\fB\fB""Ps = 1048""\fB\fR" 4
1605 .el .IP "\fB\f(CBPs = 1048\fB\fR" 4
1606 .IX Item "Ps = 1048"
1607 .TS
1608 l l .
1609 h Save cursor position
1610 l Restore cursor position
1611 .TE
1612
1613 .ie n .IP "\fB\fB""Ps = 1049""\fB\fR" 4
1614 .el .IP "\fB\f(CBPs = 1049\fB\fR" 4
1615 .IX Item "Ps = 1049"
1616 .TS
1617 l l .
1618 h Use Alternate Screen Buffer - clear Alternate Screen Buffer if switching to it
1619 l Use Normal Screen Buffer
1620 .TE
1621
1622 .RE
1623 .RS 4
1624 .RE
1625 .PD
1626 .PP
1627
1628 .IX Xref "XTerm"
1629 .SH "XTerm Operating System Commands"
1630 .IX Header "XTerm Operating System Commands"
1631 .ie n .IP "\fB\fB""ESC ] Ps;Pt ST""\fB\fR" 4
1632 .el .IP "\fB\f(CBESC ] Ps;Pt ST\fB\fR" 4
1633 .IX Item "ESC ] Ps;Pt ST"
1634 Set XTerm Parameters. 8\-bit \s-1ST:\s0 0x9c, 7\-bit \s-1ST\s0 sequence: \s-1ESC\s0 \e (0x1b,
1635 0x5c), backwards compatible terminator \s-1BEL\s0 (0x07) is also accepted. any
1636 \&\fBoctet\fR can be escaped by prefixing it with \s-1SYN\s0 (0x16, ^V).
1637 .TS
1638 l l .
1639 Ps = 0 Change Icon Name and Window Title to Pt
1640 Ps = 1 Change Icon Name to Pt
1641 Ps = 2 Change Window Title to Pt
1642 Ps = 3 If Pt starts with a ?, query the (STRING) property of the window and return it. If Pt contains a =, set the named property to the given value, else delete the specified property.
1643 Ps = 4 Pt is a semi-colon separated sequence of one or more semi-colon separated number/name pairs, where number is an index to a colour and name is the name of a colour. Each pair causes the numbered colour to be changed to name. Numbers 0-7 corresponds to low-intensity (normal) colours and 8-15 corresponds to high-intensity colours. 0=black, 1=red, 2=green, 3=yellow, 4=blue, 5=magenta, 6=cyan, 7=white
1644 Ps = 10 Change colour of text foreground to Pt (NB: may change in future)
1645 Ps = 11 Change colour of text background to Pt (NB: may change in future)
1646 Ps = 12 Change colour of text cursor foreground to Pt
1647 Ps = 13 Change colour of mouse foreground to Pt
1648 Ps = 17 Change colour of highlight characters to Pt
1649 Ps = 18 Change colour of bold characters to Pt
1650 Ps = 19 Change colour of underlined characters to Pt
1651 Ps = 20 Change default background to Pt
1652 Ps = 39 Change default foreground colour to Pt.
1653 Ps = 46 Change Log File to Pt unimplemented
1654 Ps = 49 Change default background colour to Pt.
1655 Ps = 50 Set fontset to Pt, with the following special values of Pt (rxvt) #+n change up n #-n change down n if n is missing of 0, a value of 1 is used empty change to font0 n change to font n
1656 Ps = 55 Log all scrollback buffer and all of screen to Pt
1657 Ps = 701 Change current locale to Pt, or, if Pt is ?, return the current locale (Compile frills).
1658 Ps = 703 Menubar command Pt (Compile menubar).
1659 Ps = 704 Change colour of italic characters to Pt
1660 Ps = 705 Change background pixmap tint colour to Pt (Compile transparency).
1661 Ps = 710 Set normal fontset to Pt. Same as Ps = 50.
1662 Ps = 711 Set bold fontset to Pt. Similar to Ps = 50 (Compile styles).
1663 Ps = 712 Set italic fontset to Pt. Similar to Ps = 50 (Compile styles).
1664 Ps = 713 Set bold-italic fontset to Pt. Similar to Ps = 50 (Compile styles).
1665 Ps = 720 Move viewing window up by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills).
1666 Ps = 721 Move viewing window down by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills).
1667 .TE
1668
1669 .PP
1670
1671 .IX Xref "menuBar"
1672 .SH "menuBar"
1673 .IX Header "menuBar"
1674 \&\fBThe exact syntax used is \f(BIalmost\fB solidified.\fR
1675 In the menus, \fB\s-1DON\s0'T\fR try to use menuBar commands that add or remove a
1676 menuBar.
1677 .PP
1678 Note that in all of the commands, the \fB\f(BI/path/\fB\fR \fIcannot\fR be
1679 omitted: use \fB./\fR to specify a menu relative to the current menu.
1680 .Sh "Overview of menuBar operation"
1681 .IX Subsection "Overview of menuBar operation"
1682 For the menuBar XTerm escape sequence \f(CW\*(C`ESC ] 703 ; Pt ST\*(C'\fR, the syntax
1683 of \f(CW\*(C`Pt\*(C'\fR can be used for a variety of tasks:
1684 .PP
1685 At the top level is the current menuBar which is a member of a circular
1686 linked-list of other such menuBars.
1687 .PP
1688 The menuBar acts as a parent for the various drop-down menus, which in
1689 turn, may have labels, separator lines, menuItems and subMenus.
1690 .PP
1691 The menuItems are the useful bits: you can use them to mimic keyboard
1692 input or even to send text or escape sequences back to rxvt.
1693 .PP
1694 The menuBar syntax is intended to provide a simple yet robust method of
1695 constructing and manipulating menus and navigating through the
1696 menuBars.
1697 .PP
1698 The first step is to use the tag \fB[menu:\f(BIname\fB]\fR which creates
1699 the menuBar called \fIname\fR and allows access. You may now or menus,
1700 subMenus, and menuItems. Finally, use the tag \fB[done]\fR to set the
1701 menuBar access as \fBreadonly\fR to prevent accidental corruption of the
1702 menus. To re-access the current menuBar for alterations, use the tag
1703 \&\fB[menu]\fR, make the alterations and then use \fB[done]\fR
1704 .PP
1705
1706 .IX Xref "menuBarCommands"
1707 .Sh "Commands"
1708 .IX Subsection "Commands"
1709 .IP "\fB[menu:+\f(BIname\fB]\fR" 4
1710 .IX Item "[menu:+name]"
1711 access the named menuBar for creation or alteration. If a new menuBar
1712 is created, it is called \fIname\fR (max of 15 chars) and the current
1713 menuBar is pushed onto the stack
1714 .IP "\fB[menu]\fR" 4
1715 .IX Item "[menu]"
1716 access the current menuBar for alteration
1717 .IP "\fB[title:+\f(BIstring\fB]\fR" 4
1718 .IX Item "[title:+string]"
1719 set the current menuBar's title to \fIstring\fR, which may contain the
1720 following format specifiers:
1721 .Sp
1722 .Vb 3
1723 \& B<%n> rxvt name (as per the B<-name> command-line option)
1724 \& B<%v> rxvt version
1725 \& B<%%> literal B<%> character
1726 .Ve
1727 .IP "\fB[done]\fR" 4
1728 .IX Item "[done]"
1729 set menuBar access as \fBreadonly\fR.
1730 End-of-file tag for \fB[read:+\f(BIfile\fB]\fR operations.
1731 .IP "\fB[read:+\f(BIfile\fB]\fR" 4
1732 .IX Item "[read:+file]"
1733 read menu commands directly from \fIfile\fR (extension \*(L".menu\*(R" will be
1734 appended if required.) Start reading at a line with \fB[menu]\fR or \fB[menu:+\f(BIname\fB\fR and continuing until \fB[done]\fR is encountered.
1735 .Sp
1736 Blank and comment lines (starting with \fB#\fR) are ignored. Actually,
1737 since any invalid menu commands are also ignored, almost anything could
1738 be construed as a comment line, but this may be tightened up in the
1739 future ... so don't count on it!.
1740 .IP "\fB[read:+\f(BIfile\fB;+\f(BIname\fB]\fR" 4
1741 .IX Item "[read:+file;+name]"
1742 The same as \fB[read:+\f(BIfile\fB]\fR, but start reading at a line with
1743 \&\fB[menu:+\f(BIname\fB]\fR and continuing until \fB[done:+\f(BIname\fB]\fR or
1744 \&\fB[done]\fR is encountered.
1745 .IP "\fB[dump]\fR" 4
1746 .IX Item "[dump]"
1747 dump all menuBars to the file \fB/tmp/rxvt\-PID\fR in a format suitable for
1748 later rereading.
1749 .IP "\fB[rm:name]\fR" 4
1750 .IX Item "[rm:name]"
1751 remove the named menuBar
1752 .IP "\fB[rm] [rm:]\fR" 4
1753 .IX Item "[rm] [rm:]"
1754 remove the current menuBar
1755 .IP "\fB[rm*] [rm:*]\fR" 4
1756 .IX Item "[rm*] [rm:*]"
1757 remove all menuBars
1758 .IP "\fB[swap]\fR" 4
1759 .IX Item "[swap]"
1760 swap the top two menuBars
1761 .IP "\fB[prev]\fR" 4
1762 .IX Item "[prev]"
1763 access the previous menuBar
1764 .IP "\fB[next]\fR" 4
1765 .IX Item "[next]"
1766 access the next menuBar
1767 .IP "\fB[show]\fR" 4
1768 .IX Item "[show]"
1769 Enable display of the menuBar
1770 .IP "\fB[hide]\fR" 4
1771 .IX Item "[hide]"
1772 Disable display of the menuBar
1773 .IP "\fB[pixmap:+\f(BIname\fB]\fR" 4
1774 .IX Item "[pixmap:+name]"
1775 .PD 0
1776 .IP "\fB[pixmap:+\f(BIname\fB;\f(BIscaling\fB]\fR" 4
1777 .IX Item "[pixmap:+name;scaling]"
1778 .PD
1779 (set the background pixmap globally
1780 .Sp
1781 \&\fBA Future implementation \f(BImay\fB make this local to the menubar\fR)
1782 .IP "\fB[:+\f(BIcommand\fB:]\fR" 4
1783 .IX Item "[:+command:]"
1784 ignore the menu readonly status and issue a \fIcommand\fR to or a menu or
1785 menuitem or change the ; a useful shortcut for setting the quick arrows
1786 from a menuBar.
1787 .PP
1788
1789 .IX Xref "menuBarAdd"
1790 .Sh "Adding and accessing menus"
1791 .IX Subsection "Adding and accessing menus"
1792 The following commands may also be \fB+\fR prefixed.
1793 .IP "\fB/+\fR" 4
1794 .IX Item "/+"
1795 access menuBar top level
1796 .IP "\fB./+\fR" 4
1797 .IX Item "./+"
1798 access current menu level
1799 .IP "\fB../+\fR" 4
1800 .IX Item "../+"
1801 access parent menu (1 level up)
1802 .IP "\fB../../\fR" 4
1803 .IX Item "../../"
1804 access parent menu (multiple levels up)
1805 .IP "\fB\f(BI/path/\fBmenu\fR" 4
1806 .IX Item "/path/menu"
1807 add/access menu
1808 .IP "\fB\f(BI/path/\fBmenu/*\fR" 4
1809 .IX Item "/path/menu/*"
1810 add/access menu and clear it if it exists
1811 .IP "\fB\f(BI/path/\fB{\-}\fR" 4
1812 .IX Item "/path/{-}"
1813 add separator
1814 .IP "\fB\f(BI/path/\fB{item}\fR" 4
1815 .IX Item "/path/{item}"
1816 add \fBitem\fR as a label
1817 .IP "\fB\f(BI/path/\fB{item} action\fR" 4
1818 .IX Item "/path/{item} action"
1819 add/alter \fImenuitem\fR with an associated \fIaction\fR
1820 .IP "\fB\f(BI/path/\fB{item}{right\-text}\fR" 4
1821 .IX Item "/path/{item}{right-text}"
1822 add/alter \fImenuitem\fR with \fBright-text\fR as the right-justified text
1823 and as the associated \fIaction\fR
1824 .IP "\fB\f(BI/path/\fB{item}{rtext} action\fR" 4
1825 .IX Item "/path/{item}{rtext} action"
1826 add/alter \fImenuitem\fR with an associated \fIaction\fR and with \fBrtext\fR as
1827 the right-justified text.
1828 .IP "Special characters in \fIaction\fR must be backslash\-escaped:" 4
1829 .IX Item "Special characters in action must be backslash-escaped:"
1830 \&\fB\ea \eb \eE \ee \en \er \et \eoctal\fR
1831 .IP "or in control-character notation:" 4
1832 .IX Item "or in control-character notation:"
1833 \&\fB^@, ^A .. ^Z .. ^_, ^?\fR
1834 .PP
1835 To send a string starting with a \fB\s-1NUL\s0\fR (\fB^@\fR) character to the
1836 program, start \fIaction\fR with a pair of \fB\s-1NUL\s0\fR characters (\fB^@^@\fR),
1837 the first of which will be stripped off and the balance directed to the
1838 program. Otherwise if \fIaction\fR begins with \fB\s-1NUL\s0\fR followed by
1839 non\-+\fB\s-1NUL\s0\fR characters, the leading \fB\s-1NUL\s0\fR is stripped off and the
1840 balance is sent back to rxvt.
1841 .PP
1842 As a convenience for the many Emacs-type editors, \fIaction\fR may start
1843 with \fBM\-\fR (eg, \fBM\-$\fR is equivalent to \fB\eE$\fR) and a \fB\s-1CR\s0\fR will be
1844 appended if missed from \fBM\-x\fR commands.
1845 .PP
1846 As a convenience for issuing XTerm \fB\s-1ESC\s0 ]\fR sequences from a menubar (or
1847 quick arrow), a \fB\s-1BEL\s0\fR (\fB^G\fR) will be appended if needed.
1848 .IP "For example," 4
1849 .IX Item "For example,"
1850 \&\fBM\-xapropos\fR is equivalent to \fB\eExapropos\er\fR
1851 .IP "and" 4
1852 .IX Item "and"
1853 \&\fB\eE]703;mona;100\fR is equivalent to \fB\eE]703;mona;100\ea\fR
1854 .PP
1855 The option \fB{\f(BIright-rtext\fB}\fR will be right\-justified. In the
1856 absence of a specified action, this text will be used as the \fIaction\fR
1857 as well.
1858 .IP "For example," 4
1859 .IX Item "For example,"
1860 \&\fB/File/{Open}{^X^F}\fR is equivalent to \fB/File/{Open}{^X^F} ^X^F\fR
1861 .PP
1862 The left label \fIis\fR necessary, since it's used for matching, but
1863 implicitly hiding the left label (by using same name for both left and
1864 right labels), or explicitly hiding the left label (by preceeding it
1865 with a dot), makes it possible to have right-justified text only.
1866 .IP "For example," 4
1867 .IX Item "For example,"
1868 \&\fB/File/{Open}{Open} Open-File-Action\fR
1869 .IP "or hiding it" 4
1870 .IX Item "or hiding it"
1871 \&\fB/File/{.anylabel}{Open} Open-File-Action\fR
1872 .PP
1873
1874 .IX Xref "menuBarRemove"
1875 .Sh "Removing menus"
1876 .IX Subsection "Removing menus"
1877 .IP "\fB\-/*+\fR" 4
1878 .IX Item "-/*+"
1879 remove all menus from the menuBar, the same as \fB[clear]\fR
1880 .IP "\fB\-+\f(BI/path\fBmenu+\fR" 4
1881 .IX Item "-+/pathmenu+"
1882 remove menu
1883 .IP "\fB\-+\f(BI/path\fB{item}+\fR" 4
1884 .IX Item "-+/path{item}+"
1885 remove item
1886 .IP "\fB\-+\f(BI/path\fB{\-}\fR" 4
1887 .IX Item "-+/path{-}"
1888 remove separator)
1889 .IP "\fB\-/path/menu/*\fR" 4
1890 .IX Item "-/path/menu/*"
1891 remove all items, separators and submenus from menu
1892 .PP
1893
1894 .IX Xref "menuBarArrows"
1895 .Sh "Quick Arrows"
1896 .IX Subsection "Quick Arrows"
1897 The menus also provide a hook for \fIquick arrows\fR to provide easier
1898 user access. If nothing has been explicitly set, the default is to
1899 emulate the curror keys. The syntax permits each arrow to be altered
1900 individually or all four at once without re-entering their common
1901 beginning/end text. For example, to explicitly associate cursor actions
1902 with the arrows, any of the following forms could be used:
1903 .IP "\fB<r>+\f(BIRight\fB\fR" 4
1904 .IX Item "<r>+Right"
1905 .PD 0
1906 .IP "\fB<l>+\f(BILeft\fB\fR" 4
1907 .IX Item "<l>+Left"
1908 .IP "\fB<u>+\f(BIUp\fB\fR" 4
1909 .IX Item "<u>+Up"
1910 .IP "\fB<d>+\f(BIDown\fB\fR" 4
1911 .IX Item "<d>+Down"
1912 .PD
1913 Define actions for the respective arrow buttons
1914 .IP "\fB<b>+\f(BIBegin\fB\fR" 4
1915 .IX Item "<b>+Begin"
1916 .PD 0
1917 .IP "\fB<e>+\f(BIEnd\fB\fR" 4
1918 .IX Item "<e>+End"
1919 .PD
1920 Define common beginning/end parts for \fIquick arrows\fR which used in
1921 conjunction with the above <r> <l> <u> <d> constructs
1922 .IP "For example, define arrows individually," 4
1923 .IX Item "For example, define arrows individually,"
1924 .Vb 1
1925 \& <u>\eE[A
1926 .Ve
1927 .Sp
1928 .Vb 1
1929 \& <d>\eE[B
1930 .Ve
1931 .Sp
1932 .Vb 1
1933 \& <r>\eE[C
1934 .Ve
1935 .Sp
1936 .Vb 1
1937 \& <l>\eE[D
1938 .Ve
1939 .IP "or all at once" 4
1940 .IX Item "or all at once"
1941 .Vb 1
1942 \& <u>\eE[AZ<><d>\eE[BZ<><r>\eE[CZ<><l>\eE[D
1943 .Ve
1944 .IP "or more compactly (factoring out common parts)" 4
1945 .IX Item "or more compactly (factoring out common parts)"
1946 .Vb 1
1947 \& <b>\eE[<u>AZ<><d>BZ<><r>CZ<><l>D
1948 .Ve
1949 .PP
1950
1951 .IX Xref "menuBarSummary"
1952 .Sh "Command Summary"
1953 .IX Subsection "Command Summary"
1954 A short summary of the most \fIcommon\fR commands:
1955 .IP "[menu:name]" 4
1956 .IX Item "[menu:name]"
1957 use an existing named menuBar or start a new one
1958 .IP "[menu]" 4
1959 .IX Item "[menu]"
1960 use the current menuBar
1961 .IP "[title:string]" 4
1962 .IX Item "[title:string]"
1963 set menuBar title
1964 .IP "[done]" 4
1965 .IX Item "[done]"
1966 set menu access to readonly and, if reading from a file, signal \s-1EOF\s0
1967 .IP "[done:name]" 4
1968 .IX Item "[done:name]"
1969 if reading from a file using [read:file;name] signal \s-1EOF\s0
1970 .IP "[rm:name]" 4
1971 .IX Item "[rm:name]"
1972 remove named menuBar(s)
1973 .IP "[rm] [rm:]" 4
1974 .IX Item "[rm] [rm:]"
1975 remove current menuBar
1976 .IP "[rm*] [rm:*]" 4
1977 .IX Item "[rm*] [rm:*]"
1978 remove all menuBar(s)
1979 .IP "[swap]" 4
1980 .IX Item "[swap]"
1981 swap top two menuBars
1982 .IP "[prev]" 4
1983 .IX Item "[prev]"
1984 access the previous menuBar
1985 .IP "[next]" 4
1986 .IX Item "[next]"
1987 access the next menuBar
1988 .IP "[show]" 4
1989 .IX Item "[show]"
1990 map menuBar
1991 .IP "[hide]" 4
1992 .IX Item "[hide]"
1993 unmap menuBar
1994 .IP "[pixmap;file]" 4
1995 .IX Item "[pixmap;file]"
1996 .PD 0
1997 .IP "[pixmap;file;scaling]" 4
1998 .IX Item "[pixmap;file;scaling]"
1999 .PD
2000 set a background pixmap
2001 .IP "[read:file]" 4
2002 .IX Item "[read:file]"
2003 .PD 0
2004 .IP "[read:file;name]" 4
2005 .IX Item "[read:file;name]"
2006 .PD
2007 read in a menu from a file
2008 .IP "[dump]" 4
2009 .IX Item "[dump]"
2010 dump out all menuBars to /tmp/rxvt\-PID
2011 .IP "/" 4
2012 access menuBar top level
2013 .IP "./" 4
2014 .PD 0
2015 .IP "../" 4
2016 .IP "../../" 4
2017 .PD
2018 access current or parent menu level
2019 .IP "/path/menu" 4
2020 .IX Item "/path/menu"
2021 add/access menu
2022 .IP "/path/{\-}" 4
2023 .IX Item "/path/{-}"
2024 add separator
2025 .IP "/path/{item}{rtext} action" 4
2026 .IX Item "/path/{item}{rtext} action"
2027 add/alter menu item
2028 .IP "\-/*" 4
2029 remove all menus from the menuBar
2030 .IP "\-/path/menu" 4
2031 .IX Item "-/path/menu"
2032 remove menu items, separators and submenus from menu
2033 .IP "\-/path/menu" 4
2034 .IX Item "-/path/menu"
2035 remove menu
2036 .IP "\-/path/{item}" 4
2037 .IX Item "-/path/{item}"
2038 remove item
2039 .IP "\-/path/{\-}" 4
2040 .IX Item "-/path/{-}"
2041 remove separator
2042 .IP "<b>Begin<r>Right<l>Left<u>Up<d>Down<e>End" 4
2043 .IX Item "<b>Begin<r>Right<l>Left<u>Up<d>Down<e>End"
2044 menu quick arrows
2045 .SH "XPM"
2046 .IX Header "XPM"
2047 For the \s-1XPM\s0 XTerm escape sequence \fB\f(CB\*(C`ESC ] 20 ; Pt ST\*(C'\fB\fR then value
2048 of \fB\f(CB\*(C`Pt\*(C'\fB\fR can be the name of the background pixmap followed by a
2049 sequence of scaling/positioning commands separated by semi\-colons. The
2050 scaling/positioning commands are as follows:
2051 .IP "query scale/position" 4
2052 .IX Item "query scale/position"
2053 \&\fB?\fR
2054 .IP "change scale and position" 4
2055 .IX Item "change scale and position"
2056 \&\fBWxH+X+Y\fR
2057 .Sp
2058 \&\fBWxH+X\fR (== \fBWxH+X+X\fR)
2059 .Sp
2060 \&\fBWxH\fR (same as \fBWxH+50+50\fR)
2061 .Sp
2062 \&\fBW+X+Y\fR (same as \fBWxW+X+Y\fR)
2063 .Sp
2064 \&\fBW+X\fR (same as \fBWxW+X+X\fR)
2065 .Sp
2066 \&\fBW\fR (same as \fBWxW+50+50\fR)
2067 .IP "change position (absolute)" 4
2068 .IX Item "change position (absolute)"
2069 \&\fB=+X+Y\fR
2070 .Sp
2071 \&\fB=+X\fR (same as \fB=+X+Y\fR)
2072 .IP "change position (relative)" 4
2073 .IX Item "change position (relative)"
2074 \&\fB+X+Y\fR
2075 .Sp
2076 \&\fB+X\fR (same as \fB+X+Y\fR)
2077 .IP "rescale (relative)" 4
2078 .IX Item "rescale (relative)"
2079 \&\fBWx0\fR \-> \fBW *= (W/100)\fR
2080 .Sp
2081 \&\fB0xH\fR \-> \fBH *= (H/100)\fR
2082 .PP
2083 For example:
2084 .IP "\fB\eE]20;funky\ea\fR" 4
2085 .IX Item "E]20;funkya"
2086 load \fBfunky.xpm\fR as a tiled image
2087 .IP "\fB\eE]20;mona;100\ea\fR" 4
2088 .IX Item "E]20;mona;100a"
2089 load \fBmona.xpm\fR with a scaling of 100%
2090 .IP "\fB\eE]20;;200;?\ea\fR" 4
2091 .IX Item "E]20;;200;?a"
2092 rescale the current pixmap to 200% and display the image geometry in
2093 the title
2094 .SH "Mouse Reporting"
2095 .IX Header "Mouse Reporting"
2096 .ie n .IP "\fB\fB""ESC [ M <b> <x> <y>""\fB\fR" 4
2097 .el .IP "\fB\f(CBESC [ M <b> <x> <y>\fB\fR" 4
2098 .IX Item "ESC [ M <b> <x> <y>"
2099 report mouse position
2100 .PP
2101 The lower 2 bits of \fB\f(CB\*(C`<b>\*(C'\fB\fR indicate the button:
2102 .ie n .IP "Button = \fB\fB""(<b> \- SPACE) & 3""\fB\fR" 4
2103 .el .IP "Button = \fB\f(CB(<b> \- SPACE) & 3\fB\fR" 4
2104 .IX Item "Button = (<b> - SPACE) & 3"
2105 .TS
2106 l l .
2107 0 Button1 pressed
2108 1 Button2 pressed
2109 2 Button3 pressed
2110 3 button released (X11 mouse report)
2111 .TE
2112
2113 .PP
2114 The upper bits of \fB\f(CB\*(C`<b>\*(C'\fB\fR indicate the modifiers when the
2115 button was pressed and are added together (X11 mouse report only):
2116 .ie n .IP "State = \fB\fB""(<b> \- SPACE) & 60""\fB\fR" 4
2117 .el .IP "State = \fB\f(CB(<b> \- SPACE) & 60\fB\fR" 4
2118 .IX Item "State = (<b> - SPACE) & 60"
2119 .TS
2120 l l .
2121 4 Shift
2122 8 Meta
2123 16 Control
2124 32 Double Click (Rxvt extension)
2125 .TE
2126
2127 Col = \fB\f(CB\*(C`<x> \- SPACE\*(C'\fB\fR
2128 .Sp
2129 Row = \fB\f(CB\*(C`<y> \- SPACE\*(C'\fB\fR
2130 .SH "Key Codes"
2131 .IX Header "Key Codes"
2132 Note: \fBShift\fR + \fBF1\fR\-\fBF10\fR generates \fBF11\fR\-\fBF20\fR
2133 .PP
2134 For the keypad, use \fBShift\fR to temporarily override Application-Keypad
2135 setting use \fBNum_Lock\fR to toggle Application-Keypad setting if
2136 \&\fBNum_Lock\fR is off, toggle Application-Keypad setting. Also note that
2137 values of \fBHome\fR, \fBEnd\fR, \fBDelete\fR may have been compiled differently on
2138 your system.
2139 .TS
2140 l l l l l .
2141 Normal Shift Control Ctrl+Shift
2142 Tab ^I ESC [ Z ^I ESC [ Z
2143 BackSpace ^H ^? ^? ^?
2144 Find ESC [ 1 ~ ESC [ 1 $ ESC [ 1 ^ ESC [ 1 @
2145 Insert ESC [ 2 ~ paste ESC [ 2 ^ ESC [ 2 @
2146 Execute ESC [ 3 ~ ESC [ 3 $ ESC [ 3 ^ ESC [ 3 @
2147 Select ESC [ 4 ~ ESC [ 4 $ ESC [ 4 ^ ESC [ 4 @
2148 Prior ESC [ 5 ~ scroll-up ESC [ 5 ^ ESC [ 5 @
2149 Next ESC [ 6 ~ scroll-down ESC [ 6 ^ ESC [ 6 @
2150 Home ESC [ 7 ~ ESC [ 7 $ ESC [ 7 ^ ESC [ 7 @
2151 End ESC [ 8 ~ ESC [ 8 $ ESC [ 8 ^ ESC [ 8 @
2152 Delete ESC [ 3 ~ ESC [ 3 $ ESC [ 3 ^ ESC [ 3 @
2153 F1 ESC [ 11 ~ ESC [ 23 ~ ESC [ 11 ^ ESC [ 23 ^
2154 F2 ESC [ 12 ~ ESC [ 24 ~ ESC [ 12 ^ ESC [ 24 ^
2155 F3 ESC [ 13 ~ ESC [ 25 ~ ESC [ 13 ^ ESC [ 25 ^
2156 F4 ESC [ 14 ~ ESC [ 26 ~ ESC [ 14 ^ ESC [ 26 ^
2157 F5 ESC [ 15 ~ ESC [ 28 ~ ESC [ 15 ^ ESC [ 28 ^
2158 F6 ESC [ 17 ~ ESC [ 29 ~ ESC [ 17 ^ ESC [ 29 ^
2159 F7 ESC [ 18 ~ ESC [ 31 ~ ESC [ 18 ^ ESC [ 31 ^
2160 F8 ESC [ 19 ~ ESC [ 32 ~ ESC [ 19 ^ ESC [ 32 ^
2161 F9 ESC [ 20 ~ ESC [ 33 ~ ESC [ 20 ^ ESC [ 33 ^
2162 F10 ESC [ 21 ~ ESC [ 34 ~ ESC [ 21 ^ ESC [ 34 ^
2163 F11 ESC [ 23 ~ ESC [ 23 $ ESC [ 23 ^ ESC [ 23 @
2164 F12 ESC [ 24 ~ ESC [ 24 $ ESC [ 24 ^ ESC [ 24 @
2165 F13 ESC [ 25 ~ ESC [ 25 $ ESC [ 25 ^ ESC [ 25 @
2166 F14 ESC [ 26 ~ ESC [ 26 $ ESC [ 26 ^ ESC [ 26 @
2167 F15 (Help) ESC [ 28 ~ ESC [ 28 $ ESC [ 28 ^ ESC [ 28 @
2168 F16 (Menu) ESC [ 29 ~ ESC [ 29 $ ESC [ 29 ^ ESC [ 29 @
2169 F17 ESC [ 31 ~ ESC [ 31 $ ESC [ 31 ^ ESC [ 31 @
2170 F18 ESC [ 32 ~ ESC [ 32 $ ESC [ 32 ^ ESC [ 32 @
2171 F19 ESC [ 33 ~ ESC [ 33 $ ESC [ 33 ^ ESC [ 33 @
2172 F20 ESC [ 34 ~ ESC [ 34 $ ESC [ 34 ^ ESC [ 34 @
2173 Application
2174 Up ESC [ A ESC [ a ESC O a ESC O A
2175 Down ESC [ B ESC [ b ESC O b ESC O B
2176 Right ESC [ C ESC [ c ESC O c ESC O C
2177 Left ESC [ D ESC [ d ESC O d ESC O D
2178 KP_Enter ^M ESC O M
2179 KP_F1 ESC O P ESC O P
2180 KP_F2 ESC O Q ESC O Q
2181 KP_F3 ESC O R ESC O R
2182 KP_F4 ESC O S ESC O S
2183 XK_KP_Multiply * ESC O j
2184 XK_KP_Add + ESC O k
2185 XK_KP_Separator , ESC O l
2186 XK_KP_Subtract - ESC O m
2187 XK_KP_Decimal . ESC O n
2188 XK_KP_Divide / ESC O o
2189 XK_KP_0 0 ESC O p
2190 XK_KP_1 1 ESC O q
2191 XK_KP_2 2 ESC O r
2192 XK_KP_3 3 ESC O s
2193 XK_KP_4 4 ESC O t
2194 XK_KP_5 5 ESC O u
2195 XK_KP_6 6 ESC O v
2196 XK_KP_7 7 ESC O w
2197 XK_KP_8 8 ESC O x
2198 XK_KP_9 9 ESC O y
2199 .TE
2200
2201 .SH "CONFIGURE OPTIONS"
2202 .IX Header "CONFIGURE OPTIONS"
2203 General hint: if you get compile errors, then likely your configuration
2204 hasn't been tested well. Either try with \-\-enable\-everything or use the
2205 \&./reconf script as a base for experiments. ./reconf is used by myself,
2206 so it should generally be a working config. Of course, you should always
2207 report when a combination doesn't work, so it can be fixed. Marc Lehmann
2208 <rxvt@schmorp.de>.
2209 .IP "\-\-enable\-everything" 4
2210 .IX Item "--enable-everything"
2211 Add support for all non-multichoice options listed in \*(L"./configure
2212 \&\-\-help\*(R". Note that unlike other enable options this is order dependant.
2213 You can specify this and then disable options which this enables by
2214 \&\fIfollowing\fR this with the appropriate commands.
2215 .IP "\-\-enable\-xft" 4
2216 .IX Item "--enable-xft"
2217 Add support for Xft (anti\-aliases, among others) fonts. Xft fonts are
2218 slower and require lots of memory, but as long as you don't use them, you
2219 don't pay for them.
2220 .IP "\-\-enable\-font\-styles" 4
2221 .IX Item "--enable-font-styles"
2222 Add support for \fBbold\fR, \fIitalic\fR and \fB\f(BIbold italic\fB\fR font
2223 styles. The fonts can be set manually or automatically.
2224 .IP "\-\-with\-codesets=NAME,..." 4
2225 .IX Item "--with-codesets=NAME,..."
2226 Compile in support for additional codeset (encoding) groups (\f(CW\*(C`eu\*(C'\fR, \f(CW\*(C`vn\*(C'\fR
2227 are always compiled in, which includes most 8\-bit character sets). These
2228 codeset tables are used for driving X11 core fonts, they are not required
2229 for Xft fonts, although having them compiled in lets rxvt-unicode choose
2230 replacement fonts more intelligently. Compiling them in will make your
2231 binary bigger (all of together cost about 700kB), but it doesn't increase
2232 memory usage unless you use a font requiring one of these encodings.
2233 .TS
2234 l l .
2235 all all available codeset groups
2236 zh common chinese encodings
2237 zh_ext rarely used but very big chinese encodigs
2238 jp common japanese encodings
2239 jp_ext rarely used but big japanese encodings
2240 kr korean encodings
2241 .TE
2242
2243 .IP "\-\-enable\-xim" 4
2244 .IX Item "--enable-xim"
2245 Add support for \s-1XIM\s0 (X Input Method) protocol. This allows using
2246 alternative input methods (e.g. kinput2) and will also correctly
2247 set up the input for people using dead keys or compose keys.
2248 .IP "\-\-enable\-unicode3" 4
2249 .IX Item "--enable-unicode3"
2250 Enable direct support for displaying unicode codepoints above
2251 65535 (the basic multilingual page). This increases storage
2252 requirements per character from 2 to 4 bytes. X11 fonts do not yet
2253 support these extra characters, but Xft does.
2254 .Sp
2255 Please note that rxvt-unicode can store unicode code points >65535
2256 even without this flag, but the number of such characters is
2257 limited to a view thousand (shared with combining characters,
2258 see next switch), and right now rxvt-unicode cannot display them
2259 (input/output and cut&paste still work, though).
2260 .IP "\-\-enable\-combining" 4
2261 .IX Item "--enable-combining"
2262 Enable automatic composition of combining characters into
2263 composite characters. This is required for proper viewing of text
2264 where accents are encoded as seperate unicode characters. This is
2265 done by using precomposited characters when available or creating
2266 new pseudo-characters when no precomposed form exists.
2267 .Sp
2268 Without \-\-enable\-unicode3, the number of additional precomposed characters
2269 is rather limited (2048, if this is full, rxvt-unicode will use the
2270 private use area, extending the number of combinations to 8448). With
2271 \&\-\-enable\-unicode3, no practical limit exists.
2272 .Sp
2273 This option will also enable storage (but not display) of characters
2274 beyond plane 0 (>65535) when \-\-enable\-unicode3 was not specified.
2275 .Sp
2276 The combining table also contains entries for arabic presentation forms,
2277 but these are not currently used. Bug me if you want these to be used (and
2278 tell me how these are to be used...).
2279 .IP "\-\-enable\-fallback(=CLASS)" 4
2280 .IX Item "--enable-fallback(=CLASS)"
2281 When reading resource settings, also read settings for class \s-1CLASS\s0
2282 (default: Rxvt). To disable resource fallback use \-\-disable\-fallback.
2283 .IP "\-\-with\-res\-name=NAME" 4
2284 .IX Item "--with-res-name=NAME"
2285 Use the given name (default: urxvt) as default application name when
2286 reading resources. Specify \-\-with\-res\-name=rxvt to replace rxvt.
2287 .IP "\-\-with\-res\-class=CLASS" 4
2288 .IX Item "--with-res-class=CLASS"
2289 Use the given class (default: URxvt) as default application class
2290 when reading resources. Specify \-\-with\-res\-class=Rxvt to replace
2291 rxvt.
2292 .IP "\-\-enable\-utmp" 4
2293 .IX Item "--enable-utmp"
2294 Write user and tty to utmp file (used by programs like \fIw\fR) at
2295 start of rxvt execution and delete information when rxvt exits.
2296 .IP "\-\-enable\-wtmp" 4
2297 .IX Item "--enable-wtmp"
2298 Write user and tty to wtmp file (used by programs like \fIlast\fR) at
2299 start of rxvt execution and write logout when rxvt exits. This
2300 option requires \-\-enable\-utmp to also be specified.
2301 .IP "\-\-enable\-lastlog" 4
2302 .IX Item "--enable-lastlog"
2303 Write user and tty to lastlog file (used by programs like
2304 \&\fIlastlogin\fR) at start of rxvt execution. This option requires
2305 \&\-\-enable\-utmp to also be specified.
2306 .IP "\-\-enable\-xpm\-background" 4
2307 .IX Item "--enable-xpm-background"
2308 Add support for \s-1XPM\s0 background pixmaps.
2309 .IP "\-\-enable\-transparency" 4
2310 .IX Item "--enable-transparency"
2311 Add support for inheriting parent backgrounds thus giving a fake
2312 transparency to the term.
2313 .IP "\-\-enable\-fading" 4
2314 .IX Item "--enable-fading"
2315 Add support for fading the text when focus is lost.
2316 .IP "\-\-enable\-tinting" 4
2317 .IX Item "--enable-tinting"
2318 Add support for tinting of transparent backgrounds.
2319 .IP "\-\-enable\-menubar" 4
2320 .IX Item "--enable-menubar"
2321 Add support for our menu bar system (this interacts badly with
2322 dynamic locale switching currently).
2323 .IP "\-\-enable\-rxvt\-scroll" 4
2324 .IX Item "--enable-rxvt-scroll"
2325 Add support for the original rxvt scrollbar.
2326 .IP "\-\-enable\-next\-scroll" 4
2327 .IX Item "--enable-next-scroll"
2328 Add support for a NeXT-like scrollbar.
2329 .IP "\-\-enable\-xterm\-scroll" 4
2330 .IX Item "--enable-xterm-scroll"
2331 Add support for an Xterm-like scrollbar.
2332 .IP "\-\-enable\-plain\-scroll" 4
2333 .IX Item "--enable-plain-scroll"
2334 Add support for a very unobtrusive, plain-looking scrollbar that
2335 is the favourite of the rxvt-unicode author, having used it for
2336 many years.
2337 .IP "\-\-enable\-half\-shadow" 4
2338 .IX Item "--enable-half-shadow"
2339 Make shadows on the scrollbar only half the normal width & height.
2340 only applicable to rxvt scrollbars.
2341 .IP "\-\-enable\-ttygid" 4
2342 .IX Item "--enable-ttygid"
2343 Change tty device setting to group \*(L"tty\*(R" \- only use this if
2344 your system uses this type of security.
2345 .IP "\-\-disable\-backspace\-key" 4
2346 .IX Item "--disable-backspace-key"
2347 Disable any handling of the backspace key by us \- let the X server
2348 do it.
2349 .IP "\-\-disable\-delete\-key" 4
2350 .IX Item "--disable-delete-key"
2351 Disable any handling of the delete key by us \- let the X server
2352 do it.
2353 .IP "\-\-disable\-resources" 4
2354 .IX Item "--disable-resources"
2355 Remove all resources checking.
2356 .IP "\-\-enable\-xgetdefault" 4
2357 .IX Item "--enable-xgetdefault"
2358 Make resources checking via \fIXGetDefault()\fR instead of our small
2359 version which only checks ~/.Xdefaults, or if that doesn't exist then
2360 ~/.Xresources.
2361 .Sp
2362 Please note that nowadays, things like \s-1XIM\s0 will automatically pull in and
2363 use the full X resource manager, so the overhead of using it might be very
2364 small, if nonexistant.
2365 .IP "\-\-enable\-strings" 4
2366 .IX Item "--enable-strings"
2367 Add support for our possibly faster \fImemset()\fR function and other
2368 various routines, overriding your system's versions which may
2369 have been hand-crafted in assembly or may require extra libraries
2370 to link in. (this breaks ANSI-C rules and has problems on many
2371 GNU/Linux systems).
2372 .IP "\-\-disable\-swapscreen" 4
2373 .IX Item "--disable-swapscreen"
2374 Remove support for swap screen.
2375 .IP "\-\-enable\-frills" 4
2376 .IX Item "--enable-frills"
2377 Add support for many small features that are not essential but nice to
2378 have. Normally you want this, but for very small binaries you may want to
2379 disable this.
2380 .Sp
2381 A non-exhaustive list of features enabled by \f(CW\*(C`\-\-enable\-frills\*(C'\fR (possibly
2382 in combination with other switches) is:
2383 .Sp
2384 .Vb 13
2385 \& MWM-hints
2386 \& EWMH-hints (pid, utf8 names) and protocols (ping)
2387 \& seperate underline colour
2388 \& settable border widths and borderless switch
2389 \& settable extra linespacing
2390 \& iso-14755-2 and -3, and visual feedback
2391 \& backindex and forwardindex escape sequence
2392 \& window op and some xterm/OSC escape sequences
2393 \& tripleclickwords
2394 \& settable insecure mode
2395 \& keysym remapping support
2396 \& cursor blinking and underline cursor
2397 \& -embed and -pty-fd options
2398 .Ve
2399 .IP "\-\-enable\-iso14755" 4
2400 .IX Item "--enable-iso14755"
2401 Enable extended \s-1ISO\s0 14755 support (see @@RXVT_NAME@@(1), or
2402 \&\fIdoc/rxvt.1.txt\fR). Basic support (section 5.1) is enabled by
2403 \&\f(CW\*(C`\-\-enable\-frills\*(C'\fR, while support for 5.2, 5.3 and 5.4 is enabled with
2404 this switch.
2405 .IP "\-\-enable\-keepscrolling" 4
2406 .IX Item "--enable-keepscrolling"
2407 Add support for continual scrolling of the display when you hold
2408 the mouse button down on a scrollbar arrow.
2409 .IP "\-\-enable\-mousewheel" 4
2410 .IX Item "--enable-mousewheel"
2411 Add support for scrolling via mouse wheel or buttons 4 & 5.
2412 .IP "\-\-enable\-slipwheeling" 4
2413 .IX Item "--enable-slipwheeling"
2414 Add support for continual scrolling (using the mouse wheel as an
2415 accelerator) while the control key is held down. This option
2416 requires \-\-enable\-mousewheel to also be specified.
2417 .IP "\-\-disable\-new\-selection" 4
2418 .IX Item "--disable-new-selection"
2419 Remove support for mouse selection style like that of xterm.
2420 .IP "\-\-enable\-dmalloc" 4
2421 .IX Item "--enable-dmalloc"
2422 Use Gray Watson's malloc \- which is good for debugging See
2423 http://www.letters.com/dmalloc/ for details If you use either this or the
2424 next option, you may need to edit src/Makefile after compiling to point
2425 \&\s-1DINCLUDE\s0 and \s-1DLIB\s0 to the right places.
2426 .Sp
2427 You can only use either this option and the following (should
2428 you use either) .
2429 .IP "\-\-enable\-dlmalloc" 4
2430 .IX Item "--enable-dlmalloc"
2431 Use Doug Lea's malloc \- which is good for a production version
2432 See <http://g.oswego.edu/dl/html/malloc.html> for details.
2433 .IP "\-\-enable\-smart\-resize" 4
2434 .IX Item "--enable-smart-resize"
2435 Add smart growth/shrink behaviour when changing font size via from hot
2436 keys. This should keep in a fixed position the rxvt corner which is
2437 closest to a corner of the screen.
2438 .IP "\-\-enable\-pointer\-blank" 4
2439 .IX Item "--enable-pointer-blank"
2440 Add support to have the pointer disappear when typing or inactive.
2441 .IP "\-\-with\-name=NAME" 4
2442 .IX Item "--with-name=NAME"
2443 Set the basename for the installed binaries (default: \f(CW\*(C`urxvt\*(C'\fR, resulting
2444 in \f(CW\*(C`urxvt\*(C'\fR, \f(CW\*(C`urxvtd\*(C'\fR etc.). Specify \f(CW\*(C`\-\-with\-name=rxvt\*(C'\fR to replace with
2445 \&\f(CW\*(C`rxvt\*(C'\fR.
2446 .IP "\-\-with\-term=NAME" 4
2447 .IX Item "--with-term=NAME"
2448 Change the environmental variable for the terminal to \s-1NAME\s0 (default
2449 \&\f(CW\*(C`rxvt\-unicode\*(C'\fR)
2450 .IP "\-\-with\-terminfo=PATH" 4
2451 .IX Item "--with-terminfo=PATH"
2452 Change the environmental variable for the path to the terminfo tree to
2453 \&\s-1PATH\s0.
2454 .IP "\-\-with\-x" 4
2455 .IX Item "--with-x"
2456 Use the X Window System (pretty much default, eh?).
2457 .IP "\-\-with\-xpm\-includes=DIR" 4
2458 .IX Item "--with-xpm-includes=DIR"
2459 Look for the \s-1XPM\s0 includes in \s-1DIR\s0.
2460 .IP "\-\-with\-xpm\-library=DIR" 4
2461 .IX Item "--with-xpm-library=DIR"
2462 Look for the \s-1XPM\s0 library in \s-1DIR\s0.
2463 .IP "\-\-with\-xpm" 4
2464 .IX Item "--with-xpm"
2465 Not needed \- define via \-\-enable\-xpm\-background.
2466 .SH "AUTHORS"
2467 .IX Header "AUTHORS"
2468 Marc Lehmann <rxvt@schmorp.de> converted this document to pod and
2469 reworked it from the original Rxvt documentation, which was done by Geoff
2470 Wing <gcw@pobox.com>, who in turn used the XTerm documentation and other
2471 sources.