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