ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvt.7.pod
(Generate patch)

Comparing rxvt-unicode/doc/rxvt.7.pod (file contents):
Revision 1.135 by ayin, Sun Jun 24 23:30:17 2007 UTC vs.
Revision 1.152 by ayin, Sat Nov 24 16:35:25 2007 UTC

197 197
198And here is rxvt-unicode: 198And here is rxvt-unicode:
199 199
200 libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) 200 libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000)
201 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaaada2000) 201 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaaada2000)
202 libc.so.6 => /lib/libc.so.6 (0x00002aaaaaeb0000) 202 libc.so.6 => /lib/libc.so.6 (0x00002aaaaaeb0000)
203 libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab0ee000) 203 libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab0ee000)
204 /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) 204 /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)
205 205
206No large bloated libraries (of course, none were linked in statically), 206No large bloated libraries (of course, none were linked in statically),
207except maybe libX11 :) 207except maybe libX11 :)
208 208
209 209
210=head2 Rendering, Font & Look and Feel Issues 210=head2 Rendering, Font & Look and Feel Issues
211 211
212=head3 I can't get transparency working, what am I doing wrong? 212=head3 I can't get transparency working, what am I doing wrong?
213 213
214First of all, transparency isn't officially supported in rxvt-unicode, so 214First of all, please address all transparency related issues to Sasha Vasko at
215you are mostly on your own. Do not bug the author about it (but you may 215sasha@aftercode.net and do not bug the author about it. Also, if you can't
216bug everybody else). Also, if you can't get it working consider it a rite 216get it working consider it a rite of passage: ... and you failed.
217of passage: ... and you failed.
218 217
219Here are four ways to get transparency. B<Do> read the manpage and option 218Here are four ways to get transparency. B<Do> read the manpage and option
220descriptions for the programs mentioned and rxvt-unicode. Really, do it! 219descriptions for the programs mentioned and rxvt-unicode. Really, do it!
221 220
2221. Use inheritPixmap: 2211. Use transparent mode:
223 222
224 Esetroot wallpaper.jpg 223 Esetroot wallpaper.jpg
225 @@URXVT_NAME@@ -ip -tint red -sh 40 224 @@URXVT_NAME@@ -tr -tint red -sh 40
226 225
227That works. If you think it doesn't, you lack transparency and tinting 226That works. If you think it doesn't, you lack transparency and tinting
228support, or you are unable to read. 227support, or you are unable to read.
229 228
2302. Use a simple pixmap and emulate pseudo-transparency. This enables you 2292. Use a simple pixmap and emulate pseudo-transparency. This enables you
231to use effects other than tinting and shading: Just shade/tint/whatever 230to use effects other than tinting and shading: Just shade/tint/whatever
232your picture with gimp or any other tool: 231your picture with gimp or any other tool:
233 232
234 convert wallpaper.jpg -blur 20x20 -modulate 30 background.xpm 233 convert wallpaper.jpg -blur 20x20 -modulate 30 background.jpg
235 @@URXVT_NAME@@ -pixmap background.xpm -pe automove-background 234 @@URXVT_NAME@@ -pixmap "background.jpg;:root"
236 235
237That works. If you think it doesn't, you lack XPM and Perl support, or you 236That works. If you think it doesn't, you lack AfterImage support, or you
238are unable to read. 237are unable to read.
239 238
2403. Use an ARGB visual: 2393. Use an ARGB visual:
241 240
242 @@URXVT_NAME@@ -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc 241 @@URXVT_NAME@@ -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc
343 342
344If no bold colour is set via C<colorBD:>, bold will invert text using the 343If no bold colour is set via C<colorBD:>, bold will invert text using the
345standard foreground colour. 344standard foreground colour.
346 345
347For the standard background colour, blinking will actually make the 346For the standard background colour, blinking will actually make the
348text blink when compiled with C<--enable-blinking>. with standard 347text blink when compiled with C<--enable-text-blink>. with standard
349colours. Without C<--enable-blinking>, the blink attribute will be 348colours. Without C<--enable-text-blink>, the blink attribute will be
350ignored. 349ignored.
351 350
352On ANSI colours, bold/blink attributes are used to set high-intensity 351On ANSI colours, bold/blink attributes are used to set high-intensity
353foreground/background colors. 352foreground/background colors.
354 353
460has been designed yet). 459has been designed yet).
461 460
462Until then, you might get away with switching fonts at runtime (see L<Can 461Until then, you might get away with switching fonts at runtime (see L<Can
463I switch the fonts at runtime?> later in this document). 462I switch the fonts at runtime?> later in this document).
464 463
464=head3 How can I make mplayer display video correctly?
465
466We are working on it, in the meantime, as a workaround, use something like:
467
468 @@URXVT_NAME@@ -b 600 -geometry 20x1 -e sh -c 'mplayer -wid $WINDOWID file...'
469
470
465=head2 Keyboard, Mouse & User Interaction 471=head2 Keyboard, Mouse & User Interaction
466 472
467=head3 The new selection selects pieces that are too big, how can I select single words? 473=head3 The new selection selects pieces that are too big, how can I select single words?
468 474
469If you want to select e.g. alphanumeric words, you can use the following 475If you want to select e.g. alphanumeric words, you can use the following
604key has been assigned an escape sequence to match the vt100 for Execute 610key has been assigned an escape sequence to match the vt100 for Execute
605(C<ESC [ 3 ~>) and is in the supplied termcap/terminfo. 611(C<ESC [ 3 ~>) and is in the supplied termcap/terminfo.
606 612
607Some other Backspace problems: 613Some other Backspace problems:
608 614
609some editors use termcap/terminfo, 615some editors use termcap/terminfo,
610some editors (vim I'm told) expect Backspace = ^H, 616some editors (vim I'm told) expect Backspace = ^H,
611GNU Emacs (and Emacs-like editors) use ^H for help. 617GNU Emacs (and Emacs-like editors) use ^H for help.
612 618
613Perhaps someday this will all be resolved in a consistent manner. 619Perhaps someday this will all be resolved in a consistent manner.
614 620
655Rather than have rxvt-unicode try to accommodate all the various possible 661Rather than have rxvt-unicode try to accommodate all the various possible
656keyboard mappings, it is better to use `xmodmap' to remap the keys as 662keyboard mappings, it is better to use `xmodmap' to remap the keys as
657required for your particular machine. 663required for your particular machine.
658 664
659 665
660
661=head2 Terminal Configuration 666=head2 Terminal Configuration
662 667
663=head3 Can I see a typical configuration? 668=head3 Can I see a typical configuration?
664 669
665The default configuration tries to be xterm-like, which I don't like that 670The default configuration tries to be xterm-like, which I don't like that
1068C<@im=kinput2>. For B<scim>, use C<@im=SCIM>. You can see what input 1073C<@im=kinput2>. For B<scim>, use C<@im=SCIM>. You can see what input
1069method servers are running with this command: 1074method servers are running with this command:
1070 1075
1071 xprop -root XIM_SERVERS 1076 xprop -root XIM_SERVERS
1072 1077
1073=item 1078=item
1074 1079
1075=back 1080=back
1076 1081
1077=head3 My input method wants <some encoding> but I want UTF-8, what can I do? 1082=head3 My input method wants <some encoding> but I want UTF-8, what can I do?
1078 1083
1151This forking is done as the very first within main(), which is very early 1156This forking is done as the very first within main(), which is very early
1152and reduces possible bugs to initialisation code run before main(), or 1157and reduces possible bugs to initialisation code run before main(), or
1153things like the dynamic loader of your system, which should result in very 1158things like the dynamic loader of your system, which should result in very
1154little risk. 1159little risk.
1155 1160
1156=head3 On Solaris 9, many line-drawing characters are too wide.
1157
1158Seems to be a known bug, read
1159L<http://nixdoc.net/files/forum/about34198.html>. Some people use the
1160following ugly workaround to get non-double-wide-characters working:
1161
1162 #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x)
1163
1164=head3 I am on FreeBSD and rxvt-unicode does not seem to work at all. 1161=head3 I am on FreeBSD and rxvt-unicode does not seem to work at all.
1165 1162
1166Rxvt-unicode requires the symbol C<__STDC_ISO_10646__> to be defined 1163Rxvt-unicode requires the symbol C<__STDC_ISO_10646__> to be defined
1167in your compile environment, or an implementation that implements it, 1164in your compile environment, or an implementation that implements it,
1168whether it defines the symbol or not. C<__STDC_ISO_10646__> requires that 1165whether it defines the symbol or not. C<__STDC_ISO_10646__> requires that
1191 1188
1192The rxvt-unicode author insists that the right way to fix this is in the 1189The rxvt-unicode author insists that the right way to fix this is in the
1193system libraries once and for all, instead of forcing every app to carry 1190system libraries once and for all, instead of forcing every app to carry
1194complete replacements for them :) 1191complete replacements for them :)
1195 1192
1196=head3 I use Solaris 9 and it doesn't compile/work/etc.
1197
1198Try the diff in F<doc/solaris9.patch> as a base. It fixes the worst
1199problems with C<wcwidth> and a compile problem.
1200
1201=head3 How can I use rxvt-unicode under cygwin? 1193=head3 How can I use rxvt-unicode under cygwin?
1202 1194
1203rxvt-unicode should compile and run out of the box on cygwin, using 1195rxvt-unicode should compile and run out of the box on cygwin, using
1204the X11 libraries that come with cygwin. libW11 emulation is no 1196the X11 libraries that come with cygwin. libW11 emulation is no
1205longer supported (and makes no sense, either, as it only supported a 1197longer supported (and makes no sense, either, as it only supported a
1208old libW11 emulation. 1200old libW11 emulation.
1209 1201
1210At the time of this writing, cygwin didn't seem to support any multi-byte 1202At the time of this writing, cygwin didn't seem to support any multi-byte
1211encodings (you might try C<LC_CTYPE=C-UTF-8>), so you are likely limited 1203encodings (you might try C<LC_CTYPE=C-UTF-8>), so you are likely limited
1212to 8-bit encodings. 1204to 8-bit encodings.
1205
1206=head3 Character widths are not correct.
1207
1208urxvt uses the system wcwidth function to know the information about
1209the width of characters, so on systems with incorrect locale data you
1210will likely get bad results. Two notorious examples are Solaris 9,
1211where single-width characters like U+2514 are reported as double-width,
1212and Darwin 8, where combining chars are reported having width 1.
1213
1214The solution is to upgrade your system or switch to a better one. A
1215possibly working workaround is to use a wcwidth implementation like
1216
1217http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
1213 1218
1214=head1 RXVT-UNICODE TECHNICAL REFERENCE 1219=head1 RXVT-UNICODE TECHNICAL REFERENCE
1215 1220
1216The rest of this document describes various technical aspects of 1221The rest of this document describes various technical aspects of
1217B<rxvt-unicode>. First the description of supported command sequences, 1222B<rxvt-unicode>. First the description of supported command sequences,
1899 B<< C<h> >> Use Hilite Mouse Tracking. 1904 B<< C<h> >> Use Hilite Mouse Tracking.
1900 B<< C<l> >> No mouse reporting. 1905 B<< C<l> >> No mouse reporting.
1901 1906
1902=end table 1907=end table
1903 1908
1909=item B<< C<Pm = 1002> >> (X11 XTerm)
1910
1911=begin table
1912
1913 B<< C<h> >> Send Mouse X & Y on button press and release, and motion with a button pressed.
1914 B<< C<l> >> No mouse reporting.
1915
1916=end table
1917
1918=item B<< C<Pm = 1003> >> (X11 XTerm)
1919
1920=begin table
1921
1922 B<< C<h> >> Send Mouse X & Y on button press and release, and motion.
1923 B<< C<l> >> No mouse reporting.
1924
1925=end table
1926
1904=item B<< C<Pm = 1010> >> (B<rxvt>) 1927=item B<< C<Pm = 1010> >> (B<rxvt>)
1905 1928
1906=begin table 1929=begin table
1907 1930
1908 B<< C<h> >> Don't scroll to bottom on TTY output 1931 B<< C<h> >> Don't scroll to bottom on TTY output
1983 B<< C<Ps = 12> >> Change colour of text cursor foreground to B<< C<Pt> >> 2006 B<< C<Ps = 12> >> Change colour of text cursor foreground to B<< C<Pt> >>
1984 B<< C<Ps = 13> >> Change colour of mouse foreground to B<< C<Pt> >> 2007 B<< C<Ps = 13> >> Change colour of mouse foreground to B<< C<Pt> >>
1985 B<< C<Ps = 17> >> Change colour of highlight characters to B<< C<Pt> >> 2008 B<< C<Ps = 17> >> Change colour of highlight characters to B<< C<Pt> >>
1986 B<< C<Ps = 18> >> Change colour of bold characters to B<< C<Pt> >> [deprecated, see 706] 2009 B<< C<Ps = 18> >> Change colour of bold characters to B<< C<Pt> >> [deprecated, see 706]
1987 B<< C<Ps = 19> >> Change colour of underlined characters to B<< C<Pt> >> [deprecated, see 707] 2010 B<< C<Ps = 19> >> Change colour of underlined characters to B<< C<Pt> >> [deprecated, see 707]
1988 B<< C<Ps = 20> >> Change background pixmap parameters (see section XPM) (Compile XPM). 2011 B<< C<Ps = 20> >> Change background pixmap parameters (see section BACKGROUND IMAGE) (Compile AfterImage).
1989 B<< C<Ps = 39> >> Change default foreground colour to B<< C<Pt> >>. 2012 B<< C<Ps = 39> >> Change default foreground colour to B<< C<Pt> >>.
1990 B<< C<Ps = 46> >> Change Log File to B<< C<Pt> >> I<unimplemented> 2013 B<< C<Ps = 46> >> Change Log File to B<< C<Pt> >> I<unimplemented>
1991 B<< C<Ps = 49> >> Change default background colour to B<< C<Pt> >>. 2014 B<< C<Ps = 49> >> Change default background colour to B<< C<Pt> >>.
1992 B<< C<Ps = 50> >> Set fontset to B<< C<Pt> >>, with the following special values of B<< C<Pt> >> (B<rxvt>) B<< C<#+n> >> change up B<< C<n> >> B<< C<#-n> >> change down B<< C<n> >> if B<< C<n> >> is missing of 0, a value of 1 is used I<empty> change to font0 B<< C<n> >> change to font B<< C<n> >> 2015 B<< C<Ps = 50> >> Set fontset to B<< C<Pt> >>, with the following special values of B<< C<Pt> >> (B<rxvt>) B<< C<#+n> >> change up B<< C<n> >> B<< C<#-n> >> change down B<< C<n> >> if B<< C<n> >> is missing of 0, a value of 1 is used I<empty> change to font0 B<< C<n> >> change to font B<< C<n> >>
1993 B<< C<Ps = 55> >> Log all scrollback buffer and all of screen to B<< C<Pt> >> 2016 B<< C<Ps = 55> >> Log all scrollback buffer and all of screen to B<< C<Pt> >>
2007 2030
2008=end table 2031=end table
2009 2032
2010=back 2033=back
2011 2034
2012=head1 XPM 2035=head1 BACKGROUND IMAGE
2013 2036
2014For the XPM XTerm escape sequence B<< C<ESC ] 20 ; Pt ST> >> then value 2037For the BACGROUND IMAGE XTerm escape sequence B<< C<ESC ] 20 ; Pt ST> >> then value
2015of B<< C<Pt> >> can be the name of the background pixmap followed by a 2038of B<< C<Pt> >> can be the name of the background image file followed by a
2016sequence of scaling/positioning commands separated by semi-colons. The 2039sequence of scaling/positioning commands separated by semi-colons. The
2017scaling/positioning commands are as follows: 2040scaling/positioning commands are as follows:
2018 2041
2019=over 4 2042=over 4
2020 2043
2058 2081
2059For example: 2082For example:
2060 2083
2061=over 4 2084=over 4
2062 2085
2063=item B<\E]20;funky\a> 2086=item B<\E]20;funky.jpg\a>
2064 2087
2065load B<funky.xpm> as a tiled image 2088load B<funky.jpg> as a tiled image
2066 2089
2067=item B<\E]20;mona;100\a> 2090=item B<\E]20;mona.jpg;100\a>
2068 2091
2069load B<mona.xpm> with a scaling of 100% 2092load B<mona.jpg> with a scaling of 100%
2070 2093
2071=item B<\E]20;;200;?\a> 2094=item B<\E]20;;200;?\a>
2072 2095
2073rescale the current pixmap to 200% and display the image geometry in 2096rescale the current pixmap to 200% and display the image geometry in
2074the title 2097the title
2201 2224
2202=head1 CONFIGURE OPTIONS 2225=head1 CONFIGURE OPTIONS
2203 2226
2204General hint: if you get compile errors, then likely your configuration 2227General hint: if you get compile errors, then likely your configuration
2205hasn't been tested well. Either try with C<--enable-everything> or use 2228hasn't been tested well. Either try with C<--enable-everything> or use
2206the default configuration (i.e. C<--enable-xxx> or C<--disable-xxx>). Of 2229the default configuration (i.e. no C<--enable-xxx> or C<--disable-xxx>
2207course, you should always report when a combination doesn't work, so it 2230switches). Of course, you should always report when a combination doesn't
2208can be fixed. Marc Lehmann <rxvt@schmorp.de>. 2231work, so it can be fixed. Marc Lehmann <rxvt@schmorp.de>.
2209 2232
2210All 2233All
2211 2234
2212=over 4 2235=over 4
2213 2236
2325 2348
2326Write user and tty to lastlog file (used by programs like 2349Write user and tty to lastlog file (used by programs like
2327F<lastlogin>) at start of rxvt execution. This option requires 2350F<lastlogin>) at start of rxvt execution. This option requires
2328--enable-utmp to also be specified. 2351--enable-utmp to also be specified.
2329 2352
2330=item --enable-xpm-background (default: on) 2353=item --enable-afterimage (default: on)
2331 2354
2332Add support for XPM background pixmaps. 2355Add support for libAfterImage to be used for transparency and background
2356images. It adds support for many file formats including JPG, PNG,
2357SVG, TIFF, GIF, XPM, BMP, ICO, XCF, TGA and AfterStep image XML
2358(L<http://www.afterstep.org/visualdoc.php?show=asimagexml>).
2359
2360This option also adds such eye candy as blending an image over the root
2361background, as well as dynamic scaling and bluring of background images.
2362
2363Note that with this option enabled, @@RXVT_NAME@@'s memory footprint might
2364increase by a few megabytes even if no extra features are used (mostly due
2365to third-party libraries used by libAI). Memory footprint may somewhat be
2366lowered if libAfterImage is configured without support for SVG.
2333 2367
2334=item --enable-transparency (default: on) 2368=item --enable-transparency (default: on)
2335 2369
2336Add support for inheriting parent backgrounds thus giving a fake 2370Add support for backgrounds, creating illusion of transparency in the term.
2337transparency to the term.
2338 2371
2339=item --enable-fading (default: on) 2372=item --enable-fading (default: on)
2340 2373
2341Add support for fading the text when focus is lost (requires C<--enable-transparency>). 2374Add support for fading the text when focus is lost.
2342
2343=item --enable-tinting (default: on)
2344
2345Add support for tinting of transparent backgrounds (requires C<--enable-transparency>).
2346 2375
2347=item --enable-rxvt-scroll (default: on) 2376=item --enable-rxvt-scroll (default: on)
2348 2377
2349Add support for the original rxvt scrollbar. 2378Add support for the original rxvt scrollbar.
2350 2379
2435=item --enable-keepscrolling (default: on) 2464=item --enable-keepscrolling (default: on)
2436 2465
2437Add support for continual scrolling of the display when you hold 2466Add support for continual scrolling of the display when you hold
2438the mouse button down on a scrollbar arrow. 2467the mouse button down on a scrollbar arrow.
2439 2468
2469=item --enable-selectionscrolling (default: on)
2470
2471Add support for scrolling when the selection moves to the top or
2472bottom of the screen.
2473
2440=item --enable-mousewheel (default: on) 2474=item --enable-mousewheel (default: on)
2441 2475
2442Add support for scrolling via mouse wheel or buttons 4 & 5. 2476Add support for scrolling via mouse wheel or buttons 4 & 5.
2443 2477
2444=item --enable-slipwheeling (default: on) 2478=item --enable-slipwheeling (default: on)
2445 2479
2446Add support for continual scrolling (using the mouse wheel as an 2480Add support for continual scrolling (using the mouse wheel as an
2447accelerator) while the control key is held down. This option 2481accelerator) while the control key is held down. This option
2448requires --enable-mousewheel to also be specified. 2482requires --enable-mousewheel to also be specified.
2449 2483
2450=item --enable-smart-resize (default: on) 2484=item --enable-smart-resize (default: off)
2451 2485
2452Add smart growth/shrink behaviour when changing font size via hot 2486Add smart growth/shrink behaviour when resizing.
2453keys. This should keep the window corner which is closest to a corner of 2487This should keep the window corner which is closest to a corner of
2454the screen in a fixed position. 2488the screen in a fixed position.
2455 2489
2456=item --enable-pointer-blank (default: on) 2490=item --enable-pointer-blank (default: on)
2457 2491
2458Add support to have the pointer disappear when typing or inactive. 2492Add support to have the pointer disappear when typing or inactive.
2466C<PERL> environment variable when running configure. Even when compiled 2500C<PERL> environment variable when running configure. Even when compiled
2467in, perl will I<not> be initialised when all extensions have been disabled 2501in, perl will I<not> be initialised when all extensions have been disabled
2468C<-pe "" --perl-ext-common "">, so it should be safe to enable from a 2502C<-pe "" --perl-ext-common "">, so it should be safe to enable from a
2469resource standpoint. 2503resource standpoint.
2470 2504
2505=item --with-afterimage-config=DIR
2506
2507Look for the libAfterImage config script in DIR.
2508
2471=item --with-name=NAME (default: urxvt) 2509=item --with-name=NAME (default: urxvt)
2472 2510
2473Set the basename for the installed binaries, resulting 2511Set the basename for the installed binaries, resulting
2474in C<urxvt>, C<urxvtd> etc.). Specify C<--with-name=rxvt> to replace with 2512in C<urxvt>, C<urxvtd> etc.). Specify C<--with-name=rxvt> to replace with
2475C<rxvt>. 2513C<rxvt>.
2484PATH. 2522PATH.
2485 2523
2486=item --with-x 2524=item --with-x
2487 2525
2488Use the X Window System (pretty much default, eh?). 2526Use the X Window System (pretty much default, eh?).
2489
2490=item --with-xpm-includes=DIR
2491
2492Look for the XPM includes in DIR.
2493
2494=item --with-xpm-library=DIR
2495
2496Look for the XPM library in DIR.
2497
2498=item --with-xpm
2499
2500Not needed - define via --enable-xpm-background.
2501 2527
2502=back 2528=back
2503 2529
2504=head1 AUTHORS 2530=head1 AUTHORS
2505 2531

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines