ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvt.7.pod
Revision: 1.76
Committed: Wed Jan 11 19:55:34 2006 UTC (18 years, 5 months ago) by root
Branch: MAIN
Changes since 1.75: +7 -7 lines
Log Message:
*** empty log message ***

File Contents

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