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

Comparing rxvt-unicode/doc/rxvt.1.pod (file contents):
Revision 1.1 by root, Thu Aug 12 20:42:12 2004 UTC vs.
Revision 1.5 by root, Sat Aug 14 03:00:32 2004 UTC

2 2
3rxvt-unicode (ouR XVT, unicode) - (a VT102 emulator for the X window system) 3rxvt-unicode (ouR XVT, unicode) - (a VT102 emulator for the X window system)
4 4
5=head1 SYNOPSIS 5=head1 SYNOPSIS
6 6
7B<@@RXVTNAME@@> [options] [-e command [ args ]] 7B<@@RXVT_NAME@@> [options] [-e command [ args ]]
8 8
9=head1 DESCRIPTION 9=head1 DESCRIPTION
10 10
11B<rxvt-unicode>, version B<@@RXVTVERSION@@>, is a colour vt102 terminal 11B<rxvt-unicode>, version B<@@RXVT_VERSION@@>, is a colour vt102 terminal
12emulator intended as an I<xterm>(1) replacement for users who do not 12emulator intended as an I<xterm>(1) replacement for users who do not
13require features such as Tektronix 4014 emulation and toolkit-style 13require features such as Tektronix 4014 emulation and toolkit-style
14configurability. As a result, B<rxvt-unicode> uses much less swap space -- 14configurability. As a result, B<rxvt-unicode> uses much less swap space --
15a significant advantage on a machine serving many X sessions. 15a significant advantage on a machine serving many X sessions.
16 16
17=head1 RXVT-UNICODE VS. RXVT
18
19Unlike the original rxvt, B<rxvt-unicode> stores all text in Unicode
20internally. That means it can store and display most scripts in the
21world. Being a terminal emulator, however, some things are very difficult,
22especially cursive scripts such as arabic, vertically written scripts
23like mongolian or scripts requiring extremely complex combining rules,
24like tibetan or devenagari. Don't expect pretty output when using these
25scripts. Most other scripts, latin, cyrillic, kanji, thai etc. should work
26fine, though. A somewhat difficult case are left-to-right scripts, such
27as hebrew: B<rxvt-unicode> adopts the view that bidirectional algorithms
28belong into the application, not the terminal emulator (too many things --
29such as cursor-movement -- break othwerwise).
30
31Another design rationale was the use of multiple fonts to display
32characters: The idea of a single unicode font which many other programs
33force onto it's users never made sense to me: You should be able to choose
34any font for any script.
35
36Apart from that, rxvt-unicode is also much better internationalised than
37it's predecessor, supports things such as XFT and ISO 14755 that are handy
38in i18n-environments, is faster, and has a lot less bugs than the original
39rxvt. This all in addition to dozens of other small improvements.
40
41It is still faithfully following the original rxvt idea of being lean
42and nice on resources: for example, you can still configure rxvt-unicode
43without most of it's features to get a lean binary. It also comes with
44a client/daemon pair that lets you open any number of terminal windows
45from within a single process, which makes startup time very fast and
46drastically reduces memory usage. See @@RXVT_NAME@@d(1) (daemon) and
47@@RXVT_NAME@@c(1) (client).
48
49It also makes technical information about escape sequences (which have
50been extended) easier accessible: see @@RXVT_NAME@@(7) for technical
51reference documentation (escape sequences etc.) and the FAQ section at the
52end of this document.
53
17=head1 OPTIONS 54=head1 OPTIONS
18 55
19The B<@@RXVTNAME@@> options (mostly a subset of I<xterm>'s) are listed 56The B<@@RXVT_NAME@@> options (mostly a subset of I<xterm>'s) are listed
20below. In keeping with the smaller-is-better philosophy, options may be 57below. In keeping with the smaller-is-better philosophy, options may be
21eliminated or default values chosen at compile-time, so options and 58eliminated or default values chosen at compile-time, so options and
22defaults listed may not accurately reflect the version installed on 59defaults listed may not accurately reflect the version installed on
23your system. `rxvt -h' gives a list of major compile-time options on 60your system. `@@RXVT_NAME@@ -h' gives a list of major compile-time options on
24the I<Options> line. Option descriptions may be prefixed with which 61the I<Options> line. Option descriptions may be prefixed with which
25compile option each is dependent upon. e.g. `Compile I<XIM>:' requires 62compile option each is dependent upon. e.g. `Compile I<XIM>:' requires
26I<XIM> on the I<Options> line. Note: `rxvt -help' gives a list of all 63I<XIM> on the I<Options> line. Note: `@@RXVT_NAME@@ -help' gives a list of all
27command-line options compiled into your version. 64command-line options compiled into your version.
28 65
29Note that B<@@RXVTNAME@@> permits the resource name to be used as a 66Note that B<@@RXVT_NAME@@> permits the resource name to be used as a
30long-option (--/++ option) so the potential command-line options are 67long-option (--/++ option) so the potential command-line options are
31far greater than those listed. For example: `rxvt --loginShell --color1 68far greater than those listed. For example: `@@RXVT_NAME@@ --loginShell --color1
32Orange'. 69Orange'.
33 70
34The following options are available: 71The following options are available:
35 72
36=over 4 73=over 4
117names that are used in turn when trying to display Unicode characters. 154names that are used in turn when trying to display Unicode characters.
118The first font defines the cell size for characters; other fonts might 155The first font defines the cell size for characters; other fonts might
119be smaller, but not larger. A reasonable default font list is always 156be smaller, but not larger. A reasonable default font list is always
120appended to it. resource B<font>. 157appended to it. resource B<font>.
121 158
159See also the question "How does rxvt-unicode choose fonts?" in the FAQ
160section.
161
122=item B<-rb>|B<+rb> 162=item B<-rb>|B<+rb>
123 163
124Enable "real bold" support. When this option is on, bold text will be 164Enable "real bold" support. When this option is on, bold text will be
125displayed using the first available bold font in the font list. Bold 165displayed using the first available bold font in the font list. Bold
126fonts should thus be specified in the font list after their 166fonts should thus be specified in the font list after their
202B<externalBorder>. 242B<externalBorder>.
203 243
204=item B<-bl> 244=item B<-bl>
205 245
206Compile I<frills>: Set MWM hints to request a borderless window, i.e. 246Compile I<frills>: Set MWM hints to request a borderless window, i.e.
207if honoured by the WM, the rxvt window will not have window 247if honoured by the WM, the rxvt-unicode window will not have window
208decorations; resource B<borderLess>. 248decorations; resource B<borderLess>.
209 249
210=item B<-lsp> I<number> 250=item B<-lsp> I<number>
211 251
212Compile I<linespace>: Lines (pixel height) to insert between each row 252Compile I<linespace>: Lines (pixel height) to insert between each row
219I<termcap(5)> database and should have I<li#> and I<co#> entries; 259I<termcap(5)> database and should have I<li#> and I<co#> entries;
220resource B<termName>. 260resource B<termName>.
221 261
222=item B<-e> I<command [arguments]> 262=item B<-e> I<command [arguments]>
223 263
224Run the command with its command-line arguments in the B<@@RXVTNAME@@> 264Run the command with its command-line arguments in the B<@@RXVT_NAME@@>
225window; also sets the window title and icon name to be the basename of 265window; also sets the window title and icon name to be the basename of
226the program being executed if neither I<-title> (I<-T>) nor I<-n> are 266the program being executed if neither I<-title> (I<-T>) nor I<-n> are
227given on the command line. If this option is used, it must be the last 267given on the command line. If this option is used, it must be the last
228on the command-line. If there is no B<-e> option then the default is to 268on the command-line. If there is no B<-e> option then the default is to
229run the program specified by the B<SHELL> environment variable or, 269run the program specified by the B<SHELL> environment variable or,
283Turn on/off secondary screen scroll (default enabled); resource 323Turn on/off secondary screen scroll (default enabled); resource
284B<secondaryScroll>. 324B<secondaryScroll>.
285 325
286=item B<-xrm> I<resourcestring> 326=item B<-xrm> I<resourcestring>
287 327
288No effect on rxvt. Simply passes through an argument to be made 328No effect on rxvt-unicode. Simply passes through an argument to be made
289available in the instance's argument list. Appears in I<WM_COMMAND> in 329available in the instance's argument list. Appears in I<WM_COMMAND> in
290some window managers. 330some window managers.
291 331
292=back 332=back
293 333
294=head1 RESOURCES (available also as long-options) 334=head1 RESOURCES (available also as long-options)
295 335
296Note: `@@RXVTNAME@@ --help' gives a list of all resources (long 336Note: `@@RXVT_NAME@@ --help' gives a list of all resources (long
297options) compiled into your version. 337options) compiled into your version.
298 338
299There are two different methods that @@RXVTNAME@@ can use to get the 339There are two different methods that @@RXVT_NAME@@ can use to get the
300Xresource data: using the X libraries (Xrm*-functions) or internal 340Xresource data: using the X libraries (Xrm*-functions) or internal
301Xresources reader (B<~/.Xdefaults>). For the first method (ie. 341Xresources reader (B<~/.Xdefaults>). For the first method (ie.
302B<@@RXVTNAME@@ -h> lists B<XGetDefaults>), you can set and change the 342B<@@RXVT_NAME@@ -h> lists B<XGetDefaults>), you can set and change the
303resources using X11 tools like B<xset>. Many distribution do also load 343resources using X11 tools like B<xset>. Many distribution do also load
304settings from the B<~/.Xresources> file when X starts. 344settings from the B<~/.Xresources> file when X starts.
305 345
306If compiled with internal Xresources support (i.e. B<@@RXVTNAME@@ -h> 346If compiled with internal Xresources support (i.e. B<@@RXVT_NAME@@ -h>
307lists B<.Xdefaults>) then B<@@RXVTNAME@@> accepts application defaults 347lists B<.Xdefaults>) then B<@@RXVT_NAME@@> accepts application defaults
308set in XAPPLOADDIR/URxvt (compile-time defined: usually 348set in XAPPLOADDIR/URxvt (compile-time defined: usually
309B</usr/lib/X11/app-defaults/URxvt>) and resources set in 349B</usr/lib/X11/app-defaults/URxvt>) and resources set in
310B<~/.Xdefaults>, or B<~/.Xresources> if B<~/.Xdefaults> does not exist. 350B<~/.Xdefaults>, or B<~/.Xresources> if B<~/.Xdefaults> does not exist.
311Note that when reading X resources, B<@@RXVTNAME@@> recognizes two 351Note that when reading X resources, B<@@RXVT_NAME@@> recognizes two
312class names: B<XTerm> and B<URxvt>. The class name B<Rxvt> allows 352class names: B<XTerm> and B<URxvt>. The class name B<Rxvt> allows
313resources common to both B<@@RXVTNAME@@> and the original I<rxvt> to be 353resources common to both B<@@RXVT_NAME@@> and the original I<rxvt> to be
314easily configured, while the class name B<URxvt> allows resources 354easily configured, while the class name B<URxvt> allows resources
315unique to B<@@RXVTNAME@@>, notably colours and key-handling, to be 355unique to B<@@RXVT_NAME@@>, notably colours and key-handling, to be
316shared between different B<@@RXVTNAME@@> configurations. If no 356shared between different B<@@RXVT_NAME@@> configurations. If no
317resources are specified, suitable defaults will be used. Command-line 357resources are specified, suitable defaults will be used. Command-line
318arguments can be used to override resource settings. The following 358arguments can be used to override resource settings. The following
319resources are allowed: 359resources are allowed:
320 360
321=over 4 361=over 4
462xterm style with 2.20 old word selection, or anything else which gives 502xterm style with 2.20 old word selection, or anything else which gives
463xterm style selection. 503xterm style selection.
464 504
465=item B<scrollstyle:> I<mode> 505=item B<scrollstyle:> I<mode>
466 506
467Set scrollbar style to B<@@RXVTNAME@@>, B<rxvt>, B<plain>, B<next> or 507Set scrollbar style to B<rxvt>, B<plain>, B<next> or B<xterm>. B<plain> is
468B<xterm> 508the author's favourite..
469 509
470=item B<title:> I<string> 510=item B<title:> I<string>
471 511
472Set window title string, the default title is the command-line 512Set window title string, the default title is the command-line
473specified after the B<-e> option, if any, otherwise the application 513specified after the B<-e> option, if any, otherwise the application
527Align the B<top>, B<bottom> or B<centre> [default] of the scrollbar 567Align the B<top>, B<bottom> or B<centre> [default] of the scrollbar
528thumb with the pointer on middle button press/drag. 568thumb with the pointer on middle button press/drag.
529 569
530=item B<scrollTtyOutput:> I<boolean> 570=item B<scrollTtyOutput:> I<boolean>
531 571
532B<True>: scroll to bottom when tty receives output; option B<+si>. 572B<True>: scroll to bottom when tty receives output; option B<-si>.
533B<False>: do not scroll to bottom when tty receives output; option 573B<False>: do not scroll to bottom when tty receives output; option
534B<-si>. 574B<+si>.
535 575
536=item B<scrollWithBuffer:> I<boolean> 576=item B<scrollWithBuffer:> I<boolean>
537 577
538B<True>: scroll with scrollback buffer when tty recieves new lines (and 578B<True>: scroll with scrollback buffer when tty recieves new lines (and
539B<scrollTtyOutput> is False); option B<+sw>. B<False>: do not scroll 579B<scrollTtyOutput> is False); option B<+sw>. B<False>: do not scroll
540with scrollback buffer when tty recieves new lines; option B<-sw>. 580with scrollback buffer when tty recieves new lines; option B<-sw>.
541 581
542=item B<scrollTtyKeypress:> I<boolean> 582=item B<scrollTtyKeypress:> I<boolean>
543 583
544B<True>: scroll to bottom when a non-special key is pressed. Special 584B<True>: scroll to bottom when a non-special key is pressed. Special keys
545keys are those which are intercepted by rxvt for special handling and 585are those which are intercepted by rxvt-unicode for special handling and
546are not passed onto the shell; option B<-sk>. B<False>: do not scroll 586are not passed onto the shell; option B<-sk>. B<False>: do not scroll to
547to bottom when a non-special key is pressed; option B<+sk>. 587bottom when a non-special key is pressed; option B<+sk>.
548 588
549=item B<smallfont_key:> I<keysym> 589=item B<smallfont_key:> I<keysym>
550 590
551If enabled, use B<@@HOTKEY@@->I<keysym> to toggle to a smaller font 591If enabled, use B<@@HOTKEY@@->I<keysym> to toggle to a smaller font
552[default B<@@HOTKEY@@-@@SMALLFONT@@>] 592[default B<@@HOTKEY@@-@@SMALLFONT@@>]
572option B<-w>, B<-bw>, B<-borderwidth>. 612option B<-w>, B<-bw>, B<-borderwidth>.
573 613
574=item B<borderLess:> I<boolean> 614=item B<borderLess:> I<boolean>
575 615
576Set MWM hints to request a borderless window, i.e. if honoured by the 616Set MWM hints to request a borderless window, i.e. if honoured by the
577WM, the rxvt window will not have window decorations; option B<-bl>. 617WM, the rxvt-unicode window will not have window decorations; option B<-bl>.
578 618
579=item B<termName:> I<termname> 619=item B<termName:> I<termname>
580 620
581Specifies the terminal type name to be set in the B<TERM> environment 621Specifies the terminal type name to be set in the B<TERM> environment
582variable; option B<-tn>. 622variable; option B<-tn>.
673B<hyper>, B<super>, B<mod1>, B<mod2>, B<mod3>, B<mod4>, B<mod5>; option 713B<hyper>, B<super>, B<mod1>, B<mod2>, B<mod3>, B<mod4>, B<mod5>; option
674B<-mod>. 714B<-mod>.
675 715
676=item B<answerbackString:> I<string> 716=item B<answerbackString:> I<string>
677 717
678Specify the reply rxvt sends to the shell when an ENQ (control-E) 718Specify the reply rxvt-unicode sends to the shell when an ENQ (control-E)
679character is passed through. It may contain escape values as described 719character is passed through. It may contain escape values as described
680in the entry on B<keysym> following. 720in the entry on B<keysym> following.
681 721
682=item B<secondaryScreen:> I<bool> 722=item B<secondaryScreen:> I<bool>
683 723
703 743
704=back 744=back
705 745
706=head1 THE SCROLLBAR 746=head1 THE SCROLLBAR
707 747
708Lines of text that scroll off the top of the B<@@RXVTNAME@@> window 748Lines of text that scroll off the top of the B<@@RXVT_NAME@@> window
709(resource: B<saveLines>) and can be scrolled back using the scrollbar 749(resource: B<saveLines>) and can be scrolled back using the scrollbar
710or by keystrokes. The normal B<@@RXVTNAME@@> scrollbar has arrows and 750or by keystrokes. The normal B<@@RXVT_NAME@@> scrollbar has arrows and
711its behaviour is fairly intuitive. The B<xterm-scrollbar> is without 751its behaviour is fairly intuitive. The B<xterm-scrollbar> is without
712arrows and its behaviour mimics that of I<xterm> 752arrows and its behaviour mimics that of I<xterm>
713 753
714Scroll down with B<Button1> (B<xterm-scrollbar>) or B<Shift-Next>. 754Scroll down with B<Button1> (B<xterm-scrollbar>) or B<Shift-Next>.
715Scroll up with B<Button3> (B<xterm-scrollbar>) or B<Shift-Prior>. 755Scroll up with B<Button3> (B<xterm-scrollbar>) or B<Shift-Prior>.
743line. 783line.
744 784
745=item B<Insertion>: 785=item B<Insertion>:
746 786
747Pressing and releasing the Middle mouse button (or B<Shift-Insert>) in 787Pressing and releasing the Middle mouse button (or B<Shift-Insert>) in
748an B<@@RXVTNAME@@> window causes the current text selection to be 788an B<@@RXVT_NAME@@> window causes the current text selection to be
749inserted as if it had been typed on the keyboard. 789inserted as if it had been typed on the keyboard.
750 790
751=back 791=back
752 792
753=head1 CHANGING FONTS 793=head1 CHANGING FONTS
757B<Shift-KP_Subtract>. Or, alternatively (if enabled) with 797B<Shift-KP_Subtract>. Or, alternatively (if enabled) with
758B<@@HOTKEY@@-@@BIGFONT@@> and B<@@HOTKEY@@-@@SMALLFONT@@>, where the 798B<@@HOTKEY@@-@@BIGFONT@@> and B<@@HOTKEY@@-@@SMALLFONT@@>, where the
759actual key can be selected using resources 799actual key can be selected using resources
760B<smallfont_key>/B<bigfont_key>. 800B<smallfont_key>/B<bigfont_key>.
761 801
802=head1 ISO 14755 SUPPORT
803
804Partial ISO 14755-support is implemented. that means that pressing
805
806Section 5.1: Control and Shift together enters unicode input
807mode. Entering hex digits composes a Unicode character, pressing space or
808releasing the modifiers commits the keycode and every other key cancels
809the current input character.
810
811Section 5.2: Pressing and immediately releasing Control and Shift together
812enters keycap entry mode for the next key: pressing a function key (tab,
813return etc..) will enter the unicode character corresponding to the given
814key.
815
762=head1 LOGIN STAMP 816=head1 LOGIN STAMP
763 817
764B<@@RXVTNAME@@> tries to write an entry into the I<utmp>(5) file so 818B<@@RXVT_NAME@@> tries to write an entry into the I<utmp>(5) file so
765that it can be seen via the I<who(1)> command, and can accept messages. 819that it can be seen via the I<who(1)> command, and can accept messages.
766To allow this feature, B<@@RXVTNAME@@> must be installed setuid root on 820To allow this feature, B<@@RXVT_NAME@@> must be installed setuid root on
767some systems. 821some systems.
768 822
769=head1 COLORS AND GRAPHICS 823=head1 COLORS AND GRAPHICS
770 824
771In addition to the default foreground and background colours, 825In addition to the default foreground and background colours,
772B<@@RXVTNAME@@> can display up to 16 colours (8 ANSI colours plus 826B<@@RXVT_NAME@@> can display up to 16 colours (8 ANSI colours plus
773high-intensity bold/blink versions of the same). Here is a list of the 827high-intensity bold/blink versions of the same). Here is a list of the
774colours with their B<rgb.txt> names. 828colours with their B<rgb.txt> names.
775 829
776=begin table 830=begin table
777 831
806I<xterm>(1) where the colours are only swapped if they have not otherwise 860I<xterm>(1) where the colours are only swapped if they have not otherwise
807been specified. For example, 861been specified. For example,
808 862
809=over 4 863=over 4
810 864
811=item B<rxvt -fg Black -bg White -rv> 865=item B<@@RXVT_NAME@@ -fg Black -bg White -rv>
812 866
813would yield White on Black, while on I<xterm>(1) it would yield Black 867would yield White on Black, while on I<xterm>(1) it would yield Black
814on White. 868on White.
815 869
816=back 870=back
817 871
872=head1 FREQUENTLY ASKED QUESTIONS (FAQ)
873
874=over 4
875
876=item How do I know which rxvt-unicode version I'm using?
877
878The version number is displayed with the usage (-h). For rxvt-unicode
879version 2.14 and later, the escape sequence C<ESC[8n> sets the window
880title to the version number.
881
882=item Why do the characters look ugly?
883
884=item How does rxvt-unicode choose fonts?
885
886Most fonts do not contain the full range of Unicode, which is
887fine. Chances are that the font you (or the admin/package maintainer of
888your system/os) have specified does not cover all the characters you want
889to display.
890
891B<rxvt-unicode> makes a best-effort try at finding a replacement
892font. Often the result is fine, but sometimes the chosen font looks
893bad. In that case, select a font of your taste and add it to the font
894list, e.g.:
895
896 @@RXVT_NAME@@ -fn basefont,font2,font3...
897
898When rxvt-unicode sees a character, it will first look at the base
899font. If the base font does not contain the character, it will go to the
900next font, and so on.
901
902The only limitation is that all the fonts must not be larger than the base
903font, as the base font defines the principial cell size, which must be the
904same due to the way terminals work.
905
906=item Why do some chinese characters look so different than others?
907
908This is because there is a difference between script and language --
909rxvt-unicode does not know which language the text that is output
910is, as it only knows the unicode character codes. If rxvt-unicode
911first sees a japanese character, it might choose a japanese font for
912it. Subseqzuent japanese characters will take that font. Now, many chinese
913characters aren't represented in japanese fonts, so when the first
914non-japanese character comes up, rxvt-unicode will look for a chinese font
915-- unfortunately at this point, it will still use the japanese font for
916japanese characters that are also chinese.
917
918The workaround is easy: just tag a chinese font at the end of your font
919list (see the previous question). The key is to view the font list as
920a preference list: If you expect more japanese, list a japanese font
921first. If you expect more chinese, put a chinese font first.
922
923In the future it might be possible to switch preferences at runtime (the
924internal data structure has no problem with using different fonts for
925the same character at the same time, but no interface for this has been
926designed yet).
927
928=item Mouse cut/paste suddenly no longer works.
929
930Make sure that mouse reporting is actually turned off since killing
931some editors prematurely may leave the mouse in mouse report mode. I've
932heard that tcsh may use mouse reporting unless it otherwise specified. A
933quick check is to see if cut/paste works when the Alt or Shift keys are
934depressed. See @@RXVT_NAME@@(7)
935
936=item What's with this bold/blink stuff?
937
938If no bold colour is set via C<colorBD:>, bold will invert text using the
939standard foreground colour.
940
941For the standard background colour, blinking will actually make the
942text blink when compiled with C<--enable-blinking>. with standard
943colours. Without C<--enable-blinking>, the blink attribute will be
944ignored.
945
946On ANSI colours, bold/blink attributes are used to set high-intensity
947foreground/background colors.
948
949color0-7 are the low-intensity colors.
950
951color8-15 are the corresponding high-intensity colors.
952
953=item I don't like the screen colors. How do I change them?
954
955You can change the screen colors at run-time using F<~/.Xdefaults>
956resources (or as long-options).
957
958Here are values that are supposed to resemble a VGA screen,
959including the murky brown that passes for low-intensity yellow:
960
961 Rxvt*color0: #000000
962 Rxvt*color1: #A80000
963 Rxvt*color2: #00A800
964 Rxvt*color3: #A8A800
965 Rxvt*color4: #0000A8
966 Rxvt*color5: #A800A8
967 Rxvt*color6: #00A8A8
968 Rxvt*color7: #A8A8A8
969
970 Rxvt*color8: #000054
971 Rxvt*color9: #FF0054
972 Rxvt*color10: #00FF54
973 Rxvt*color11: #FFFF54
974 Rxvt*color12: #0000FF
975 Rxvt*color13: #FF00FF
976 Rxvt*color14: #00FFFF
977 Rxvt*color15: #FFFFFF
978
979=item What's with the strange Backspace/Delete key behaviour?
980
981Assuming that the physical Backspace key corresponds to the
982BackSpace keysym (not likely for Linux ... see the following
983question) there are two standard values that can be used for
984Backspace: C<^H> and C<^?>.
985
986Historically, either value is correct, but rxvt-unicode adopts the debian
987policy of using C<^?> when unsure, because it's the one only only correct
988choice :).
989
990Rxvt-unicode tries to inherit the current stty settings and uses the value
991of `erase' to guess the value for backspace. If rxvt-unicode wasn't
992started from a terminal (say, from a menu or by remote shell), then the
993system value of `erase', which corresponds to CERASE in <termios.h>, will
994be used (which may not be the same as your stty setting).
995
996For starting a new rxvt-unicode:
997
998 # use Backspace = ^H
999 $ stty erase ^H
1000 $ @@RXVT_NAME@@
1001
1002 # use Backspace = ^?
1003 $ stty erase ^?
1004 $ @@RXVT_NAME@@
1005
1006Toggle with "ESC[36h" / "ESC[36l" as documented in @@RXVT_NAME@@(7).
1007
1008For an existing rxvt-unicode:
1009
1010 # use Backspace = ^H
1011 $ stty erase ^H
1012 $ echo -n "^[[36h"
1013
1014 # use Backspace = ^?
1015 $ stty erase ^?
1016 $ echo -n "^[[36l"
1017
1018This helps satisfy some of the Backspace discrepancies that occur, but
1019if you use Backspace = C<^H>, make sure that the termcap/terminfo value
1020properly reflects that.
1021
1022The Delete key is a another casualty of the ill-defined Backspace problem.
1023To avoid confusion between the Backspace and Delete keys, the Delete
1024key has been assigned an escape sequence to match the vt100 for Execute
1025(ESC[3~) and is in the supplied termcap/terminfo.
1026
1027Some other Backspace problems:
1028
1029some editors use termcap/terminfo,
1030some editors (vim I'm told) expect Backspace = ^H,
1031GNU Emacs (and Emacs-like editors) use ^H for help.
1032
1033Perhaps someday this will all be resolved in a consistent manner.
1034
1035=item I don't like the key-bindings. How do I change them?
1036
1037There are some compile-time selections available via configure. Unless
1038you have run "configure" with the C<--disable-resources> option you can
1039use the `keysym' resource to alter the keystrings associated with keysym
10400xFF00 - 0xFFFF (function, cursor keys, etc).
1041
1042Here's an example for a tn3270 session started using `@@RXVT_NAME@@ -name tn3270'
1043
1044 !# ----- special uses ------:
1045 ! tn3270 login, remap function and arrow keys.
1046 tn3270*font: *clean-bold-*-*--15-*
1047
1048 ! keysym - used by rxvt only
1049 ! Delete - ^D
1050 tn3270*keysym.0xFFFF: \004
1051
1052 ! Home - ^A
1053 tn3270*keysym.0xFF50: \001
1054 ! Left - ^B
1055 tn3270*keysym.0xFF51: \002
1056 ! Up - ^P
1057 tn3270*keysym.0xFF52: \020
1058 ! Right - ^F
1059 tn3270*keysym.0xFF53: \006
1060 ! Down - ^N
1061 tn3270*keysym.0xFF54: \016
1062 ! End - ^E
1063 tn3270*keysym.0xFF57: \005
1064
1065 ! F1 - F12
1066 tn3270*keysym.0xFFBE: \e1
1067 tn3270*keysym.0xFFBF: \e2
1068 tn3270*keysym.0xFFC0: \e3
1069 tn3270*keysym.0xFFC1: \e4
1070 tn3270*keysym.0xFFC2: \e5
1071 tn3270*keysym.0xFFC3: \e6
1072 tn3270*keysym.0xFFC4: \e7
1073 tn3270*keysym.0xFFC5: \e8
1074 tn3270*keysym.0xFFC6: \e9
1075 tn3270*keysym.0xFFC7: \e0
1076 tn3270*keysym.0xFFC8: \e-
1077 tn3270*keysym.0xFFC9: \e=
1078
1079 ! map Prior/Next to F7/F8
1080 tn3270*keysym.0xFF55: \e7
1081 tn3270*keysym.0xFF56: \e8
1082
1083=item I'm using keyboard model XXX that has extra Prior/Next/Insert keys.
1084How do I make use of them? For example, the Sun Keyboard type 4
1085has the following mappings that rxvt-unicode doesn't recognize.
1086
1087 KP_Insert == Insert
1088 F22 == Print
1089 F27 == Home
1090 F29 == Prior
1091 F33 == End
1092 F35 == Next
1093
1094Rather than have rxvt-unicode try to accomodate all the various possible keyboard
1095mappings, it is better to use `xmodmap' to remap the keys as required for
1096your particular machine.
1097
1098=item How do I distinguish if I'm running rxvt-unicode or a regular xterm?
1099I need this to decide about setting colors etc.
1100
1101rxvt and rxvt-unicode always export the variable "COLORTERM", so you can
1102check and see if that is set. Note that several programs, JED, slrn,
1103Midnight Commander automatically check this variable to decide whether or
1104not to use color.
1105
1106=item How do I set the correct, full IP address for the DISPLAY variable?
1107
1108If you've compiled rxvt-unicode with DISPLAY_IS_IP and ahve enabled
1109insecure mode then it is possible to use the following shell script
1110snippets to correctly set the display. If your version of rxvt-unicode
1111wasn't also compiled with ESCZ_ANSWER (as assumed in these snippets) then
1112the COLORTERM variable can be used to distinguish rxvt-unicode from a
1113regular xterm.
1114
1115Courtesy of Chuck Blake <cblake@BBN.COM> with the following shell script
1116snippets:
1117
1118 # Bourne/Korn/POSIX family of shells:
1119 [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know
1120 if [ ${TERM:-foo} = xterm ]; then
1121 stty -icanon -echo min 0 time 15 # see if enhanced rxvt or not
1122 echo -n '^[Z'
1123 read term_id
1124 stty icanon echo
1125 if [ ""${term_id} = '^[[?1;2C' -a ${DISPLAY:-foo} = foo ]; then
1126 echo -n '^[[7n' # query the rxvt we are in for the DISPLAY string
1127 read DISPLAY # set it in our local shell
1128 fi
1129 fi
1130
1131=item How do I compile the manual pages for myself?
1132
1133You need to have a recent version of perl installed as F</usr/bin/perl>,
1134one that comes with F<pod2man>, F<pod2text> and F<pod2html>. Then go to
1135the doc subdirectory and enter C<make alldoc>.
1136
1137=back
1138
818=head1 ENVIRONMENT 1139=head1 ENVIRONMENT
819 1140
820B<@@RXVTNAME@@> sets the environment variables B<TERM>, B<COLORTERM> 1141B<@@RXVT_NAME@@> sets the environment variables B<TERM>, B<COLORTERM>
821and B<COLORFGBG>. The environment variable B<WINDOWID> is set to the X 1142and B<COLORFGBG>. The environment variable B<WINDOWID> is set to the X
822window id number of the B<@@RXVTNAME@@> window and it also uses and 1143window id number of the B<@@RXVT_NAME@@> window and it also uses and
823sets the environment variable B<DISPLAY> to specify which display 1144sets the environment variable B<DISPLAY> to specify which display
824terminal to use. B<@@RXVTNAME@@> uses the environment variables 1145terminal to use. B<@@RXVT_NAME@@> uses the environment variables
825B<RXVTPATH> and B<PATH> to find XPM files. 1146B<RXVTPATH> and B<PATH> to find XPM files.
826 1147
827=head1 FILES 1148=head1 FILES
828 1149
829=over 4 1150=over 4
836 1157
837Color names. 1158Color names.
838 1159
839=back 1160=back
840 1161
841=head1 SEEALSO 1162=head1 SEE ALSO
842 1163
843I<xterm>(1), I<sh>(1), I<resize>(1), I<X>(1), I<pty>(4), I<tty>(4), I<utmp>(5) 1164@@RXVT_NAME@@(7), xterm(1), sh(1), resize(1), X(1), pty(4), tty(4), utmp(5)
844
845See rxvtRef.html rxvtRef.txt for detailed information on recognized escape sequences and menuBar syntax, etc.
846 1165
847=head1 BUGS 1166=head1 BUGS
848 1167
849Check the BUGS file for an up-to-date list. 1168Check the BUGS file for an up-to-date list.
850 1169
851Cursor change support is not yet implemented. 1170Cursor change support is not yet implemented.
852 1171
853Click-and-drag doesn't work with X11 mouse report overriding. 1172Click-and-drag doesn't work with X11 mouse report overriding.
854 1173
855=head1 FTP LOCATION
856
857rxvt-+@@RXVTVERSION@@.tar.gz can be found at the following ftp sites L<@@RXVTFTPSITE@@>(@@RXVTFTPSITE@@)
858
859=head1 CURRENT PROJECT COORDINATOR 1174=head1 CURRENT PROJECT COORDINATOR
860 1175
861=over 4 1176=over 4
862 1177
863=item Project Coordinator 1178=item Project Coordinator
864 1179
865@@RXVTMAINT@@ L<@@RXVTMAINTEMAIL@@> 1180@@RXVTMAINT@@ L<@@RXVT_MAINTEMAIL@@>
866 1181
867=item Web page maintainter 1182=item Web page maintainter
868 1183
869@@RXVTWEBMAINT@@ L<@@RXVTWEBMAINTEMAIL@@> 1184@@RXVTWEBMAINT@@ L<@@RXVT_WEBMAINTEMAIL@@>
870 1185
871L<@@RXVTWEBPAGE@@>(@@RXVTWEBPAGE@@) 1186L<@@RXVT_WEBPAGE@@>
872 1187
873=back 1188=back
874 1189
875=head1 AUTHORS 1190=head1 AUTHORS
876 1191

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines