-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 36547f207c72a8aaf1115e41eeb3bac07a862629: path_to: revision_to:
commit 36547f207c72a8aaf1115e41eeb3bac07a862629 Author: Marc Lehmann <schmorp@schmorp.de> Date: Tue Jan 31 00:57:35 2006 +0000 *** empty log message *** diff --git a/doc/rxvt.7.html b/doc/rxvt.7.html
--- a/doc/rxvt.7.html +++ b/doc/rxvt.7.html @@ -19,6 +19,62 @@ <ul> <li><a href="#the_new_selection_selects_pieces_that_are_too_big__how_can_i_select">The new selection selects pieces that are too big, how can I select</a></li> + <li><a href="#i_don_t_like_the_new_selection_popups_hotkeys_perl__how_do_i">I don't like the new selection/popups/hotkeys/perl, how do I</a></li> + <li><a href="#the_cursor_moves_when_selecting_text_in_the_current_input_line__how">The cursor moves when selecting text in the current input line, how</a></li> + <li><a href="#during_rlogin_ssh_telnet_etc__sessions__clicking_near_the_cursor">During rlogin/ssh/telnet/etc. sessions, clicking near the cursor</a></li> + <li><a href="#why_doesn_t_rxvtunicode_read_my_resources">Why doesn't rxvt-unicode read my resources?</a></li> + <li><a href="#i_can_t_get_transparency_working__what_am_i_doing_wrong">I can't get transparency working, what am I doing wrong?</a></li> + <li><a href="#isn_t_rxvt_supposed_to_be_small_don_t_all_those_features_bloat">Isn't rxvt supposed to be small? Don't all those features bloat?</a></li> + <li><a href="#why_c____isn_t_that_unportable_bloated_uncool">Why C++, isn't that unportable/bloated/uncool?</a></li> + <li><a href="#does_it_support_tabs__can_i_have_a_tabbed_rxvtunicode">Does it support tabs, can I have a tabbed rxvt-unicode?</a></li> + <li><a href="#how_do_i_know_which_rxvtunicode_version_i_m_using">How do I know which rxvt-unicode version I'm using?</a></li> + <li><a href="#i_am_using_debian_gnu_linux_and_have_a_problem___">I am using Debian GNU/Linux and have a problem...</a></li> + <li><a href="#i_am_maintaining_rxvtunicode_for_distribution_os_xxx__any">I am maintaining rxvt-unicode for distribution/OS XXX, any</a></li> + <li><a href="#i_need_to_make_it_setuid_setgid_to_support_utmp_ptys_on_my_os__is_this_safe">I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe?</a></li> + <li><a href="#when_i_login_to_another_system_it_tells_me_about_missing_terminfo_data">When I log-in to another system it tells me about missing terminfo data?</a></li> + <li><a href="#tic_outputs_some_error_when_compiling_the_terminfo_entry_"><code>tic</code> outputs some error when compiling the terminfo entry.</a></li> + <li><a href="#bash_s_readline_does_not_work_correctly_under_rxvt_"><code>bash</code>'s readline does not work correctly under rxvt.</a></li> + <li><a href="#i_need_a_termcap_file_entry_">I need a termcap file entry.</a></li> + <li><a href="#why_does_ls_no_longer_have_coloured_output">Why does <code>ls</code> no longer have coloured output?</a></li> + <li><a href="#why_doesn_t_vim_emacs_etc__use_the_88_colour_mode">Why doesn't vim/emacs etc. use the 88 colour mode?</a></li> + <li><a href="#why_doesn_t_vim_emacs_etc__make_use_of_italic">Why doesn't vim/emacs etc. make use of italic?</a></li> + <li><a href="#why_are_the_secondary_screenrelated_options_not_working_properly">Why are the secondary screen-related options not working properly?</a></li> + <li><a href="#my_numerical_keypad_acts_weird_and_generates_differing_output">My numerical keypad acts weird and generates differing output?</a></li> + <li><a href="#rxvtunicode_does_not_seem_to_understand_the_selected_encoding">Rxvt-unicode does not seem to understand the selected encoding?</a></li> + <li><a href="#unicode_does_not_seem_to_work">Unicode does not seem to work?</a></li> + <li><a href="#why_do_some_characters_look_so_much_different_than_others">Why do some characters look so much different than others?</a></li> + <li><a href="#how_does_rxvtunicode_choose_fonts">How does rxvt-unicode choose fonts?</a></li> + <li><a href="#why_do_some_chinese_characters_look_so_different_than_others">Why do some chinese characters look so different than others?</a></li> + <li><a href="#why_does_rxvtunicode_sometimes_leave_pixel_droppings">Why does rxvt-unicode sometimes leave pixel droppings?</a></li> + <li><a href="#on_solaris_9__many_linedrawing_characters_are_too_wide_">On Solaris 9, many line-drawing characters are too wide.</a></li> + <li><a href="#my_compose__multi_key__key_is_no_longer_working_">My Compose (Multi_key) key is no longer working.</a></li> + <li><a href="#i_cannot_type_ctrlshift2_to_get_an_ascii_nul_character_due_to_iso_14755">I cannot type <code>Ctrl-Shift-2</code> to get an ASCII NUL character due to ISO 14755</a></li> + <li><a href="#how_can_i_keep_rxvtunicode_from_using_reverse_video_so_much">How can I keep rxvt-unicode from using reverse video so much?</a></li> + <li><a href="#some_programs_assume_totally_weird_colours__red_instead_of_blue___how_can_i_fix_that">Some programs assume totally weird colours (red instead of blue), how can I fix that?</a></li> + <li><a href="#i_am_on_freebsd_and_rxvtunicode_does_not_seem_to_work_at_all_">I am on FreeBSD and rxvt-unicode does not seem to work at all.</a></li> + <li><a href="#i_use_solaris_9_and_it_doesn_t_compile_work_etc_">I use Solaris 9 and it doesn't compile/work/etc.</a></li> + <li><a href="#how_can_i_use_rxvtunicode_under_cygwin">How can I use rxvt-unicode under cygwin?</a></li> + <li><a href="#how_does_rxvtunicode_determine_the_encoding_to_use">How does rxvt-unicode determine the encoding to use?</a></li> + <li><a href="#is_there_an_option_to_switch_encodings">Is there an option to switch encodings?</a></li> + <li><a href="#can_i_switch_locales_at_runtime">Can I switch locales at runtime?</a></li> + <li><a href="#can_i_switch_the_fonts_at_runtime">Can I switch the fonts at runtime?</a></li> + <li><a href="#why_do_italic_characters_look_as_if_clipped">Why do italic characters look as if clipped?</a></li> + <li><a href="#my_input_method_wants__some_encoding__but_i_want_utf8__what_can_i_do">My input method wants <some encoding> but I want UTF-8, what can I do?</a></li> + <li><a href="#rxvtunicode_crashes_when_the_x_input_method_changes_or_exits_">Rxvt-unicode crashes when the X Input Method changes or exits.</a></li> + <li><a href="#rxvtunicode_uses_gobs_of_memory__how_can_i_reduce_that">Rxvt-unicode uses gobs of memory, how can I reduce that?</a></li> + <li><a href="#can_i_speed_up_xft_rendering_somehow">Can I speed up Xft rendering somehow?</a></li> + <li><a href="#rxvtunicode_doesn_t_seem_to_antialias_its_fonts__what_is_wrong">Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?</a></li> + <li><a href="#mouse_cut_paste_suddenly_no_longer_works_">Mouse cut/paste suddenly no longer works.</a></li> + <li><a href="#what_s_with_this_bold_blink_stuff">What's with this bold/blink stuff?</a></li> + <li><a href="#i_don_t_like_the_screen_colors__how_do_i_change_them">I don't like the screen colors. How do I change them?</a></li> + <li><a href="#how_can_i_start_rxvtd_in_a_racefree_way">How can I start rxvtd in a race-free way?</a></li> + <li><a href="#what_s_with_the_strange_backspace_delete_key_behaviour">What's with the strange Backspace/Delete key behaviour?</a></li> + <li><a href="#i_don_t_like_the_keybindings__how_do_i_change_them">I don't like the key-bindings. How do I change them?</a></li> + <li><a href="#i_m_using_keyboard_model_xxx_that_has_extra_prior_next_insert_keys_">I'm using keyboard model XXX that has extra Prior/Next/Insert keys.</a></li> + <li><a href="#how_do_i_distinguish_wether_i_m_running_rxvtunicode_or_a_regular_xterm">How do I distinguish wether I'm running rxvt-unicode or a regular xterm?</a></li> + <li><a href="#how_do_i_set_the_correct__full_ip_address_for_the_display_variable">How do I set the correct, full IP address for the DISPLAY variable?</a></li> + <li><a href="#how_do_i_compile_the_manual_pages_for_myself">How do I compile the manual pages for myself?</a></li> + <li><a href="#my_question_isn_t_answered_here__can_i_ask_a_human">My question isn't answered here, can I ask a human?</a></li> </ul> <li><a href="#rxvt_technical_reference">RXVT TECHNICAL REFERENCE</a></li> @@ -71,8 +127,8 @@ all escape sequences, and other background information.</p> </p> <h2><a name="the_new_selection_selects_pieces_that_are_too_big__how_can_i_select_single_words">The new selection selects pieces that are too big, how can I select single words?</a></h2> -<p>Yes. For example, if you want to select alphanumeric words, you can use -the following resource:</p> +<p>If you want to select e.g. alphanumeric words, you can use the following +setting:</p> <pre> URxvt.selection.pattern-0: ([[:word:]]+)</pre> <p>If you click more than twice, the selection will be extended @@ -82,181 +138,119 @@ more and more.</p> URxvt.selection.pattern-0: ([^"&'()*,;<=>?@[\\\\]^`{|})]+)</pre> <p>Please also note that the <em>LeftClick Shift-LeftClik</em> combination also selects words like the old code.</p> -<dl> -<dt><strong><a name="item_i_don_27t_like_the_new_selection_2fpopups_2fhotkey">I don't like the new selection/popups/hotkeys/perl, how do I -change/disable it?</a></strong><br /> -</dt> -<dd> -You can disable the perl extension completely by setting the +<p> +</p> +<h2><a name="i_don_t_like_the_new_selection_popups_hotkeys_perl__how_do_i_change_disable_it">I don't like the new selection/popups/hotkeys/perl, how do I +change/disable it?</a></h2> +<p>You can disable the perl extension completely by setting the <strong>perl-ext-common</strong> resource to the empty string, which also keeps -rxvt-unicode from initialising perl, saving memory. -</dd> -<dd> +rxvt-unicode from initialising perl, saving memory.</p> <p>If you only want to disable specific features, you first have to identify which perl extension is responsible. For this, read the section <strong>PREPACKAGED EXTENSIONS</strong> in the <code>rxvtperl(3)</code> manpage. For example, to disable the <strong>selection-popup</strong> and <strong>option-popup</strong>, specify this <strong>perl-ext-common</strong> resource:</p> -</dd> -<dd> <pre> URxvt.perl-ext-common: default,-selection-popup,-option-popup</pre> -</dd> -<dd> <p>This will keep the default extensions, but disable the two popup extensions. Some extensions can also be configured, for example, scrollback search mode is triggered by <strong>M-s</strong>. You can move it to any other combination either by setting the <strong>searchable-scrollback</strong> resource:</p> -</dd> -<dd> <pre> URxvt.searchable-scrollback: CM-s</pre> -</dd> -<p></p> -<dt><strong><a name="item_the_cursor_moves_when_selecting_text_in_the_curren">The cursor moves when selecting text in the current input line, how -do I switch this off?</a></strong><br /> -</dt> -<dt><strong><a name="item_during_rlogin_2fssh_2ftelnet_2fetc_2e_sessions_2c_">During rlogin/ssh/telnet/etc. sessions, clicking near the cursor -outputs strange escape sequences, how do I fix this?</a></strong><br /> -</dt> -<dd> -These are caused by the <code>readline</code> perl extension. Under normal +<p> +</p> +<h2><a name="the_cursor_moves_when_selecting_text_in_the_current_input_line__how_do_i_switch_this_off">The cursor moves when selecting text in the current input line, how +do I switch this off?</a></h2> +<p> +</p> +<h2><a name="during_rlogin_ssh_telnet_etc__sessions__clicking_near_the_cursor_outputs_strange_escape_sequences__how_do_i_fix_this">During rlogin/ssh/telnet/etc. sessions, clicking near the cursor +outputs strange escape sequences, how do I fix this?</a></h2> +<p>These are caused by the <code>readline</code> perl extension. Under normal circumstances, it will move your cursor around when you click into the line that contains it. It tries hard not to do this at the wrong moment, but when running a program that doesn't parse cursor movements or in some -cases during rlogin sessions, it fails to detect this properly. -</dd> -<dd> +cases during rlogin sessions, it fails to detect this properly.</p> <p>You can permamently switch this feature off by disabling the <code>readline</code> extension:</p> -</dd> -<dd> <pre> URxvt.perl-ext-common: default,-readline</pre> -</dd> -<p></p> -<dt><strong><a name="item_why_doesn_27t_rxvt_2dunicode_read_my_resources_3f">Why doesn't rxvt-unicode read my resources?</a></strong><br /> -</dt> -<dd> -Well, why, indeed? It does, in a way very similar to other X +<p> +</p> +<h2><a name="why_doesn_t_rxvtunicode_read_my_resources">Why doesn't rxvt-unicode read my resources?</a></h2> +<p>Well, why, indeed? It does, in a way very similar to other X applications. Most importantly, this means that if you or your OS loads resources into the X display (the right way to do it), rxvt-unicode will ignore any resource files in your home directory. It will only read -<em>$HOME/.Xdefaults</em> when no resources are attached to the display. -</dd> -<dd> +<em>$HOME/.Xdefaults</em> when no resources are attached to the display.</p> <p>If you have or use an <em>$HOME/.Xresources</em> file, chances are that resources are loaded into your X-server. In this case, you have to re-login after every change (or run <em>xrdb -merge $HOME/.Xresources</em>).</p> -</dd> -<dd> <p>Also consider the form resources have to use:</p> -</dd> -<dd> <pre> URxvt.resource: value</pre> -</dd> -<dd> <p>If you want to use another form (there are lots of different ways of specifying resources), make sure you understand wether and why it works. If unsure, use the form above.</p> -</dd> -<p></p> -<dt><strong><a name="item_i_can_27t_get_transparency_working_2c_what_am_i_do">I can't get transparency working, what am I doing wrong?</a></strong><br /> -</dt> -<dd> -First of all, transparency isn't officially supported in rxvt-unicode, so +<p> +</p> +<h2><a name="i_can_t_get_transparency_working__what_am_i_doing_wrong">I can't get transparency working, what am I doing wrong?</a></h2> +<p>First of all, transparency isn't officially supported in rxvt-unicode, so you are mostly on your own. Do not bug the author about it (but you may bug everybody else). Also, if you can't get it working consider it a rite -of passage: ... and you failed. -</dd> -<dd> +of passage: ... and you failed.</p> <p>Here are four ways to get transparency. <strong>Do</strong> read the manpage and option descriptions for the programs mentioned and rxvt-unicode. Really, do it!</p> -</dd> -<dd> <p>1. Use inheritPixmap:</p> -</dd> -<dd> <pre> Esetroot wallpaper.jpg rxvt -ip -tint red -sh 40</pre> -</dd> -<dd> <p>That works. If you think it doesn't, you lack transparency and tinting support, or you are unable to read.</p> -</dd> -<dd> <p>2. Use a simple pixmap and emulate pseudo-transparency. This enables you to use effects other than tinting and shading: Just shade/tint/whatever your picture with gimp:</p> -</dd> -<dd> <pre> convert wallpaper.jpg -blur 20x20 -modulate 30 background.xpm rxvt -pixmap background.xpm -pe automove-background</pre> -</dd> -<dd> <p>That works. If you think it doesn't, you lack XPM and Perl support, or you are unable to read.</p> -</dd> -<dd> <p>3. Use an ARGB visual:</p> -</dd> -<dd> <pre> rxvt -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc</pre> -</dd> -<dd> <p>This requires XFT support, and the support of your X-server. If that doesn't work for you, blame Xorg and Keith Packard. ARGB visuals aren't there yet, no matter what they claim. Rxvt-Unicode contains the neccessary bugfixes and workarounds for Xft and Xlib to make it work, but that doesn't mean that your WM has the required kludges in place.</p> -</dd> -<dd> <p>4. Use xcompmgr and let it do the job:</p> -</dd> -<dd> <pre> xprop -frame -f _NET_WM_WINDOW_OPACITY 32c \ -set _NET_WM_WINDOW_OPACITY 0xc0000000</pre> -</dd> -<dd> <p>Then click on a window you want to make transparent. Replace <code>0xc0000000</code> by other values to change the degree of opacity. If it doesn't work and your server crashes, you got to keep the pieces.</p> -</dd> -<p></p> -<dt><strong><a name="item_isn_27t_rxvt_supposed_to_be_small_3f_don_27t_all_t">Isn't rxvt supposed to be small? Don't all those features bloat?</a></strong><br /> -</dt> -<dd> -I often get asked about this, and I think, no, they didn't cause extra +<p> +</p> +<h2><a name="isn_t_rxvt_supposed_to_be_small_don_t_all_those_features_bloat">Isn't rxvt supposed to be small? Don't all those features bloat?</a></h2> +<p>I often get asked about this, and I think, no, they didn't cause extra bloat. If you compare a minimal rxvt and a minimal urxvt, you can see that the urxvt binary is larger (due to some encoding tables always being compiled in), but it actually uses less memory (RSS) after startup. Even with <code>--disable-everything</code>, this comparison is a bit unfair, as many features unique to urxvt (locale, encoding conversion, iso14755 etc.) are -already in use in this mode. -</dd> -<dd> +already in use in this mode.</p> <pre> text data bss drs rss filename 98398 1664 24 15695 1824 rxvt --disable-everything 188985 9048 66616 18222 1788 urxvt --disable-everything</pre> -</dd> -<dd> <p>When you <a href="#item__2d_2denable_2deverything"><code>--enable-everything</code></a> (which _is_ unfair, as this involves xft and full locale/XIM support which are quite bloaty inside libX11 and my libc), the two diverge, but not unreasnobaly so.</p> -</dd> -<dd> <pre> text data bss drs rss filename 163431 2152 24 20123 2060 rxvt --enable-everything 1035683 49680 66648 29096 3680 urxvt --enable-everything</pre> -</dd> -<dd> <p>The very large size of the text section is explained by the east-asian encoding tables, which, if unused, take up disk space but nothing else and can be compiled out unless you rely on X11 core fonts that use those @@ -265,231 +259,160 @@ compiler allocates (but of course doesn't use unless you are out of memory). Also, using an xft font instead of a core font immediately adds a few megabytes of RSS. Xft indeed is responsible for a lot of RSS even when not used.</p> -</dd> -<dd> <p>Of course, due to every character using two or four bytes instead of one, a large scrollback buffer will ultimately make rxvt-unicode use more memory.</p> -</dd> -<dd> <p>Compared to e.g. Eterm (5112k), aterm (3132k) and xterm (4680k), this still fares rather well. And compared to some monsters like gnome-terminal (21152k + extra 4204k in separate processes) or konsole (22200k + extra 43180k in daemons that stay around after exit, plus half a minute of startup time, including the hundreds of warnings it spits out), it fares extremely well *g*.</p> -</dd> -<p></p> -<dt><strong><a name="item_why_c_2b_2b_2c_isn_27t_that_unportable_2fbloated_2">Why C++, isn't that unportable/bloated/uncool?</a></strong><br /> -</dt> -<dd> -Is this a question? :) It comes up very often. The simple answer is: I had +<p> +</p> +<h2><a name="why_c____isn_t_that_unportable_bloated_uncool">Why C++, isn't that unportable/bloated/uncool?</a></h2> +<p>Is this a question? :) It comes up very often. The simple answer is: I had to write it, and C++ allowed me to write and maintain it in a fraction of the time and effort (which is a scarce resource for me). Put even -shorter: It simply wouldn't exist without C++. -</dd> -<dd> +shorter: It simply wouldn't exist without C++.</p> <p>My personal stance on this is that C++ is less portable than C, but in the case of rxvt-unicode this hardly matters, as its portability limits are defined by things like X11, pseudo terminals, locale support and unix domain sockets, which are all less portable than C++ itself.</p> -</dd> -<dd> <p>Regarding the bloat, see the above question: It's easy to write programs in C that use gobs of memory, an certainly possible to write programs in C++ that don't. C++ also often comes with large libraries, but this is not necessarily the case with GCC. Here is what rxvt links against on my system with a minimal config:</p> -</dd> -<dd> <pre> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) libc.so.6 => /lib/libc.so.6 (0x00002aaaaadde000) libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab01d000) /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)</pre> -</dd> -<dd> <p>And here is rxvt-unicode:</p> -</dd> -<dd> <pre> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaaada2000) libc.so.6 => /lib/libc.so.6 (0x00002aaaaaeb0000) libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab0ee000) /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)</pre> -</dd> -<dd> <p>No large bloated libraries (of course, none were linked in statically), except maybe libX11 :)</p> -</dd> -<p></p> -<dt><strong><a name="item_does_it_support_tabs_2c_can_i_have_a_tabbed_rxvt_2">Does it support tabs, can I have a tabbed rxvt-unicode?</a></strong><br /> -</dt> -<dd> -Beginning with version 7.3, there is a perl extension that implements a +<p> +</p> +<h2><a name="does_it_support_tabs__can_i_have_a_tabbed_rxvtunicode">Does it support tabs, can I have a tabbed rxvt-unicode?</a></h2> +<p>Beginning with version 7.3, there is a perl extension that implements a simple tabbed terminal. It is installed by default, so any of these should -give you tabs: -</dd> -<dd> +give you tabs:</p> <pre> rxvt -pe tabbed</pre> -</dd> -<dd> <pre> URxvt.perl-ext-common: default,tabbed</pre> -</dd> -<dd> <p>It will also work fine with tabbing functionality of many window managers or similar tabbing programs, and its embedding-features allow it to be embedded into other programs, as witnessed by <em>doc/rxvt-tabbed</em> or the upcoming <code>Gtk2::URxvt</code> perl module, which features a tabbed urxvt (murxvt) terminal as an example embedding application.</p> -</dd> -<p></p> -<dt><strong><a name="item_how_do_i_know_which_rxvt_2dunicode_version_i_27m_u">How do I know which rxvt-unicode version I'm using?</a></strong><br /> -</dt> -<dd> -The version number is displayed with the usage (-h). Also the escape +<p> +</p> +<h2><a name="how_do_i_know_which_rxvtunicode_version_i_m_using">How do I know which rxvt-unicode version I'm using?</a></h2> +<p>The version number is displayed with the usage (-h). Also the escape sequence <code>ESC [ 8 n</code> sets the window title to the version number. When using the rxvtc client, the version displayed is that of the -daemon. -</dd> -<p></p> -<dt><strong><a name="item_i_am_using_debian_gnu_2flinux_and_have_a_problem_2">I am using Debian GNU/Linux and have a problem...</a></strong><br /> -</dt> -<dd> -The Debian GNU/Linux package of rxvt-unicode in sarge contains large +daemon.</p> +<p> +</p> +<h2><a name="i_am_using_debian_gnu_linux_and_have_a_problem___">I am using Debian GNU/Linux and have a problem...</a></h2> +<p>The Debian GNU/Linux package of rxvt-unicode in sarge contains large patches that considerably change the behaviour of rxvt-unicode (but unfortunately this notice has been removed). Before reporting a bug to the original rxvt-unicode author please download and install the genuine version (<a href="http://software.schmorp.de#rxvt-unicode">http://software.schmorp.de#rxvt-unicode</a>) and try to reproduce the problem. If you cannot, chances are that the problems are specific to Debian GNU/Linux, in which case it should be reported via the Debian Bug -Tracking System (use <code>reportbug</code> to report the bug). -</dd> -<dd> +Tracking System (use <code>reportbug</code> to report the bug).</p> <p>For other problems that also affect the Debian package, you can and probably should use the Debian BTS, too, because, after all, it's also a bug in the Debian version and it serves as a reminder for other users that might encounter the same issue.</p> -</dd> -<p></p> -<dt><strong><a name="item_i_am_maintaining_rxvt_2dunicode_for_distribution_2">I am maintaining rxvt-unicode for distribution/OS XXX, any -recommendation?</a></strong><br /> -</dt> -<dd> -You should build one binary with the default options. <em>configure</em> +<p> +</p> +<h2><a name="i_am_maintaining_rxvtunicode_for_distribution_os_xxx__any_recommendation">I am maintaining rxvt-unicode for distribution/OS XXX, any +recommendation?</a></h2> +<p>You should build one binary with the default options. <em>configure</em> now enables most useful options, and the trend goes to making them runtime-switchable, too, so there is usually no drawback to enbaling them, except higher disk and possibly memory usage. The perl interpreter should be enabled, as important functionality (menus, selection, likely more in -the future) depends on it. -</dd> -<dd> +the future) depends on it.</p> <p>You should not overwrite the <code>perl-ext-common</code> snd <code>perl-ext</code> resources system-wide (except maybe with <code>defaults</code>). This will result in useful behaviour. If your distribution aims at low memory, add an empty <code>perl-ext-common</code> resource to the app-defaults file. This will keep the perl interpreter disabled until the user enables it.</p> -</dd> -<dd> <p>If you can/want build more binaries, I recommend building a minimal one with <code>--disable-everything</code> (very useful) and a maximal one with <a href="#item__2d_2denable_2deverything"><code>--enable-everything</code></a> (less useful, it will be very big due to a lot of encodings built-in that increase download times and are rarely used).</p> -</dd> -<p></p> -<dt><strong><a name="item_i_need_to_make_it_setuid_2fsetgid_to_support_utmp_">I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe?</a></strong><br /> -</dt> -<dd> -It should be, starting with release 7.1. You are encouraged to properly -install urxvt with privileges necessary for your OS now. -</dd> -<dd> +<p> +</p> +<h2><a name="i_need_to_make_it_setuid_setgid_to_support_utmp_ptys_on_my_os__is_this_safe">I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe?</a></h2> +<p>It should be, starting with release 7.1. You are encouraged to properly +install urxvt with privileges necessary for your OS now.</p> <p>When rxvt-unicode detects that it runs setuid or setgid, it will fork into a helper process for privileged operations (pty handling on some systems, utmp/wtmp/lastlog handling on others) and drop privileges immediately. This is much safer than most other terminals that keep privileges while running (but is more relevant to urxvt, as it contains things as perl interpreters, which might be ``helpful'' to attackers).</p> -</dd> -<dd> <p>This forking is done as the very first within main(), which is very early and reduces possible bugs to initialisation code run before main(), or things like the dynamic loader of your system, which should result in very little risk.</p> -</dd> -<p></p> -<dt><strong><a name="item_when_i_log_2din_to_another_system_it_tells_me_abou">When I log-in to another system it tells me about missing terminfo data?</a></strong><br /> -</dt> -<dd> -The terminal description used by rxvt-unicode is not as widely available -as that for xterm, or even rxvt (for which the same problem often arises). -</dd> -<dd> +<p> +</p> +<h2><a name="when_i_login_to_another_system_it_tells_me_about_missing_terminfo_data">When I log-in to another system it tells me about missing terminfo data?</a></h2> +<p>The terminal description used by rxvt-unicode is not as widely available +as that for xterm, or even rxvt (for which the same problem often arises).</p> <p>The correct solution for this problem is to install the terminfo, this can be done like this (with ncurses' infocmp):</p> -</dd> -<dd> <pre> REMOTE=remotesystem.domain infocmp rxvt-unicode | ssh $REMOTE "cat >/tmp/ti && tic /tmp/ti"</pre> -</dd> -<dd> <p>... or by installing rxvt-unicode normally on the remote system,</p> -</dd> -<dd> <p>If you cannot or do not want to do this, then you can simply set <code>TERM=rxvt</code> or even <code>TERM=xterm</code>, and live with the small number of problems arising, which includes wrong keymapping, less and different colours and some refresh errors in fullscreen applications. It's a nice quick-and-dirty workaround for rare cases, though.</p> -</dd> -<dd> <p>If you always want to do this (and are fine with the consequences) you can either recompile rxvt-unicode with the desired TERM value or use a resource to set it:</p> -</dd> -<dd> <pre> URxvt.termName: rxvt</pre> -</dd> -<dd> <p>If you don't plan to use <strong>rxvt</strong> (quite common...) you could also replace the rxvt terminfo file with the rxvt-unicode one.</p> -</dd> -<p></p> -<dt><strong><a name="item_tic_outputs_some_error_when_compiling_the_terminfo"><code>tic</code> outputs some error when compiling the terminfo entry.</a></strong><br /> -</dt> -<dd> -Most likely it's the empty definition for <code>enacs=</code>. Just replace it by -<code>enacs=\E[0@</code> and try again. -</dd> -<p></p> -<dt><strong><a name="item_bash_27s_readline_does_not_work_correctly_under_rx"><code>bash</code>'s readline does not work correctly under rxvt.</a></strong><br /> -</dt> -<dt><strong><a name="item_i_need_a_termcap_file_entry_2e">I need a termcap file entry.</a></strong><br /> -</dt> -<dd> -One reason you might want this is that some distributions or operating +<p> +</p> +<h2><a name="tic_outputs_some_error_when_compiling_the_terminfo_entry_"><code>tic</code> outputs some error when compiling the terminfo entry.</a></h2> +<p>Most likely it's the empty definition for <code>enacs=</code>. Just replace it by +<code>enacs=\E[0@</code> and try again.</p> +<p> +</p> +<h2><a name="bash_s_readline_does_not_work_correctly_under_rxvt_"><code>bash</code>'s readline does not work correctly under rxvt.</a></h2> +<p> +</p> +<h2><a name="i_need_a_termcap_file_entry_">I need a termcap file entry.</a></h2> +<p>One reason you might want this is that some distributions or operating systems still compile some programs using the long-obsoleted termcap library (Fedora Core's bash is one example) and rely on a termcap entry -for <code>rxvt-unicode</code>. -</dd> -<dd> +for <code>rxvt-unicode</code>.</p> <p>You could use rxvt's termcap entry with resonable results in many cases. You can also create a termcap entry by using terminfo's infocmp program like this:</p> -</dd> -<dd> <pre> infocmp -C rxvt-unicode</pre> -</dd> -<dd> <p>Or you could use this termcap entry, generated by the command above:</p> -</dd> -<dd> <pre> rxvt-unicode|rxvt-unicode terminal (X Window System):\ :am:bw:eo:km:mi:ms:xn:xo:\ @@ -511,144 +434,104 @@ like this:</p> :te=\E[r\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\E[A:\ :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\ :vs=\E[?25h:</pre> -</dd> -<p></p> -<dt><strong><a name="item_why_does_ls_no_longer_have_coloured_output_3f">Why does <code>ls</code> no longer have coloured output?</a></strong><br /> -</dt> -<dd> -The <code>ls</code> in the GNU coreutils unfortunately doesn't use terminfo to +<p> +</p> +<h2><a name="why_does_ls_no_longer_have_coloured_output">Why does <code>ls</code> no longer have coloured output?</a></h2> +<p>The <code>ls</code> in the GNU coreutils unfortunately doesn't use terminfo to decide wether a terminal has colour, but uses it's own configuration file. Needless to say, <code>rxvt-unicode</code> is not in it's default file (among -with most other terminals supporting colour). Either add: -</dd> -<dd> +with most other terminals supporting colour). Either add:</p> <pre> TERM rxvt-unicode</pre> -</dd> -<dd> <p>to <code>/etc/DIR_COLORS</code> or simply add:</p> -</dd> -<dd> <pre> alias ls='ls --color=auto'</pre> -</dd> -<dd> <p>to your <code>.profile</code> or <code>.bashrc</code>.</p> -</dd> -<p></p> -<dt><strong><a name="item_why_doesn_27t_vim_2femacs_etc_2e_use_the_88_colour">Why doesn't vim/emacs etc. use the 88 colour mode?</a></strong><br /> -</dt> -<dt><strong><a name="item_why_doesn_27t_vim_2femacs_etc_2e_make_use_of_itali">Why doesn't vim/emacs etc. make use of italic?</a></strong><br /> -</dt> -<dt><strong><a name="item_why_are_the_secondary_screen_2drelated_options_not">Why are the secondary screen-related options not working properly?</a></strong><br /> -</dt> -<dd> -Make sure you are using <code>TERM=rxvt-unicode</code>. Some pre-packaged +<p> +</p> +<h2><a name="why_doesn_t_vim_emacs_etc__use_the_88_colour_mode">Why doesn't vim/emacs etc. use the 88 colour mode?</a></h2> +<p> +</p> +<h2><a name="why_doesn_t_vim_emacs_etc__make_use_of_italic">Why doesn't vim/emacs etc. make use of italic?</a></h2> +<p> +</p> +<h2><a name="why_are_the_secondary_screenrelated_options_not_working_properly">Why are the secondary screen-related options not working properly?</a></h2> +<p>Make sure you are using <code>TERM=rxvt-unicode</code>. Some pre-packaged distributions (most notably Debian GNU/Linux) break rxvt-unicode by setting <code>TERM</code> to <code>rxvt</code>, which doesn't have these extra features. Unfortunately, some of these (most notably, again, Debian GNU/Linux) furthermore fail to even install the <code>rxvt-unicode</code> terminfo file, so you will need to install it on your own (See the question <strong>When I log-in to another system it tells me about missing terminfo data?</strong> on -how to do this). -</dd> -<p></p> -<dt><strong><a name="item_my_numerical_keypad_acts_weird_and_generates_diffe">My numerical keypad acts weird and generates differing output?</a></strong><br /> -</dt> -<dd> -Some Debian GNUL/Linux users seem to have this problem, although no +how to do this).</p> +<p> +</p> +<h2><a name="my_numerical_keypad_acts_weird_and_generates_differing_output">My numerical keypad acts weird and generates differing output?</a></h2> +<p>Some Debian GNUL/Linux users seem to have this problem, although no specific details were reported so far. It is possible that this is caused by the wrong <code>TERM</code> setting, although the details of wether and how this can happen are unknown, as <code>TERM=rxvt</code> should offer a compatible keymap. See the answer to the previous question, and please report if that -helped. -</dd> -<p></p> -<dt><strong><a name="item_rxvt_2dunicode_does_not_seem_to_understand_the_sel">Rxvt-unicode does not seem to understand the selected encoding?</a></strong><br /> -</dt> -<dt><strong><a name="item_unicode_does_not_seem_to_work_3f">Unicode does not seem to work?</a></strong><br /> -</dt> -<dd> -If you encounter strange problems like typing an accented character but +helped.</p> +<p> +</p> +<h2><a name="rxvtunicode_does_not_seem_to_understand_the_selected_encoding">Rxvt-unicode does not seem to understand the selected encoding?</a></h2> +<p> +</p> +<h2><a name="unicode_does_not_seem_to_work">Unicode does not seem to work?</a></h2> +<p>If you encounter strange problems like typing an accented character but getting two unrelated other characters or similar, or if program output is -subtly garbled, then you should check your locale settings. -</dd> -<dd> +subtly garbled, then you should check your locale settings.</p> <p>Rxvt-unicode must be started with the same <code>LC_CTYPE</code> setting as the programs. Often rxvt-unicode is started in the <a href="#item_c"><code>C</code></a> locale, while the login script running within the rxvt-unicode window changes the locale to something else, e.g. <code>en_GB.UTF-8</code>. Needless to say, this is not going to work.</p> -</dd> -<dd> <p>The best thing is to fix your startup environment, as you will likely run into other problems. If nothing works you can try this in your .profile.</p> -</dd> -<dd> <pre> printf '\e]701;%s\007' "$LC_CTYPE"</pre> -</dd> -<dd> <p>If this doesn't work, then maybe you use a <code>LC_CTYPE</code> specification not supported on your systems. Some systems have a <code>locale</code> command which displays this (also, <code>perl -e0</code> can be used to check locale settings, as it will complain loudly if it cannot set the locale). If it displays something like:</p> -</dd> -<dd> <pre> locale: Cannot set LC_CTYPE to default locale: ...</pre> -</dd> -<dd> <p>Then the locale you specified is not supported on your system.</p> -</dd> -<dd> <p>If nothing works and you are sure that everything is set correctly then you will need to remember a little known fact: Some programs just don't support locales :(</p> -</dd> -<p></p> -<dt><strong><a name="item_why_do_some_characters_look_so_much_different_than">Why do some characters look so much different than others?</a></strong><br /> -</dt> -<dt><strong><a name="item_how_does_rxvt_2dunicode_choose_fonts_3f">How does rxvt-unicode choose fonts?</a></strong><br /> -</dt> -<dd> -Most fonts do not contain the full range of Unicode, which is +<p> +</p> +<h2><a name="why_do_some_characters_look_so_much_different_than_others">Why do some characters look so much different than others?</a></h2> +<p> +</p> +<h2><a name="how_does_rxvtunicode_choose_fonts">How does rxvt-unicode choose fonts?</a></h2> +<p>Most fonts do not contain the full range of Unicode, which is fine. Chances are that the font you (or the admin/package maintainer of your system/os) have specified does not cover all the characters you want -to display. -</dd> -<dd> +to display.</p> <p><strong>rxvt-unicode</strong> makes a best-effort try at finding a replacement font. Often the result is fine, but sometimes the chosen font looks bad/ugly/wrong. Some fonts have totally strange characters that don't resemble the correct glyph at all, and rxvt-unicode lacks the artificial intelligence to detect that a specific glyph is wrong: it has to believe the font that the characters it claims to contain indeed look correct.</p> -</dd> -<dd> <p>In that case, select a font of your taste and add it to the font list, e.g.:</p> -</dd> -<dd> <pre> rxvt -fn basefont,font2,font3...</pre> -</dd> -<dd> <p>When rxvt-unicode sees a character, it will first look at the base font. If the base font does not contain the character, it will go to the next font, and so on. Specifying your own fonts will also speed up this search and use less resources within rxvt-unicode and the X-server.</p> -</dd> -<dd> <p>The only limitation is that none of the fonts may be larger than the base font, as the base font defines the terminal character cell size, which must be the same due to the way terminals work.</p> -</dd> -<p></p> -<dt><strong><a name="item_why_do_some_chinese_characters_look_so_different_t">Why do some chinese characters look so different than others?</a></strong><br /> -</dt> -<dd> -This is because there is a difference between script and language -- +<p> +</p> +<h2><a name="why_do_some_chinese_characters_look_so_different_than_others">Why do some chinese characters look so different than others?</a></h2> +<p>This is because there is a difference between script and language -- rxvt-unicode does not know which language the text that is output is, as it only knows the unicode character codes. If rxvt-unicode first sees a japanese/chinese character, it might choose a japanese font for @@ -656,134 +539,94 @@ display. Subsequent japanese characters will use that font. Now, many chinese characters aren't represented in japanese fonts, so when the first non-japanese character comes up, rxvt-unicode will look for a chinese font -- unfortunately at this point, it will still use the japanese font for -chinese characters that are also in the japanese font. -</dd> -<dd> +chinese characters that are also in the japanese font.</p> <p>The workaround is easy: just tag a chinese font at the end of your font list (see the previous question). The key is to view the font list as a preference list: If you expect more japanese, list a japanese font first. If you expect more chinese, put a chinese font first.</p> -</dd> -<dd> <p>In the future it might be possible to switch language preferences at runtime (the internal data structure has no problem with using different fonts for the same character at the same time, but no interface for this has been designed yet).</p> -</dd> -<dd> <p>Until then, you might get away with switching fonts at runtime (see <a href="#can_i_switch_the_fonts_at_runtime">Can I switch the fonts at runtime?</a> later in this document).</p> -</dd> -<p></p> -<dt><strong><a name="item_why_does_rxvt_2dunicode_sometimes_leave_pixel_drop">Why does rxvt-unicode sometimes leave pixel droppings?</a></strong><br /> -</dt> -<dd> -Most fonts were not designed for terminal use, which means that character +<p> +</p> +<h2><a name="why_does_rxvtunicode_sometimes_leave_pixel_droppings">Why does rxvt-unicode sometimes leave pixel droppings?</a></h2> +<p>Most fonts were not designed for terminal use, which means that character size varies a lot. A font that is otherwise fine for terminal use might contain some characters that are simply too wide. Rxvt-unicode will avoid these characters. For characters that are just ``a bit'' too wide a special -``careful'' rendering mode is used that redraws adjacent characters. -</dd> -<dd> +``careful'' rendering mode is used that redraws adjacent characters.</p> <p>All of this requires that fonts do not lie about character sizes, however: Xft fonts often draw glyphs larger than their acclaimed bounding box, and rxvt-unicode has no way of detecting this (the correct way is to ask for the character bounding box, which unfortunately is wrong in these cases).</p> -</dd> -<dd> <p>It's not clear (to me at least), wether this is a bug in Xft, freetype, or the respective font. If you encounter this problem you might try using the <code>-lsp</code> option to give the font more height. If that doesn't work, you might be forced to use a different font.</p> -</dd> -<dd> <p>All of this is not a problem when using X11 core fonts, as their bounding box data is correct.</p> -</dd> -<p></p> -<dt><strong><a name="item_on_solaris_9_2c_many_line_2ddrawing_characters_are">On Solaris 9, many line-drawing characters are too wide.</a></strong><br /> -</dt> -<dd> -Seems to be a known bug, read +<p> +</p> +<h2><a name="on_solaris_9__many_linedrawing_characters_are_too_wide_">On Solaris 9, many line-drawing characters are too wide.</a></h2> +<p>Seems to be a known bug, read <a href="http://nixdoc.net/files/forum/about34198.html">http://nixdoc.net/files/forum/about34198.html</a>. Some people use the -following ugly workaround to get non-double-wide-characters working: -</dd> -<dd> +following ugly workaround to get non-double-wide-characters working:</p> <pre> #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x)</pre> -</dd> -<p></p> -<dt><strong><a name="item_compose">My Compose (Multi_key) key is no longer working.</a></strong><br /> -</dt> -<dd> -The most common causes for this are that either your locale is not set +<p> +</p> +<h2><a name="my_compose__multi_key__key_is_no_longer_working_">My Compose (Multi_key) key is no longer working.</a></h2> +<p>The most common causes for this are that either your locale is not set correctly, or you specified a <strong>preeditStyle</strong> that is not supported by your input method. For example, if you specified <strong>OverTheSpot</strong> and your input method (e.g. the default input method handling Compose keys) does not support this (for instance because it is not visual), then -rxvt-unicode will continue without an input method. -</dd> -<dd> +rxvt-unicode will continue without an input method.</p> <p>In this case either do not specify a <strong>preeditStyle</strong> or specify more than one pre-edit style, such as <strong>OverTheSpot,Root,None</strong>.</p> -</dd> -<p></p> -<dt><strong><a name="item_i_cannot_type_ctrl_2dshift_2d2_to_get_an_ascii_nul">I cannot type <code>Ctrl-Shift-2</code> to get an ASCII NUL character due to ISO 14755</a></strong><br /> -</dt> -<dd> -Either try <code>Ctrl-2</code> alone (it often is mapped to ASCII NUL even on +<p> +</p> +<h2><a name="i_cannot_type_ctrlshift2_to_get_an_ascii_nul_character_due_to_iso_14755">I cannot type <code>Ctrl-Shift-2</code> to get an ASCII NUL character due to ISO 14755</a></h2> +<p>Either try <code>Ctrl-2</code> alone (it often is mapped to ASCII NUL even on international keyboards) or simply use ISO 14755 support to your advantage, typing <Ctrl-Shift-0> to get a ASCII NUL. This works for other codes, too, such as <code>Ctrl-Shift-1-d</code> to type the default telnet escape -character and so on. -</dd> -<p></p> -<dt><strong><a name="item_how_can_i_keep_rxvt_2dunicode_from_using_reverse_v">How can I keep rxvt-unicode from using reverse video so much?</a></strong><br /> -</dt> -<dd> -First of all, make sure you are running with the right terminal settings +character and so on.</p> +<p> +</p> +<h2><a name="how_can_i_keep_rxvtunicode_from_using_reverse_video_so_much">How can I keep rxvt-unicode from using reverse video so much?</a></h2> +<p>First of all, make sure you are running with the right terminal settings (<code>TERM=rxvt-unicode</code>), which will get rid of most of these effects. Then make sure you have specified colours for italic and bold, as otherwise -rxvt-unicode might use reverse video to simulate the effect: -</dd> -<dd> +rxvt-unicode might use reverse video to simulate the effect:</p> <pre> URxvt.colorBD: white URxvt.colorIT: green</pre> -</dd> -<p></p> -<dt><strong><a name="item_colours">Some programs assume totally weird colours (red instead of blue), how can I fix that?</a></strong><br /> -</dt> -<dd> -For some unexplainable reason, some rare programs assume a very weird +<p> +</p> +<h2><a name="some_programs_assume_totally_weird_colours__red_instead_of_blue___how_can_i_fix_that">Some programs assume totally weird colours (red instead of blue), how can I fix that?</a></h2> +<p>For some unexplainable reason, some rare programs assume a very weird colour palette when confronted with a terminal with more than the standard 8 colours (rxvt-unicode supports 88). The right fix is, of course, to fix -these programs not to assume non-ISO colours without very good reasons. -</dd> -<dd> +these programs not to assume non-ISO colours without very good reasons.</p> <p>In the meantime, you can either edit your <code>rxvt-unicode</code> terminfo definition to only claim 8 colour support or use <code>TERM=rxvt</code>, which will fix colours but keep you from using other rxvt-unicode features.</p> -</dd> -<p></p> -<dt><strong><a name="item_i_am_on_freebsd_and_rxvt_2dunicode_does_not_seem_t">I am on FreeBSD and rxvt-unicode does not seem to work at all.</a></strong><br /> -</dt> -<dd> -Rxvt-unicode requires the symbol <code>__STDC_ISO_10646__</code> to be defined +<p> +</p> +<h2><a name="i_am_on_freebsd_and_rxvtunicode_does_not_seem_to_work_at_all_">I am on FreeBSD and rxvt-unicode does not seem to work at all.</a></h2> +<p>Rxvt-unicode requires the symbol <code>__STDC_ISO_10646__</code> to be defined in your compile environment, or an implementation that implements it, wether it defines the symbol or not. <code>__STDC_ISO_10646__</code> requires that -<strong>wchar_t</strong> is represented as unicode. -</dd> -<dd> +<strong>wchar_t</strong> is represented as unicode.</p> <p>As you might have guessed, FreeBSD does neither define this symobl nor does it support it. Instead, it uses it's own internal representation of <strong>wchar_t</strong>. This is, of course, completely fine with respect to standards.</p> -</dd> -<dd> <p>However, that means rxvt-unicode only works in <code>POSIX</code>, <code>ISO-8859-1</code> and <code>UTF-8</code> locales under FreeBSD (which all use Unicode as <strong>wchar_t</strong>.</p> -</dd> -<dd> <p><code>__STDC_ISO_10646__</code> is the only sane way to support multi-language apps in an OS, as using a locale-dependent (and non-standardized) representation of <strong>wchar_t</strong> makes it impossible to convert between @@ -791,53 +634,40 @@ representation of <strong>wchar_t</strong> makes it impossible to convert betwee without implementing OS-specific-wrappers for each and every locale. There simply are no APIs to convert <strong>wchar_t</strong> into anything except the current locale encoding.</p> -</dd> -<dd> <p>Some applications (such as the formidable <strong>mlterm</strong>) work around this by carrying their own replacement functions for character set handling with them, and either implementing OS-dependent hacks or doing multiple conversions (which is slow and unreliable in case the OS implements encodings slightly different than the terminal emulator).</p> -</dd> -<dd> <p>The rxvt-unicode author insists that the right way to fix this is in the system libraries once and for all, instead of forcing every app to carry complete replacements for them :)</p> -</dd> -<p></p> -<dt><strong><a name="item_i_use_solaris_9_and_it_doesn_27t_compile_2fwork_2f">I use Solaris 9 and it doesn't compile/work/etc.</a></strong><br /> -</dt> -<dd> -Try the diff in <em>doc/solaris9.patch</em> as a base. It fixes the worst -problems with <code>wcwidth</code> and a compile problem. -</dd> -<p></p> -<dt><strong><a name="item_how_can_i_use_rxvt_2dunicode_under_cygwin_3f">How can I use rxvt-unicode under cygwin?</a></strong><br /> -</dt> -<dd> -rxvt-unicode should compile and run out of the box on cygwin, using +<p> +</p> +<h2><a name="i_use_solaris_9_and_it_doesn_t_compile_work_etc_">I use Solaris 9 and it doesn't compile/work/etc.</a></h2> +<p>Try the diff in <em>doc/solaris9.patch</em> as a base. It fixes the worst +problems with <code>wcwidth</code> and a compile problem.</p> +<p> +</p> +<h2><a name="how_can_i_use_rxvtunicode_under_cygwin">How can I use rxvt-unicode under cygwin?</a></h2> +<p>rxvt-unicode should compile and run out of the box on cygwin, using the X11 libraries that come with cygwin. libW11 emulation is no longer supported (and makes no sense, either, as it only supported a single font). I recommend starting the X-server in <code>-multiwindow</code> or <code>-rootless</code> mode instead, which will result in similar look&feel as the -old libW11 emulation. -</dd> -<dd> +old libW11 emulation.</p> <p>At the time of this writing, cygwin didn't seem to support any multi-byte encodings (you might try <code>LC_CTYPE=C-UTF-8</code>), so you are likely limited to 8-bit encodings.</p> -</dd> -<p></p> -<dt><strong><a name="item_how_does_rxvt_2dunicode_determine_the_encoding_to_">How does rxvt-unicode determine the encoding to use?</a></strong><br /> -</dt> -<dt><strong><a name="item_is_there_an_option_to_switch_encodings_3f">Is there an option to switch encodings?</a></strong><br /> -</dt> -<dd> -Unlike some other terminals, rxvt-unicode has no encoding switch, and no +<p> +</p> +<h2><a name="how_does_rxvtunicode_determine_the_encoding_to_use">How does rxvt-unicode determine the encoding to use?</a></h2> +<p> +</p> +<h2><a name="is_there_an_option_to_switch_encodings">Is there an option to switch encodings?</a></h2> +<p>Unlike some other terminals, rxvt-unicode has no encoding switch, and no specific ``utf-8'' mode, such as xterm. In fact, it doesn't even know about -UTF-8 or any other encodings with respect to terminal I/O. -</dd> -<dd> +UTF-8 or any other encodings with respect to terminal I/O.</p> <p>The reasons is that there exists a perfectly fine mechanism for selecting the encoding, doing I/O and (most important) communicating this to all applications so everybody agrees on character properties such as width @@ -845,213 +675,141 @@ and code number. This mechanism is the <em>locale</em>. Applications not using that info will have problems (for example, <code>xterm</code> gets the width of characters wrong as it uses it's own, locale-independent table under all locales).</p> -</dd> -<dd> <p>Rxvt-unicode uses the <code>LC_CTYPE</code> locale category to select encoding. All programs doing the same (that is, most) will automatically agree in the interpretation of characters.</p> -</dd> -<dd> <p>Unfortunately, there is no system-independent way to select locales, nor is there a standard on how locale specifiers will look like.</p> -</dd> -<dd> <p>On most systems, the content of the <code>LC_CTYPE</code> environment variable contains an arbitrary string which corresponds to an already-installed locale. Common names for locales are <code>en_US.UTF-8</code>, <code>de_DE.ISO-8859-15</code>, <code>ja_JP.EUC-JP</code>, i.e. <code>language_country.encoding</code>, but other forms (i.e. <code>de</code> or <code>german</code>) are also common.</p> -</dd> -<dd> <p>Rxvt-unicode ignores all other locale categories, and except for the encoding, ignores country or language-specific settings, i.e. <code>de_DE.UTF-8</code> and <code>ja_JP.UTF-8</code> are the normally same to rxvt-unicode.</p> -</dd> -<dd> <p>If you want to use a specific encoding you have to make sure you start rxvt-unicode with the correct <code>LC_CTYPE</code> category.</p> -</dd> -<p></p> -<dt><strong><a name="item_can_i_switch_locales_at_runtime_3f">Can I switch locales at runtime?</a></strong><br /> -</dt> -<dd> -Yes, using an escape sequence. Try something like this, which sets -rxvt-unicode's idea of <code>LC_CTYPE</code>. -</dd> -<dd> +<p> +</p> +<h2><a name="can_i_switch_locales_at_runtime">Can I switch locales at runtime?</a></h2> +<p>Yes, using an escape sequence. Try something like this, which sets +rxvt-unicode's idea of <code>LC_CTYPE</code>.</p> <pre> printf '\e]701;%s\007' ja_JP.SJIS</pre> -</dd> -<dd> <p>See also the previous answer.</p> -</dd> -<dd> <p>Sometimes this capability is rather handy when you want to work in one locale (e.g. <code>de_DE.UTF-8</code>) but some programs don't support it (e.g. UTF-8). For example, I use this script to start <code>xjdic</code>, which first switches to a locale supported by xjdic and back later:</p> -</dd> -<dd> <pre> printf '\e]701;%s\007' ja_JP.SJIS xjdic -js printf '\e]701;%s\007' de_DE.UTF-8</pre> -</dd> -<dd> <p>You can also use xterm's <code>luit</code> program, which usually works fine, except for some locales where character width differs between program- and rxvt-unicode-locales.</p> -</dd> -<p></p> -<dt><strong><a name="item_can_i_switch_the_fonts_at_runtime_3f">Can I switch the fonts at runtime?</a></strong><br /> -</dt> -<dd> -Yes, using an escape sequence. Try something like this, which has the same -effect as using the <code>-fn</code> switch, and takes effect immediately: -</dd> -<dd> +<p> +</p> +<h2><a name="can_i_switch_the_fonts_at_runtime">Can I switch the fonts at runtime?</a></h2> +<p>Yes, using an escape sequence. Try something like this, which has the same +effect as using the <code>-fn</code> switch, and takes effect immediately:</p> <pre> printf '\e]50;%s\007' "9x15bold,xft:Kochi Gothic"</pre> -</dd> -<dd> <p>This is useful if you e.g. work primarily with japanese (and prefer a japanese font), but you have to switch to chinese temporarily, where japanese fonts would only be in your way.</p> -</dd> -<dd> <p>You can think of this as a kind of manual ISO-2022 switching.</p> -</dd> -<p></p> -<dt><strong><a name="item_why_do_italic_characters_look_as_if_clipped_3f">Why do italic characters look as if clipped?</a></strong><br /> -</dt> -<dd> -Many fonts have difficulties with italic characters and hinting. For +<p> +</p> +<h2><a name="why_do_italic_characters_look_as_if_clipped">Why do italic characters look as if clipped?</a></h2> +<p>Many fonts have difficulties with italic characters and hinting. For example, the otherwise very nicely hinted font <code>xft:Bitstream Vera Sans Mono</code> completely fails in it's italic face. A workaround might be to -enable freetype autohinting, i.e. like this: -</dd> -<dd> +enable freetype autohinting, i.e. like this:</p> <pre> URxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true URxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true</pre> -</dd> -<p></p> -<dt><strong><a name="item_my_input_method_wants__3csome_encoding_3e_but_i_wa">My input method wants <some encoding> but I want UTF-8, what can I do?</a></strong><br /> -</dt> -<dd> -You can specify separate locales for the input method and the rest of the -terminal, using the resource <code>imlocale</code>: -</dd> -<dd> +<p> +</p> +<h2><a name="my_input_method_wants__some_encoding__but_i_want_utf8__what_can_i_do">My input method wants <some encoding> but I want UTF-8, what can I do?</a></h2> +<p>You can specify separate locales for the input method and the rest of the +terminal, using the resource <code>imlocale</code>:</p> <pre> URxvt.imlocale: ja_JP.EUC-JP</pre> -</dd> -<dd> <p>Now you can start your terminal with <code>LC_CTYPE=ja_JP.UTF-8</code> and still use your input method. Please note, however, that you will not be able to input characters outside <code>EUC-JP</code> in a normal way then, as your input method limits you.</p> -</dd> -<p></p> -<dt><strong><a name="item_rxvt_2dunicode_crashes_when_the_x_input_method_cha">Rxvt-unicode crashes when the X Input Method changes or exits.</a></strong><br /> -</dt> -<dd> -Unfortunately, this is unavoidable, as the XIM protocol is racy by +<p> +</p> +<h2><a name="rxvtunicode_crashes_when_the_x_input_method_changes_or_exits_">Rxvt-unicode crashes when the X Input Method changes or exits.</a></h2> +<p>Unfortunately, this is unavoidable, as the XIM protocol is racy by design. Applications can avoid some crashes at the expense of memory leaks, and Input Methods can avoid some crashes by careful ordering at exit time. <strong>kinput2</strong> (and derived input methods) generally succeeds, while <strong>SCIM</strong> (or similar input methods) fails. In the end, however, -crashes cannot be completely avoided even if both sides cooperate. -</dd> -<dd> +crashes cannot be completely avoided even if both sides cooperate.</p> <p>So the only workaround is not to kill your Input Method Servers.</p> -</dd> -<p></p> -<dt><strong><a name="item_rxvt_2dunicode_uses_gobs_of_memory_2c_how_can_i_re">Rxvt-unicode uses gobs of memory, how can I reduce that?</a></strong><br /> -</dt> -<dd> -Rxvt-unicode tries to obey the rule of not charging you for something you +<p> +</p> +<h2><a name="rxvtunicode_uses_gobs_of_memory__how_can_i_reduce_that">Rxvt-unicode uses gobs of memory, how can I reduce that?</a></h2> +<p>Rxvt-unicode tries to obey the rule of not charging you for something you don't use. One thing you should try is to configure out all settings that you don't need, for example, Xft support is a resource hog by design, when used. Compiling it out ensures that no Xft font will be loaded -accidentally when rxvt-unicode tries to find a font for your characters. -</dd> -<dd> +accidentally when rxvt-unicode tries to find a font for your characters.</p> <p>Also, many people (me included) like large windows and even larger scrollback buffers: Without <code>--enable-unicode3</code>, rxvt-unicode will use 6 bytes per screen cell. For a 160x?? window this amounts to almost a kilobyte per line. A scrollback buffer of 10000 lines will then (if full) use 10 Megabytes of memory. With <code>--enable-unicode3</code> it gets worse, as rxvt-unicode then uses 8 bytes per screen cell.</p> -</dd> -<p></p> -<dt><strong><a name="item_can_i_speed_up_xft_rendering_somehow_3f">Can I speed up Xft rendering somehow?</a></strong><br /> -</dt> -<dd> -Yes, the most obvious way to speed it up is to avoid Xft entirely, as +<p> +</p> +<h2><a name="can_i_speed_up_xft_rendering_somehow">Can I speed up Xft rendering somehow?</a></h2> +<p>Yes, the most obvious way to speed it up is to avoid Xft entirely, as it is simply slow. If you still want Xft fonts you might try to disable antialiasing (by appending <code>:antialias=false</code>), which saves lots of -memory and also speeds up rendering considerably. -</dd> -<p></p> -<dt><strong><a name="item_rxvt_2dunicode_doesn_27t_seem_to_anti_2dalias_its_">Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?</a></strong><br /> -</dt> -<dd> -Rxvt-unicode will use whatever you specify as a font. If it needs to +memory and also speeds up rendering considerably.</p> +<p> +</p> +<h2><a name="rxvtunicode_doesn_t_seem_to_antialias_its_fonts__what_is_wrong">Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?</a></h2> +<p>Rxvt-unicode will use whatever you specify as a font. If it needs to fall back to it's default font search list it will prefer X11 core fonts, because they are small and fast, and then use Xft fonts. It has antialiasing disabled for most of them, because the author thinks they -look best that way. -</dd> -<dd> +look best that way.</p> <p>If you want antialiasing, you have to specify the fonts manually.</p> -</dd> -<p></p> -<dt><strong><a name="item_mouse_cut_2fpaste_suddenly_no_longer_works_2e">Mouse cut/paste suddenly no longer works.</a></strong><br /> -</dt> -<dd> -Make sure that mouse reporting is actually turned off since killing +<p> +</p> +<h2><a name="mouse_cut_paste_suddenly_no_longer_works_">Mouse cut/paste suddenly no longer works.</a></h2> +<p>Make sure that mouse reporting is actually turned off since killing some editors prematurely may leave the mouse in mouse report mode. I've heard that tcsh may use mouse reporting unless it otherwise specified. A quick check is to see if cut/paste works when the Alt or Shift keys are -depressed. -</dd> -<p></p> -<dt><strong><a name="item_what_27s_with_this_bold_2fblink_stuff_3f">What's with this bold/blink stuff?</a></strong><br /> -</dt> -<dd> -If no bold colour is set via <code>colorBD:</code>, bold will invert text using the -standard foreground colour. -</dd> -<dd> +depressed.</p> +<p> +</p> +<h2><a name="what_s_with_this_bold_blink_stuff">What's with this bold/blink stuff?</a></h2> +<p>If no bold colour is set via <code>colorBD:</code>, bold will invert text using the +standard foreground colour.</p> <p>For the standard background colour, blinking will actually make the text blink when compiled with <code>--enable-blinking</code>. with standard colours. Without <code>--enable-blinking</code>, the blink attribute will be ignored.</p> -</dd> -<dd> <p>On ANSI colours, bold/blink attributes are used to set high-intensity foreground/background colors.</p> -</dd> -<dd> <p>color0-7 are the low-intensity colors.</p> -</dd> -<dd> <p>color8-15 are the corresponding high-intensity colors.</p> -</dd> -<p></p> -<dt><strong><a name="item_i_don_27t_like_the_screen_colors_2e_how_do_i_chang">I don't like the screen colors. How do I change them?</a></strong><br /> -</dt> -<dd> -You can change the screen colors at run-time using <em>~/.Xdefaults</em> -resources (or as long-options). -</dd> -<dd> +<p> +</p> +<h2><a name="i_don_t_like_the_screen_colors__how_do_i_change_them">I don't like the screen colors. How do I change them?</a></h2> +<p>You can change the screen colors at run-time using <em>~/.Xdefaults</em> +resources (or as long-options).</p> <p>Here are values that are supposed to resemble a VGA screen, including the murky brown that passes for low-intensity yellow:</p> -</dd> -<dd> <pre> URxvt.color0: #000000 URxvt.color1: #A80000 @@ -1061,8 +819,6 @@ including the murky brown that passes for low-intensity yellow:</p> URxvt.color5: #A800A8 URxvt.color6: #00A8A8 URxvt.color7: #A8A8A8</pre> -</dd> -<dd> <pre> URxvt.color8: #000054 URxvt.color9: #FF0054 @@ -1072,12 +828,8 @@ including the murky brown that passes for low-intensity yellow:</p> URxvt.color13: #FF00FF URxvt.color14: #00FFFF URxvt.color15: #FFFFFF</pre> -</dd> -<dd> <p>And here is a more complete set of non-standard colors described (not by me) as ``pretty girly''.</p> -</dd> -<dd> <pre> URxvt.cursorColor: #dc74d1 URxvt.pointerColor: #dc74d1 @@ -1097,102 +849,64 @@ me) as ``pretty girly''.</p> URxvt.color14: #73f7ff URxvt.color7: #e1dddd URxvt.color15: #e1dddd</pre> -</dd> -<p></p> -<dt><strong><a name="item_how_can_i_start_rxvtd_in_a_race_2dfree_way_3f">How can I start rxvtd in a race-free way?</a></strong><br /> -</dt> -<dd> -Try <code>rxvtd -f -o</code>, which tells rxvtd to open the -display, create the listening socket and then fork. -</dd> -<p></p> -<dt><strong><a name="item_what_27s_with_the_strange_backspace_2fdelete_key_b">What's with the strange Backspace/Delete key behaviour?</a></strong><br /> -</dt> -<dd> -Assuming that the physical Backspace key corresponds to the +<p> +</p> +<h2><a name="how_can_i_start_rxvtd_in_a_racefree_way">How can I start rxvtd in a race-free way?</a></h2> +<p>Try <code>rxvtd -f -o</code>, which tells rxvtd to open the +display, create the listening socket and then fork.</p> +<p> +</p> +<h2><a name="what_s_with_the_strange_backspace_delete_key_behaviour">What's with the strange Backspace/Delete key behaviour?</a></h2> +<p>Assuming that the physical Backspace key corresponds to the BackSpace keysym (not likely for Linux ... see the following question) there are two standard values that can be used for -Backspace: <code>^H</code> and <code>^?</code>. -</dd> -<dd> +Backspace: <code>^H</code> and <code>^?</code>.</p> <p>Historically, either value is correct, but rxvt-unicode adopts the debian policy of using <code>^?</code> when unsure, because it's the one only only correct choice :).</p> -</dd> -<dd> <p>Rxvt-unicode tries to inherit the current stty settings and uses the value of `erase' to guess the value for backspace. If rxvt-unicode wasn't started from a terminal (say, from a menu or by remote shell), then the system value of `erase', which corresponds to CERASE in <termios.h>, will be used (which may not be the same as your stty setting).</p> -</dd> -<dd> <p>For starting a new rxvt-unicode:</p> -</dd> -<dd> <pre> # use Backspace = ^H $ stty erase ^H $ rxvt</pre> -</dd> -<dd> <pre> # use Backspace = ^? $ stty erase ^? $ rxvt</pre> -</dd> -<dd> <p>Toggle with <code>ESC [ 36 h</code> / <code>ESC [ 36 l</code>.</p> -</dd> -<dd> <p>For an existing rxvt-unicode:</p> -</dd> -<dd> <pre> # use Backspace = ^H $ stty erase ^H $ echo -n "^[[36h"</pre> -</dd> -<dd> <pre> # use Backspace = ^? $ stty erase ^? $ echo -n "^[[36l"</pre> -</dd> -<dd> <p>This helps satisfy some of the Backspace discrepancies that occur, but if you use Backspace = <code>^H</code>, make sure that the termcap/terminfo value properly reflects that.</p> -</dd> -<dd> <p>The Delete key is a another casualty of the ill-defined Backspace problem. To avoid confusion between the Backspace and Delete keys, the Delete key has been assigned an escape sequence to match the vt100 for Execute (<code>ESC [ 3 ~</code>) and is in the supplied termcap/terminfo.</p> -</dd> -<dd> <p>Some other Backspace problems:</p> -</dd> -<dd> <p>some editors use termcap/terminfo, some editors (vim I'm told) expect Backspace = ^H, GNU Emacs (and Emacs-like editors) use ^H for help.</p> -</dd> -<dd> <p>Perhaps someday this will all be resolved in a consistent manner.</p> -</dd> -<p></p> -<dt><strong><a name="item_i_don_27t_like_the_key_2dbindings_2e_how_do_i_chan">I don't like the key-bindings. How do I change them?</a></strong><br /> -</dt> -<dd> -There are some compile-time selections available via configure. Unless +<p> +</p> +<h2><a name="i_don_t_like_the_keybindings__how_do_i_change_them">I don't like the key-bindings. How do I change them?</a></h2> +<p>There are some compile-time selections available via configure. Unless you have run ``configure'' with the <a href="#item__2d_2ddisable_2dresources"><code>--disable-resources</code></a> option you can -use the `keysym' resource to alter the keystrings associated with keysyms. -</dd> -<dd> +use the `keysym' resource to alter the keystrings associated with keysyms.</p> <p>Here's an example for a URxvt session started using <code>rxvt -name URxvt</code></p> -</dd> -<dd> <pre> URxvt.keysym.Home: \033[1~ URxvt.keysym.End: \033[4~ @@ -1214,16 +928,12 @@ use the `keysym' resource to alter the keystrings associated with keysyms. URxvt.keysym.M-C-0: list \033<M-C- 0123456789 > URxvt.keysym.M-C-a: list \033<M-C- abcdefghijklmnopqrstuvwxyz > URxvt.keysym.F12: command:\033]701;zh_CN.GBK\007</pre> -</dd> -<dd> <p>See some more examples in the documentation for the <strong>keysym</strong> resource.</p> -</dd> -<p></p> -<dt><strong><a name="item_i_27m_using_keyboard_model_xxx_that_has_extra_prio">I'm using keyboard model XXX that has extra Prior/Next/Insert keys. +<p> +</p> +<h2><a name="i_m_using_keyboard_model_xxx_that_has_extra_prior_next_insert_keys__how_do_i_make_use_of_them_for_example__the_sun_keyboard_type_4_has_the_following_mappings_that_rxvtunicode_doesn_t_recognize_">I'm using keyboard model XXX that has extra Prior/Next/Insert keys. How do I make use of them? For example, the Sun Keyboard type 4 -has the following mappings that rxvt-unicode doesn't recognize.</a></strong><br /> -</dt> -<dd> +has the following mappings that rxvt-unicode doesn't recognize.</a></h2> <pre> KP_Insert == Insert F22 == Print @@ -1231,37 +941,28 @@ has the following mappings that rxvt-unicode doesn't recognize.</a></strong><br F29 == Prior F33 == End F35 == Next</pre> -</dd> -<dd> <p>Rather than have rxvt-unicode try to accommodate all the various possible keyboard mappings, it is better to use `xmodmap' to remap the keys as required for your particular machine.</p> -</dd> -<dt><strong><a name="item_how_do_i_distinguish_wether_i_27m_running_rxvt_2du">How do I distinguish wether I'm running rxvt-unicode or a regular xterm? -I need this to decide about setting colors etc.</a></strong><br /> -</dt> -<dd> -rxvt and rxvt-unicode always export the variable ``COLORTERM'', so you can +<p> +</p> +<h2><a name="how_do_i_distinguish_wether_i_m_running_rxvtunicode_or_a_regular_xterm_i_need_this_to_decide_about_setting_colors_etc_">How do I distinguish wether I'm running rxvt-unicode or a regular xterm? +I need this to decide about setting colors etc.</a></h2> +<p>rxvt and rxvt-unicode always export the variable ``COLORTERM'', so you can check and see if that is set. Note that several programs, JED, slrn, Midnight Commander automatically check this variable to decide whether or -not to use color. -</dd> -<p></p> -<dt><strong><a name="item_how_do_i_set_the_correct_2c_full_ip_address_for_th">How do I set the correct, full IP address for the DISPLAY variable?</a></strong><br /> -</dt> -<dd> -If you've compiled rxvt-unicode with DISPLAY_IS_IP and have enabled +not to use color.</p> +<p> +</p> +<h2><a name="how_do_i_set_the_correct__full_ip_address_for_the_display_variable">How do I set the correct, full IP address for the DISPLAY variable?</a></h2> +<p>If you've compiled rxvt-unicode with DISPLAY_IS_IP and have enabled insecure mode then it is possible to use the following shell script snippets to correctly set the display. If your version of rxvt-unicode wasn't also compiled with ESCZ_ANSWER (as assumed in these snippets) then the COLORTERM variable can be used to distinguish rxvt-unicode from a -regular xterm. -</dd> -<dd> +regular xterm.</p> <p>Courtesy of Chuck Blake <<a href="mailto:cblake@BBN.COM">cblake@BBN.COM</a>> with the following shell script snippets:</p> -</dd> -<dd> <pre> # Bourne/Korn/POSIX family of shells: [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know @@ -1275,24 +976,18 @@ snippets:</p> read DISPLAY # set it in our local shell fi fi</pre> -</dd> -<p></p> -<dt><strong><a name="item_how_do_i_compile_the_manual_pages_for_myself_3f">How do I compile the manual pages for myself?</a></strong><br /> -</dt> -<dd> -You need to have a recent version of perl installed as <em>/usr/bin/perl</em>, +<p> +</p> +<h2><a name="how_do_i_compile_the_manual_pages_for_myself">How do I compile the manual pages for myself?</a></h2> +<p>You need to have a recent version of perl installed as <em>/usr/bin/perl</em>, one that comes with <em>pod2man</em>, <em>pod2text</em> and <em>pod2html</em>. Then go to -the doc subdirectory and enter <code>make alldoc</code>. -</dd> -<p></p> -<dt><strong><a name="item_my_question_isn_27t_answered_here_2c_can_i_ask_a_h">My question isn't answered here, can I ask a human?</a></strong><br /> -</dt> -<dd> -Before sending me mail, you could go to IRC: <code>irc.freenode.net</code>, +the doc subdirectory and enter <code>make alldoc</code>.</p> +<p> +</p> +<h2><a name="my_question_isn_t_answered_here__can_i_ask_a_human">My question isn't answered here, can I ask a human?</a></h2> +<p>Before sending me mail, you could go to IRC: <code>irc.freenode.net</code>, channel <code>#rxvt-unicode</code> has some rxvt-unicode enthusiasts that might be -interested in learning about new and exciting problems (but not FAQs :). -</dd> -<p></p></dl> +interested in learning about new and exciting problems (but not FAQs :).</p> <p> </p> <hr /> diff --git a/doc/rxvt.7.man.in b/doc/rxvt.7.man.in
--- a/doc/rxvt.7.man.in +++ b/doc/rxvt.7.man.in @@ -159,8 +159,8 @@ The newest version of this document is also available on the World Wide Web at .IX Header "FREQUENTLY ASKED QUESTIONS" .Sh "The new selection selects pieces that are too big, how can I select single words?" .IX Subsection "The new selection selects pieces that are too big, how can I select single words?" -Yes. For example, if you want to select alphanumeric words, you can use -the following resource: +If you want to select e.g. alphanumeric words, you can use the following +setting: .PP .Vb 1 \& URxvt.selection.pattern-0: ([[:word:]]+) @@ -177,125 +177,123 @@ To get a selection that is very similar to the old code, try this pattern: .PP Please also note that the \fILeftClick Shift-LeftClik\fR combination also selects words like the old code. -.IP "I don't like the new selection/popups/hotkeys/perl, how do I change/disable it?" 4 -.IX Item "I don't like the new selection/popups/hotkeys/perl, how do I change/disable it?" +.Sh "I don't like the new selection/popups/hotkeys/perl, how do I change/disable it?" +.IX Subsection "I don't like the new selection/popups/hotkeys/perl, how do I change/disable it?" You can disable the perl extension completely by setting the \&\fBperl-ext-common\fR resource to the empty string, which also keeps rxvt-unicode from initialising perl, saving memory. -.Sp +.PP If you only want to disable specific features, you first have to identify which perl extension is responsible. For this, read the section \&\fB\s-1PREPACKAGED\s0 \s-1EXTENSIONS\s0\fR in the @@RXVT_NAME@@\fIperl\fR\|(3) manpage. For example, to disable the \fBselection-popup\fR and \fBoption-popup\fR, specify this \fBperl-ext-common\fR resource: -.Sp +.PP .Vb 1 \& URxvt.perl-ext-common: default,-selection-popup,-option-popup .Ve -.Sp +.PP This will keep the default extensions, but disable the two popup extensions. Some extensions can also be configured, for example, scrollback search mode is triggered by \fBM\-s\fR. You can move it to any other combination either by setting the \fBsearchable-scrollback\fR resource: -.Sp +.PP .Vb 1 \& URxvt.searchable-scrollback: CM-s .Ve -.IP "The cursor moves when selecting text in the current input line, how do I switch this off?" 4 -.IX Item "The cursor moves when selecting text in the current input line, how do I switch this off?" -.PD 0 -.IP "During rlogin/ssh/telnet/etc. sessions, clicking near the cursor outputs strange escape sequences, how do I fix this?" 4 -.IX Item "During rlogin/ssh/telnet/etc. sessions, clicking near the cursor outputs strange escape sequences, how do I fix this?" -.PD +.Sh "The cursor moves when selecting text in the current input line, how do I switch this off?" +.IX Subsection "The cursor moves when selecting text in the current input line, how do I switch this off?" +.Sh "During rlogin/ssh/telnet/etc. sessions, clicking near the cursor outputs strange escape sequences, how do I fix this?" +.IX Subsection "During rlogin/ssh/telnet/etc. sessions, clicking near the cursor outputs strange escape sequences, how do I fix this?" These are caused by the \f(CW\*(C`readline\*(C'\fR perl extension. Under normal circumstances, it will move your cursor around when you click into the line that contains it. It tries hard not to do this at the wrong moment, but when running a program that doesn't parse cursor movements or in some cases during rlogin sessions, it fails to detect this properly. -.Sp +.PP You can permamently switch this feature off by disabling the \f(CW\*(C`readline\*(C'\fR extension: -.Sp +.PP .Vb 1 \& URxvt.perl-ext-common: default,-readline .Ve -.IP "Why doesn't rxvt-unicode read my resources?" 4 -.IX Item "Why doesn't rxvt-unicode read my resources?" +.Sh "Why doesn't rxvt-unicode read my resources?" +.IX Subsection "Why doesn't rxvt-unicode read my resources?" Well, why, indeed? It does, in a way very similar to other X applications. Most importantly, this means that if you or your \s-1OS\s0 loads resources into the X display (the right way to do it), rxvt-unicode will ignore any resource files in your home directory. It will only read \&\fI$HOME/.Xdefaults\fR when no resources are attached to the display. -.Sp +.PP If you have or use an \fI$HOME/.Xresources\fR file, chances are that resources are loaded into your X\-server. In this case, you have to re-login after every change (or run \fIxrdb \-merge \f(CI$HOME\fI/.Xresources\fR). -.Sp +.PP Also consider the form resources have to use: -.Sp +.PP .Vb 1 \& URxvt.resource: value .Ve -.Sp +.PP If you want to use another form (there are lots of different ways of specifying resources), make sure you understand wether and why it works. If unsure, use the form above. -.IP "I can't get transparency working, what am I doing wrong?" 4 -.IX Item "I can't get transparency working, what am I doing wrong?" +.Sh "I can't get transparency working, what am I doing wrong?" +.IX Subsection "I can't get transparency working, what am I doing wrong?" First of all, transparency isn't officially supported in rxvt\-unicode, so you are mostly on your own. Do not bug the author about it (but you may bug everybody else). Also, if you can't get it working consider it a rite of passage: ... and you failed. -.Sp +.PP Here are four ways to get transparency. \fBDo\fR read the manpage and option descriptions for the programs mentioned and rxvt\-unicode. Really, do it! -.Sp +.PP 1. Use inheritPixmap: -.Sp +.PP .Vb 2 \& Esetroot wallpaper.jpg \& @@RXVT_NAME@@ -ip -tint red -sh 40 .Ve -.Sp +.PP That works. If you think it doesn't, you lack transparency and tinting support, or you are unable to read. -.Sp +.PP 2. Use a simple pixmap and emulate pseudo\-transparency. This enables you to use effects other than tinting and shading: Just shade/tint/whatever your picture with gimp: -.Sp +.PP .Vb 2 \& convert wallpaper.jpg -blur 20x20 -modulate 30 background.xpm \& @@RXVT_NAME@@ -pixmap background.xpm -pe automove-background .Ve -.Sp +.PP That works. If you think it doesn't, you lack \s-1XPM\s0 and Perl support, or you are unable to read. -.Sp +.PP 3. Use an \s-1ARGB\s0 visual: -.Sp +.PP .Vb 1 \& @@RXVT_NAME@@ -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc .Ve -.Sp +.PP This requires \s-1XFT\s0 support, and the support of your X\-server. If that doesn't work for you, blame Xorg and Keith Packard. \s-1ARGB\s0 visuals aren't there yet, no matter what they claim. Rxvt-Unicode contains the neccessary bugfixes and workarounds for Xft and Xlib to make it work, but that doesn't mean that your \s-1WM\s0 has the required kludges in place. -.Sp +.PP 4. Use xcompmgr and let it do the job: -.Sp +.PP .Vb 2 \& xprop -frame -f _NET_WM_WINDOW_OPACITY 32c \e \& -set _NET_WM_WINDOW_OPACITY 0xc0000000 .Ve -.Sp +.PP Then click on a window you want to make transparent. Replace \f(CW0xc0000000\fR by other values to change the degree of opacity. If it doesn't work and your server crashes, you got to keep the pieces. -.IP "Isn't rxvt supposed to be small? Don't all those features bloat?" 4 -.IX Item "Isn't rxvt supposed to be small? Don't all those features bloat?" +.Sh "Isn't rxvt supposed to be small? Don't all those features bloat?" +.IX Subsection "Isn't rxvt supposed to be small? Don't all those features bloat?" I often get asked about this, and I think, no, they didn't cause extra bloat. If you compare a minimal rxvt and a minimal urxvt, you can see that the urxvt binary is larger (due to some encoding tables always being @@ -303,23 +301,23 @@ compiled in), but it actually uses less memory (\s-1RSS\s0) after startup. Even with \f(CW\*(C`\-\-disable\-everything\*(C'\fR, this comparison is a bit unfair, as many features unique to urxvt (locale, encoding conversion, iso14755 etc.) are already in use in this mode. -.Sp +.PP .Vb 3 \& text data bss drs rss filename \& 98398 1664 24 15695 1824 rxvt --disable-everything \& 188985 9048 66616 18222 1788 urxvt --disable-everything .Ve -.Sp +.PP When you \f(CW\*(C`\-\-enable\-everything\*(C'\fR (which _is_ unfair, as this involves xft and full locale/XIM support which are quite bloaty inside libX11 and my libc), the two diverge, but not unreasnobaly so. -.Sp +.PP .Vb 3 \& text data bss drs rss filename \& 163431 2152 24 20123 2060 rxvt --enable-everything \& 1035683 49680 66648 29096 3680 urxvt --enable-everything .Ve -.Sp +.PP The very large size of the text section is explained by the east-asian encoding tables, which, if unused, take up disk space but nothing else and can be compiled out unless you rely on X11 core fonts that use those @@ -328,44 +326,44 @@ compiler allocates (but of course doesn't use unless you are out of memory). Also, using an xft font instead of a core font immediately adds a few megabytes of \s-1RSS\s0. Xft indeed is responsible for a lot of \s-1RSS\s0 even when not used. -.Sp +.PP Of course, due to every character using two or four bytes instead of one, a large scrollback buffer will ultimately make rxvt-unicode use more memory. -.Sp +.PP Compared to e.g. Eterm (5112k), aterm (3132k) and xterm (4680k), this still fares rather well. And compared to some monsters like gnome-terminal (21152k + extra 4204k in separate processes) or konsole (22200k + extra 43180k in daemons that stay around after exit, plus half a minute of startup time, including the hundreds of warnings it spits out), it fares extremely well *g*. -.IP "Why \*(C+, isn't that unportable/bloated/uncool?" 4 -.IX Item "Why , isn't that unportable/bloated/uncool?" +.Sh "Why \*(C+, isn't that unportable/bloated/uncool?" +.IX Subsection "Why , isn't that unportable/bloated/uncool?" Is this a question? :) It comes up very often. The simple answer is: I had to write it, and \*(C+ allowed me to write and maintain it in a fraction of the time and effort (which is a scarce resource for me). Put even shorter: It simply wouldn't exist without \*(C+. -.Sp +.PP My personal stance on this is that \*(C+ is less portable than C, but in the case of rxvt-unicode this hardly matters, as its portability limits are defined by things like X11, pseudo terminals, locale support and unix domain sockets, which are all less portable than \*(C+ itself. -.Sp +.PP Regarding the bloat, see the above question: It's easy to write programs in C that use gobs of memory, an certainly possible to write programs in \&\*(C+ that don't. \*(C+ also often comes with large libraries, but this is not necessarily the case with \s-1GCC\s0. Here is what rxvt links against on my system with a minimal config: -.Sp +.PP .Vb 4 \& libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) \& libc.so.6 => /lib/libc.so.6 (0x00002aaaaadde000) \& libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab01d000) \& /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) .Ve -.Sp +.PP And here is rxvt\-unicode: -.Sp +.PP .Vb 5 \& libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) \& libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaaada2000) @@ -373,36 +371,36 @@ And here is rxvt\-unicode: \& libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab0ee000) \& /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) .Ve -.Sp +.PP No large bloated libraries (of course, none were linked in statically), except maybe libX11 :) -.IP "Does it support tabs, can I have a tabbed rxvt\-unicode?" 4 -.IX Item "Does it support tabs, can I have a tabbed rxvt-unicode?" +.Sh "Does it support tabs, can I have a tabbed rxvt\-unicode?" +.IX Subsection "Does it support tabs, can I have a tabbed rxvt-unicode?" Beginning with version 7.3, there is a perl extension that implements a simple tabbed terminal. It is installed by default, so any of these should give you tabs: -.Sp +.PP .Vb 1 \& @@RXVT_NAME@@ -pe tabbed .Ve -.Sp +.PP .Vb 1 \& URxvt.perl-ext-common: default,tabbed .Ve -.Sp +.PP It will also work fine with tabbing functionality of many window managers or similar tabbing programs, and its embedding-features allow it to be embedded into other programs, as witnessed by \fIdoc/rxvt\-tabbed\fR or the upcoming \f(CW\*(C`Gtk2::URxvt\*(C'\fR perl module, which features a tabbed urxvt (murxvt) terminal as an example embedding application. -.IP "How do I know which rxvt-unicode version I'm using?" 4 -.IX Item "How do I know which rxvt-unicode version I'm using?" +.Sh "How do I know which rxvt-unicode version I'm using?" +.IX Subsection "How do I know which rxvt-unicode version I'm using?" The version number is displayed with the usage (\-h). Also the escape sequence \f(CW\*(C`ESC [ 8 n\*(C'\fR sets the window title to the version number. When using the @@RXVT_NAME@@c client, the version displayed is that of the daemon. -.IP "I am using Debian GNU/Linux and have a problem..." 4 -.IX Item "I am using Debian GNU/Linux and have a problem..." +.Sh "I am using Debian GNU/Linux and have a problem..." +.IX Subsection "I am using Debian GNU/Linux and have a problem..." The Debian GNU/Linux package of rxvt-unicode in sarge contains large patches that considerably change the behaviour of rxvt-unicode (but unfortunately this notice has been removed). Before reporting a bug to @@ -411,104 +409,102 @@ version (<http://software.schmorp.de#rxvt\-unicode>) and try to reproduce the problem. If you cannot, chances are that the problems are specific to Debian GNU/Linux, in which case it should be reported via the Debian Bug Tracking System (use \f(CW\*(C`reportbug\*(C'\fR to report the bug). -.Sp +.PP For other problems that also affect the Debian package, you can and probably should use the Debian \s-1BTS\s0, too, because, after all, it's also a bug in the Debian version and it serves as a reminder for other users that might encounter the same issue. -.IP "I am maintaining rxvt-unicode for distribution/OS \s-1XXX\s0, any recommendation?" 4 -.IX Item "I am maintaining rxvt-unicode for distribution/OS XXX, any recommendation?" +.Sh "I am maintaining rxvt-unicode for distribution/OS \s-1XXX\s0, any recommendation?" +.IX Subsection "I am maintaining rxvt-unicode for distribution/OS XXX, any recommendation?" You should build one binary with the default options. \fIconfigure\fR now enables most useful options, and the trend goes to making them runtime\-switchable, too, so there is usually no drawback to enbaling them, except higher disk and possibly memory usage. The perl interpreter should be enabled, as important functionality (menus, selection, likely more in the future) depends on it. -.Sp +.PP You should not overwrite the \f(CW\*(C`perl\-ext\-common\*(C'\fR snd \f(CW\*(C`perl\-ext\*(C'\fR resources system-wide (except maybe with \f(CW\*(C`defaults\*(C'\fR). This will result in useful behaviour. If your distribution aims at low memory, add an empty \&\f(CW\*(C`perl\-ext\-common\*(C'\fR resource to the app-defaults file. This will keep the perl interpreter disabled until the user enables it. -.Sp +.PP If you can/want build more binaries, I recommend building a minimal one with \f(CW\*(C`\-\-disable\-everything\*(C'\fR (very useful) and a maximal one with \&\f(CW\*(C`\-\-enable\-everything\*(C'\fR (less useful, it will be very big due to a lot of encodings built-in that increase download times and are rarely used). -.IP "I need to make it setuid/setgid to support utmp/ptys on my \s-1OS\s0, is this safe?" 4 -.IX Item "I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe?" +.Sh "I need to make it setuid/setgid to support utmp/ptys on my \s-1OS\s0, is this safe?" +.IX Subsection "I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe?" It should be, starting with release 7.1. You are encouraged to properly install urxvt with privileges necessary for your \s-1OS\s0 now. -.Sp +.PP When rxvt-unicode detects that it runs setuid or setgid, it will fork into a helper process for privileged operations (pty handling on some systems, utmp/wtmp/lastlog handling on others) and drop privileges immediately. This is much safer than most other terminals that keep privileges while running (but is more relevant to urxvt, as it contains things as perl interpreters, which might be \*(L"helpful\*(R" to attackers). -.Sp +.PP This forking is done as the very first within \fImain()\fR, which is very early and reduces possible bugs to initialisation code run before \fImain()\fR, or things like the dynamic loader of your system, which should result in very little risk. -.IP "When I log-in to another system it tells me about missing terminfo data?" 4 -.IX Item "When I log-in to another system it tells me about missing terminfo data?" +.Sh "When I log-in to another system it tells me about missing terminfo data?" +.IX Subsection "When I log-in to another system it tells me about missing terminfo data?" The terminal description used by rxvt-unicode is not as widely available as that for xterm, or even rxvt (for which the same problem often arises). -.Sp +.PP The correct solution for this problem is to install the terminfo, this can be done like this (with ncurses' infocmp): -.Sp +.PP .Vb 2 \& REMOTE=remotesystem.domain \& infocmp rxvt-unicode | ssh $REMOTE "cat >/tmp/ti && tic /tmp/ti" .Ve -.Sp +.PP \&... or by installing rxvt-unicode normally on the remote system, -.Sp +.PP If you cannot or do not want to do this, then you can simply set \&\f(CW\*(C`TERM=rxvt\*(C'\fR or even \f(CW\*(C`TERM=xterm\*(C'\fR, and live with the small number of problems arising, which includes wrong keymapping, less and different colours and some refresh errors in fullscreen applications. It's a nice quick-and-dirty workaround for rare cases, though. -.Sp +.PP If you always want to do this (and are fine with the consequences) you can either recompile rxvt-unicode with the desired \s-1TERM\s0 value or use a resource to set it: -.Sp +.PP .Vb 1 \& URxvt.termName: rxvt .Ve -.Sp +.PP If you don't plan to use \fBrxvt\fR (quite common...) you could also replace the rxvt terminfo file with the rxvt-unicode one. -.ie n .IP """tic"" outputs some error when compiling the terminfo entry." 4 -.el .IP "\f(CWtic\fR outputs some error when compiling the terminfo entry." 4 -.IX Item "tic outputs some error when compiling the terminfo entry." +.ie n .Sh """tic"" outputs some error when compiling the terminfo entry." +.el .Sh "\f(CWtic\fP outputs some error when compiling the terminfo entry." +.IX Subsection "tic outputs some error when compiling the terminfo entry." Most likely it's the empty definition for \f(CW\*(C`enacs=\*(C'\fR. Just replace it by \&\f(CW\*(C`enacs=\eE[0@\*(C'\fR and try again. -.ie n .IP """bash""'s readline does not work correctly under @@RXVT_NAME@@." 4 -.el .IP "\f(CWbash\fR's readline does not work correctly under @@RXVT_NAME@@." 4 -.IX Item "bash's readline does not work correctly under @@RXVT_NAME@@." -.PD 0 -.IP "I need a termcap file entry." 4 -.IX Item "I need a termcap file entry." -.PD +.ie n .Sh """bash""'s readline does not work correctly under @@RXVT_NAME@@." +.el .Sh "\f(CWbash\fP's readline does not work correctly under @@RXVT_NAME@@." +.IX Subsection "bash's readline does not work correctly under @@RXVT_NAME@@." +.Sh "I need a termcap file entry." +.IX Subsection "I need a termcap file entry." One reason you might want this is that some distributions or operating systems still compile some programs using the long-obsoleted termcap library (Fedora Core's bash is one example) and rely on a termcap entry for \f(CW\*(C`rxvt\-unicode\*(C'\fR. -.Sp +.PP You could use rxvt's termcap entry with resonable results in many cases. You can also create a termcap entry by using terminfo's infocmp program like this: -.Sp +.PP .Vb 1 \& infocmp -C rxvt-unicode .Ve -.Sp +.PP Or you could use this termcap entry, generated by the command above: -.Sp +.PP .Vb 20 \& rxvt-unicode|rxvt-unicode terminal (X Window System):\e \& :am:bw:eo:km:mi:ms:xn:xo:\e @@ -531,33 +527,31 @@ Or you could use this termcap entry, generated by the command above: \& :us=\eE[4m:vb=\eE[?5h\eE[?5l:ve=\eE[?25h:vi=\eE[?25l:\e \& :vs=\eE[?25h: .Ve -.ie n .IP "Why does ""ls"" no longer have coloured output?" 4 -.el .IP "Why does \f(CWls\fR no longer have coloured output?" 4 -.IX Item "Why does ls no longer have coloured output?" +.ie n .Sh "Why does ""ls"" no longer have coloured output?" +.el .Sh "Why does \f(CWls\fP no longer have coloured output?" +.IX Subsection "Why does ls no longer have coloured output?" The \f(CW\*(C`ls\*(C'\fR in the \s-1GNU\s0 coreutils unfortunately doesn't use terminfo to decide wether a terminal has colour, but uses it's own configuration file. Needless to say, \f(CW\*(C`rxvt\-unicode\*(C'\fR is not in it's default file (among with most other terminals supporting colour). Either add: -.Sp +.PP .Vb 1 \& TERM rxvt-unicode .Ve -.Sp +.PP to \f(CW\*(C`/etc/DIR_COLORS\*(C'\fR or simply add: -.Sp +.PP .Vb 1 \& alias ls='ls --color=auto' .Ve -.Sp +.PP to your \f(CW\*(C`.profile\*(C'\fR or \f(CW\*(C`.bashrc\*(C'\fR. -.IP "Why doesn't vim/emacs etc. use the 88 colour mode?" 4 -.IX Item "Why doesn't vim/emacs etc. use the 88 colour mode?" -.PD 0 -.IP "Why doesn't vim/emacs etc. make use of italic?" 4 -.IX Item "Why doesn't vim/emacs etc. make use of italic?" -.IP "Why are the secondary screen-related options not working properly?" 4 -.IX Item "Why are the secondary screen-related options not working properly?" -.PD +.Sh "Why doesn't vim/emacs etc. use the 88 colour mode?" +.IX Subsection "Why doesn't vim/emacs etc. use the 88 colour mode?" +.Sh "Why doesn't vim/emacs etc. make use of italic?" +.IX Subsection "Why doesn't vim/emacs etc. make use of italic?" +.Sh "Why are the secondary screen-related options not working properly?" +.IX Subsection "Why are the secondary screen-related options not working properly?" Make sure you are using \f(CW\*(C`TERM=rxvt\-unicode\*(C'\fR. Some pre-packaged distributions (most notably Debian GNU/Linux) break rxvt-unicode by setting \f(CW\*(C`TERM\*(C'\fR to \f(CW\*(C`rxvt\*(C'\fR, which doesn't have these extra @@ -566,86 +560,82 @@ GNU/Linux) furthermore fail to even install the \f(CW\*(C`rxvt\-unicode\*(C'\fR file, so you will need to install it on your own (See the question \fBWhen I log-in to another system it tells me about missing terminfo data?\fR on how to do this). -.IP "My numerical keypad acts weird and generates differing output?" 4 -.IX Item "My numerical keypad acts weird and generates differing output?" +.Sh "My numerical keypad acts weird and generates differing output?" +.IX Subsection "My numerical keypad acts weird and generates differing output?" Some Debian GNUL/Linux users seem to have this problem, although no specific details were reported so far. It is possible that this is caused by the wrong \f(CW\*(C`TERM\*(C'\fR setting, although the details of wether and how this can happen are unknown, as \f(CW\*(C`TERM=rxvt\*(C'\fR should offer a compatible keymap. See the answer to the previous question, and please report if that helped. -.IP "Rxvt-unicode does not seem to understand the selected encoding?" 4 -.IX Item "Rxvt-unicode does not seem to understand the selected encoding?" -.PD 0 -.IP "Unicode does not seem to work?" 4 -.IX Item "Unicode does not seem to work?" -.PD +.Sh "Rxvt-unicode does not seem to understand the selected encoding?" +.IX Subsection "Rxvt-unicode does not seem to understand the selected encoding?" +.Sh "Unicode does not seem to work?" +.IX Subsection "Unicode does not seem to work?" If you encounter strange problems like typing an accented character but getting two unrelated other characters or similar, or if program output is subtly garbled, then you should check your locale settings. -.Sp +.PP Rxvt-unicode must be started with the same \f(CW\*(C`LC_CTYPE\*(C'\fR setting as the programs. Often rxvt-unicode is started in the \f(CW\*(C`C\*(C'\fR locale, while the login script running within the rxvt-unicode window changes the locale to something else, e.g. \f(CW\*(C`en_GB.UTF\-8\*(C'\fR. Needless to say, this is not going to work. -.Sp +.PP The best thing is to fix your startup environment, as you will likely run into other problems. If nothing works you can try this in your .profile. -.Sp +.PP .Vb 1 \& printf '\ee]701;%s\e007' "$LC_CTYPE" .Ve -.Sp +.PP If this doesn't work, then maybe you use a \f(CW\*(C`LC_CTYPE\*(C'\fR specification not supported on your systems. Some systems have a \f(CW\*(C`locale\*(C'\fR command which displays this (also, \f(CW\*(C`perl \-e0\*(C'\fR can be used to check locale settings, as it will complain loudly if it cannot set the locale). If it displays something like: -.Sp +.PP .Vb 1 \& locale: Cannot set LC_CTYPE to default locale: ... .Ve -.Sp +.PP Then the locale you specified is not supported on your system. -.Sp +.PP If nothing works and you are sure that everything is set correctly then you will need to remember a little known fact: Some programs just don't support locales :( -.IP "Why do some characters look so much different than others?" 4 -.IX Item "Why do some characters look so much different than others?" -.PD 0 -.IP "How does rxvt-unicode choose fonts?" 4 -.IX Item "How does rxvt-unicode choose fonts?" -.PD +.Sh "Why do some characters look so much different than others?" +.IX Subsection "Why do some characters look so much different than others?" +.Sh "How does rxvt-unicode choose fonts?" +.IX Subsection "How does rxvt-unicode choose fonts?" Most fonts do not contain the full range of Unicode, which is fine. Chances are that the font you (or the admin/package maintainer of your system/os) have specified does not cover all the characters you want to display. -.Sp +.PP \&\fBrxvt-unicode\fR makes a best-effort try at finding a replacement font. Often the result is fine, but sometimes the chosen font looks bad/ugly/wrong. Some fonts have totally strange characters that don't resemble the correct glyph at all, and rxvt-unicode lacks the artificial intelligence to detect that a specific glyph is wrong: it has to believe the font that the characters it claims to contain indeed look correct. -.Sp +.PP In that case, select a font of your taste and add it to the font list, e.g.: -.Sp +.PP .Vb 1 \& @@RXVT_NAME@@ -fn basefont,font2,font3... .Ve -.Sp +.PP When rxvt-unicode sees a character, it will first look at the base font. If the base font does not contain the character, it will go to the next font, and so on. Specifying your own fonts will also speed up this search and use less resources within rxvt-unicode and the X\-server. -.Sp +.PP The only limitation is that none of the fonts may be larger than the base font, as the base font defines the terminal character cell size, which must be the same due to the way terminals work. -.IP "Why do some chinese characters look so different than others?" 4 -.IX Item "Why do some chinese characters look so different than others?" +.Sh "Why do some chinese characters look so different than others?" +.IX Subsection "Why do some chinese characters look so different than others?" This is because there is a difference between script and language \*(-- rxvt-unicode does not know which language the text that is output is, as it only knows the unicode character codes. If rxvt-unicode first @@ -655,102 +645,102 @@ chinese characters aren't represented in japanese fonts, so when the first non-japanese character comes up, rxvt-unicode will look for a chinese font \&\*(-- unfortunately at this point, it will still use the japanese font for chinese characters that are also in the japanese font. -.Sp +.PP The workaround is easy: just tag a chinese font at the end of your font list (see the previous question). The key is to view the font list as a preference list: If you expect more japanese, list a japanese font first. If you expect more chinese, put a chinese font first. -.Sp +.PP In the future it might be possible to switch language preferences at runtime (the internal data structure has no problem with using different fonts for the same character at the same time, but no interface for this has been designed yet). -.Sp +.PP Until then, you might get away with switching fonts at runtime (see \*(L"Can I switch the fonts at runtime?\*(R" later in this document). -.IP "Why does rxvt-unicode sometimes leave pixel droppings?" 4 -.IX Item "Why does rxvt-unicode sometimes leave pixel droppings?" +.Sh "Why does rxvt-unicode sometimes leave pixel droppings?" +.IX Subsection "Why does rxvt-unicode sometimes leave pixel droppings?" Most fonts were not designed for terminal use, which means that character size varies a lot. A font that is otherwise fine for terminal use might contain some characters that are simply too wide. Rxvt-unicode will avoid these characters. For characters that are just \*(L"a bit\*(R" too wide a special \&\*(L"careful\*(R" rendering mode is used that redraws adjacent characters. -.Sp +.PP All of this requires that fonts do not lie about character sizes, however: Xft fonts often draw glyphs larger than their acclaimed bounding box, and rxvt-unicode has no way of detecting this (the correct way is to ask for the character bounding box, which unfortunately is wrong in these cases). -.Sp +.PP It's not clear (to me at least), wether this is a bug in Xft, freetype, or the respective font. If you encounter this problem you might try using the \f(CW\*(C`\-lsp\*(C'\fR option to give the font more height. If that doesn't work, you might be forced to use a different font. -.Sp +.PP All of this is not a problem when using X11 core fonts, as their bounding box data is correct. -.IP "On Solaris 9, many line-drawing characters are too wide." 4 -.IX Item "On Solaris 9, many line-drawing characters are too wide." +.Sh "On Solaris 9, many line-drawing characters are too wide." +.IX Subsection "On Solaris 9, many line-drawing characters are too wide." Seems to be a known bug, read <http://nixdoc.net/files/forum/about34198.html>. Some people use the following ugly workaround to get non-double-wide-characters working: -.Sp +.PP .Vb 1 \& #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x) .Ve -.IP "My Compose (Multi_key) key is no longer working." 4 -.IX Item "My Compose (Multi_key) key is no longer working." +.Sh "My Compose (Multi_key) key is no longer working." +.IX Subsection "My Compose (Multi_key) key is no longer working." The most common causes for this are that either your locale is not set correctly, or you specified a \fBpreeditStyle\fR that is not supported by your input method. For example, if you specified \fBOverTheSpot\fR and your input method (e.g. the default input method handling Compose keys) does not support this (for instance because it is not visual), then rxvt-unicode will continue without an input method. -.Sp +.PP In this case either do not specify a \fBpreeditStyle\fR or specify more than one pre-edit style, such as \fBOverTheSpot,Root,None\fR. -.ie n .IP "I cannot type ""Ctrl\-Shift\-2"" to get an \s-1ASCII\s0 \s-1NUL\s0 character due to \s-1ISO\s0 14755" 4 -.el .IP "I cannot type \f(CWCtrl\-Shift\-2\fR to get an \s-1ASCII\s0 \s-1NUL\s0 character due to \s-1ISO\s0 14755" 4 -.IX Item "I cannot type Ctrl-Shift-2 to get an ASCII NUL character due to ISO 14755" +.ie n .Sh "I cannot type ""Ctrl\-Shift\-2"" to get an \s-1ASCII\s0 \s-1NUL\s0 character due to \s-1ISO\s0 14755" +.el .Sh "I cannot type \f(CWCtrl\-Shift\-2\fP to get an \s-1ASCII\s0 \s-1NUL\s0 character due to \s-1ISO\s0 14755" +.IX Subsection "I cannot type Ctrl-Shift-2 to get an ASCII NUL character due to ISO 14755" Either try \f(CW\*(C`Ctrl\-2\*(C'\fR alone (it often is mapped to \s-1ASCII\s0 \s-1NUL\s0 even on international keyboards) or simply use \s-1ISO\s0 14755 support to your advantage, typing <Ctrl\-Shift\-0> to get a \s-1ASCII\s0 \s-1NUL\s0. This works for other codes, too, such as \f(CW\*(C`Ctrl\-Shift\-1\-d\*(C'\fR to type the default telnet escape character and so on. -.IP "How can I keep rxvt-unicode from using reverse video so much?" 4 -.IX Item "How can I keep rxvt-unicode from using reverse video so much?" +.Sh "How can I keep rxvt-unicode from using reverse video so much?" +.IX Subsection "How can I keep rxvt-unicode from using reverse video so much?" First of all, make sure you are running with the right terminal settings (\f(CW\*(C`TERM=rxvt\-unicode\*(C'\fR), which will get rid of most of these effects. Then make sure you have specified colours for italic and bold, as otherwise rxvt-unicode might use reverse video to simulate the effect: -.Sp +.PP .Vb 2 \& URxvt.colorBD: white \& URxvt.colorIT: green .Ve -.IP "Some programs assume totally weird colours (red instead of blue), how can I fix that?" 4 -.IX Item "Some programs assume totally weird colours (red instead of blue), how can I fix that?" +.Sh "Some programs assume totally weird colours (red instead of blue), how can I fix that?" +.IX Subsection "Some programs assume totally weird colours (red instead of blue), how can I fix that?" For some unexplainable reason, some rare programs assume a very weird colour palette when confronted with a terminal with more than the standard 8 colours (rxvt\-unicode supports 88). The right fix is, of course, to fix these programs not to assume non-ISO colours without very good reasons. -.Sp +.PP In the meantime, you can either edit your \f(CW\*(C`rxvt\-unicode\*(C'\fR terminfo definition to only claim 8 colour support or use \f(CW\*(C`TERM=rxvt\*(C'\fR, which will fix colours but keep you from using other rxvt-unicode features. -.IP "I am on FreeBSD and rxvt-unicode does not seem to work at all." 4 -.IX Item "I am on FreeBSD and rxvt-unicode does not seem to work at all." +.Sh "I am on FreeBSD and rxvt-unicode does not seem to work at all." +.IX Subsection "I am on FreeBSD and rxvt-unicode does not seem to work at all." Rxvt-unicode requires the symbol \f(CW\*(C`_\|_STDC_ISO_10646_\|_\*(C'\fR to be defined in your compile environment, or an implementation that implements it, wether it defines the symbol or not. \f(CW\*(C`_\|_STDC_ISO_10646_\|_\*(C'\fR requires that \&\fBwchar_t\fR is represented as unicode. -.Sp +.PP As you might have guessed, FreeBSD does neither define this symobl nor does it support it. Instead, it uses it's own internal representation of \&\fBwchar_t\fR. This is, of course, completely fine with respect to standards. -.Sp +.PP However, that means rxvt-unicode only works in \f(CW\*(C`POSIX\*(C'\fR, \f(CW\*(C`ISO\-8859\-1\*(C'\fR and \&\f(CW\*(C`UTF\-8\*(C'\fR locales under FreeBSD (which all use Unicode as \fBwchar_t\fR. -.Sp +.PP \&\f(CW\*(C`_\|_STDC_ISO_10646_\|_\*(C'\fR is the only sane way to support multi-language apps in an \s-1OS\s0, as using a locale-dependent (and non\-standardized) representation of \fBwchar_t\fR makes it impossible to convert between @@ -758,42 +748,40 @@ representation of \fBwchar_t\fR makes it impossible to convert between without implementing OS-specific-wrappers for each and every locale. There simply are no APIs to convert \fBwchar_t\fR into anything except the current locale encoding. -.Sp +.PP Some applications (such as the formidable \fBmlterm\fR) work around this by carrying their own replacement functions for character set handling with them, and either implementing OS-dependent hacks or doing multiple conversions (which is slow and unreliable in case the \s-1OS\s0 implements encodings slightly different than the terminal emulator). -.Sp +.PP The rxvt-unicode author insists that the right way to fix this is in the system libraries once and for all, instead of forcing every app to carry complete replacements for them :) -.IP "I use Solaris 9 and it doesn't compile/work/etc." 4 -.IX Item "I use Solaris 9 and it doesn't compile/work/etc." +.Sh "I use Solaris 9 and it doesn't compile/work/etc." +.IX Subsection "I use Solaris 9 and it doesn't compile/work/etc." Try the diff in \fIdoc/solaris9.patch\fR as a base. It fixes the worst problems with \f(CW\*(C`wcwidth\*(C'\fR and a compile problem. -.IP "How can I use rxvt-unicode under cygwin?" 4 -.IX Item "How can I use rxvt-unicode under cygwin?" +.Sh "How can I use rxvt-unicode under cygwin?" +.IX Subsection "How can I use rxvt-unicode under cygwin?" rxvt-unicode should compile and run out of the box on cygwin, using the X11 libraries that come with cygwin. libW11 emulation is no longer supported (and makes no sense, either, as it only supported a single font). I recommend starting the X\-server in \f(CW\*(C`\-multiwindow\*(C'\fR or \&\f(CW\*(C`\-rootless\*(C'\fR mode instead, which will result in similar look&feel as the old libW11 emulation. -.Sp +.PP At the time of this writing, cygwin didn't seem to support any multi-byte encodings (you might try \f(CW\*(C`LC_CTYPE=C\-UTF\-8\*(C'\fR), so you are likely limited to 8\-bit encodings. -.IP "How does rxvt-unicode determine the encoding to use?" 4 -.IX Item "How does rxvt-unicode determine the encoding to use?" -.PD 0 -.IP "Is there an option to switch encodings?" 4 -.IX Item "Is there an option to switch encodings?" -.PD +.Sh "How does rxvt-unicode determine the encoding to use?" +.IX Subsection "How does rxvt-unicode determine the encoding to use?" +.Sh "Is there an option to switch encodings?" +.IX Subsection "Is there an option to switch encodings?" Unlike some other terminals, rxvt-unicode has no encoding switch, and no specific \*(L"utf\-8\*(R" mode, such as xterm. In fact, it doesn't even know about \&\s-1UTF\-8\s0 or any other encodings with respect to terminal I/O. -.Sp +.PP The reasons is that there exists a perfectly fine mechanism for selecting the encoding, doing I/O and (most important) communicating this to all applications so everybody agrees on character properties such as width @@ -801,160 +789,160 @@ and code number. This mechanism is the \fIlocale\fR. Applications not using that info will have problems (for example, \f(CW\*(C`xterm\*(C'\fR gets the width of characters wrong as it uses it's own, locale-independent table under all locales). -.Sp +.PP Rxvt-unicode uses the \f(CW\*(C`LC_CTYPE\*(C'\fR locale category to select encoding. All programs doing the same (that is, most) will automatically agree in the interpretation of characters. -.Sp +.PP Unfortunately, there is no system-independent way to select locales, nor is there a standard on how locale specifiers will look like. -.Sp +.PP On most systems, the content of the \f(CW\*(C`LC_CTYPE\*(C'\fR environment variable contains an arbitrary string which corresponds to an already-installed 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, \&\f(CW\*(C`ja_JP.EUC\-JP\*(C'\fR, i.e. \f(CW\*(C`language_country.encoding\*(C'\fR, but other forms (i.e. \f(CW\*(C`de\*(C'\fR or \f(CW\*(C`german\*(C'\fR) are also common. -.Sp +.PP Rxvt-unicode ignores all other locale categories, and except for the encoding, ignores country or language-specific settings, 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 rxvt\-unicode. -.Sp +.PP If you want to use a specific encoding you have to make sure you start rxvt-unicode with the correct \f(CW\*(C`LC_CTYPE\*(C'\fR category. -.IP "Can I switch locales at runtime?" 4 -.IX Item "Can I switch locales at runtime?" +.Sh "Can I switch locales at runtime?" +.IX Subsection "Can I switch locales at runtime?" Yes, using an escape sequence. Try something like this, which sets rxvt\-unicode's idea of \f(CW\*(C`LC_CTYPE\*(C'\fR. -.Sp +.PP .Vb 1 \& printf '\ee]701;%s\e007' ja_JP.SJIS .Ve -.Sp +.PP See also the previous answer. -.Sp +.PP Sometimes this capability is rather handy when you want to work in one locale (e.g. \f(CW\*(C`de_DE.UTF\-8\*(C'\fR) but some programs don't support it (e.g. \s-1UTF\-8\s0). For example, I use this script to start \f(CW\*(C`xjdic\*(C'\fR, which first switches to a locale supported by xjdic and back later: -.Sp +.PP .Vb 3 \& printf '\ee]701;%s\e007' ja_JP.SJIS \& xjdic -js \& printf '\ee]701;%s\e007' de_DE.UTF-8 .Ve -.Sp +.PP You can also use xterm's \f(CW\*(C`luit\*(C'\fR program, which usually works fine, except for some locales where character width differs between program\- and rxvt\-unicode\-locales. -.IP "Can I switch the fonts at runtime?" 4 -.IX Item "Can I switch the fonts at runtime?" +.Sh "Can I switch the fonts at runtime?" +.IX Subsection "Can I switch the fonts at runtime?" Yes, using an escape sequence. Try something like this, which has the same effect as using the \f(CW\*(C`\-fn\*(C'\fR switch, and takes effect immediately: -.Sp +.PP .Vb 1 \& printf '\ee]50;%s\e007' "9x15bold,xft:Kochi Gothic" .Ve -.Sp +.PP This is useful if you e.g. work primarily with japanese (and prefer a japanese font), but you have to switch to chinese temporarily, where japanese fonts would only be in your way. -.Sp +.PP You can think of this as a kind of manual \s-1ISO\-2022\s0 switching. -.IP "Why do italic characters look as if clipped?" 4 -.IX Item "Why do italic characters look as if clipped?" +.Sh "Why do italic characters look as if clipped?" +.IX Subsection "Why do italic characters look as if clipped?" Many fonts have difficulties with italic characters and hinting. For example, the otherwise very nicely hinted font \f(CW\*(C`xft:Bitstream Vera Sans Mono\*(C'\fR completely fails in it's italic face. A workaround might be to enable freetype autohinting, i.e. like this: -.Sp +.PP .Vb 2 \& URxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true \& URxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true .Ve -.IP "My input method wants <some encoding> but I want \s-1UTF\-8\s0, what can I do?" 4 -.IX Item "My input method wants <some encoding> but I want UTF-8, what can I do?" +.Sh "My input method wants <some encoding> but I want \s-1UTF\-8\s0, what can I do?" +.IX Subsection "My input method wants <some encoding> but I want UTF-8, what can I do?" You can specify separate locales for the input method and the rest of the terminal, using the resource \f(CW\*(C`imlocale\*(C'\fR: -.Sp +.PP .Vb 1 \& URxvt.imlocale: ja_JP.EUC-JP .Ve -.Sp +.PP Now you can start your terminal with \f(CW\*(C`LC_CTYPE=ja_JP.UTF\-8\*(C'\fR and still use your input method. Please note, however, that you will not be able to input characters outside \f(CW\*(C`EUC\-JP\*(C'\fR in a normal way then, as your input method limits you. -.IP "Rxvt-unicode crashes when the X Input Method changes or exits." 4 -.IX Item "Rxvt-unicode crashes when the X Input Method changes or exits." +.Sh "Rxvt-unicode crashes when the X Input Method changes or exits." +.IX Subsection "Rxvt-unicode crashes when the X Input Method changes or exits." Unfortunately, this is unavoidable, as the \s-1XIM\s0 protocol is racy by design. Applications can avoid some crashes at the expense of memory leaks, and Input Methods can avoid some crashes by careful ordering at exit time. \fBkinput2\fR (and derived input methods) generally succeeds, while \fB\s-1SCIM\s0\fR (or similar input methods) fails. In the end, however, crashes cannot be completely avoided even if both sides cooperate. -.Sp +.PP So the only workaround is not to kill your Input Method Servers. -.IP "Rxvt-unicode uses gobs of memory, how can I reduce that?" 4 -.IX Item "Rxvt-unicode uses gobs of memory, how can I reduce that?" +.Sh "Rxvt-unicode uses gobs of memory, how can I reduce that?" +.IX Subsection "Rxvt-unicode uses gobs of memory, how can I reduce that?" Rxvt-unicode tries to obey the rule of not charging you for something you don't use. One thing you should try is to configure out all settings that you don't need, for example, Xft support is a resource hog by design, when used. Compiling it out ensures that no Xft font will be loaded accidentally when rxvt-unicode tries to find a font for your characters. -.Sp +.PP Also, many people (me included) like large windows and even larger scrollback buffers: Without \f(CW\*(C`\-\-enable\-unicode3\*(C'\fR, rxvt-unicode will use 6 bytes per screen cell. For a 160x?? window this amounts to almost a kilobyte per line. A scrollback buffer of 10000 lines will then (if full) use 10 Megabytes of memory. With \f(CW\*(C`\-\-enable\-unicode3\*(C'\fR it gets worse, as rxvt-unicode then uses 8 bytes per screen cell. -.IP "Can I speed up Xft rendering somehow?" 4 -.IX Item "Can I speed up Xft rendering somehow?" +.Sh "Can I speed up Xft rendering somehow?" +.IX Subsection "Can I speed up Xft rendering somehow?" Yes, the most obvious way to speed it up is to avoid Xft entirely, as it is simply slow. If you still want Xft fonts you might try to disable antialiasing (by appending \f(CW\*(C`:antialias=false\*(C'\fR), which saves lots of memory and also speeds up rendering considerably. -.IP "Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?" 4 -.IX Item "Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?" +.Sh "Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?" +.IX Subsection "Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong?" Rxvt-unicode will use whatever you specify as a font. If it needs to fall back to it's default font search list it will prefer X11 core fonts, because they are small and fast, and then use Xft fonts. It has antialiasing disabled for most of them, because the author thinks they look best that way. -.Sp +.PP If you want antialiasing, you have to specify the fonts manually. -.IP "Mouse cut/paste suddenly no longer works." 4 -.IX Item "Mouse cut/paste suddenly no longer works." +.Sh "Mouse cut/paste suddenly no longer works." +.IX Subsection "Mouse cut/paste suddenly no longer works." Make sure that mouse reporting is actually turned off since killing some editors prematurely may leave the mouse in mouse report mode. I've heard that tcsh may use mouse reporting unless it otherwise specified. A quick check is to see if cut/paste works when the Alt or Shift keys are depressed. -.IP "What's with this bold/blink stuff?" 4 -.IX Item "What's with this bold/blink stuff?" +.Sh "What's with this bold/blink stuff?" +.IX Subsection "What's with this bold/blink stuff?" If no bold colour is set via \f(CW\*(C`colorBD:\*(C'\fR, bold will invert text using the standard foreground colour. -.Sp +.PP For the standard background colour, blinking will actually make the text blink when compiled with \f(CW\*(C`\-\-enable\-blinking\*(C'\fR. with standard colours. Without \f(CW\*(C`\-\-enable\-blinking\*(C'\fR, the blink attribute will be ignored. -.Sp +.PP On \s-1ANSI\s0 colours, bold/blink attributes are used to set high-intensity foreground/background colors. -.Sp +.PP color0\-7 are the low-intensity colors. -.Sp +.PP color8\-15 are the corresponding high-intensity colors. -.IP "I don't like the screen colors. How do I change them?" 4 -.IX Item "I don't like the screen colors. How do I change them?" +.Sh "I don't like the screen colors. How do I change them?" +.IX Subsection "I don't like the screen colors. How do I change them?" You can change the screen colors at run-time using \fI~/.Xdefaults\fR resources (or as long\-options). -.Sp +.PP Here are values that are supposed to resemble a \s-1VGA\s0 screen, including the murky brown that passes for low-intensity yellow: -.Sp +.PP .Vb 8 \& URxvt.color0: #000000 \& URxvt.color1: #A80000 @@ -965,7 +953,7 @@ including the murky brown that passes for low-intensity yellow: \& URxvt.color6: #00A8A8 \& URxvt.color7: #A8A8A8 .Ve -.Sp +.PP .Vb 8 \& URxvt.color8: #000054 \& URxvt.color9: #FF0054 @@ -976,10 +964,10 @@ including the murky brown that passes for low-intensity yellow: \& URxvt.color14: #00FFFF \& URxvt.color15: #FFFFFF .Ve -.Sp +.PP And here is a more complete set of non-standard colors described (not by me) as \*(L"pretty girly\*(R". -.Sp +.PP .Vb 18 \& URxvt.cursorColor: #dc74d1 \& URxvt.pointerColor: #dc74d1 @@ -1000,81 +988,81 @@ me) as \*(L"pretty girly\*(R". \& URxvt.color7: #e1dddd \& URxvt.color15: #e1dddd .Ve -.IP "How can I start @@RXVT_NAME@@d in a race-free way?" 4 -.IX Item "How can I start @@RXVT_NAME@@d in a race-free way?" +.Sh "How can I start @@RXVT_NAME@@d in a race-free way?" +.IX Subsection "How can I start @@RXVT_NAME@@d in a race-free way?" Try \f(CW\*(C`@@RXVT_NAME@@d \-f \-o\*(C'\fR, which tells @@RXVT_NAME@@d to open the display, create the listening socket and then fork. -.IP "What's with the strange Backspace/Delete key behaviour?" 4 -.IX Item "What's with the strange Backspace/Delete key behaviour?" +.Sh "What's with the strange Backspace/Delete key behaviour?" +.IX Subsection "What's with the strange Backspace/Delete key behaviour?" Assuming that the physical Backspace key corresponds to the BackSpace keysym (not likely for Linux ... see the following question) there are two standard values that can be used for Backspace: \f(CW\*(C`^H\*(C'\fR and \f(CW\*(C`^?\*(C'\fR. -.Sp +.PP Historically, either value is correct, but rxvt-unicode adopts the debian policy of using \f(CW\*(C`^?\*(C'\fR when unsure, because it's the one only only correct choice :). -.Sp +.PP Rxvt-unicode tries to inherit the current stty settings and uses the value of `erase' to guess the value for backspace. If rxvt-unicode wasn't started from a terminal (say, from a menu or by remote shell), then the system value of `erase', which corresponds to \s-1CERASE\s0 in <termios.h>, will be used (which may not be the same as your stty setting). -.Sp +.PP For starting a new rxvt\-unicode: -.Sp +.PP .Vb 3 \& # use Backspace = ^H \& $ stty erase ^H \& $ @@RXVT_NAME@@ .Ve -.Sp +.PP .Vb 3 \& # use Backspace = ^? \& $ stty erase ^? \& $ @@RXVT_NAME@@ .Ve -.Sp +.PP Toggle with \f(CW\*(C`ESC [ 36 h\*(C'\fR / \f(CW\*(C`ESC [ 36 l\*(C'\fR. -.Sp +.PP For an existing rxvt\-unicode: -.Sp +.PP .Vb 3 \& # use Backspace = ^H \& $ stty erase ^H \& $ echo -n "^[[36h" .Ve -.Sp +.PP .Vb 3 \& # use Backspace = ^? \& $ stty erase ^? \& $ echo -n "^[[36l" .Ve -.Sp +.PP This helps satisfy some of the Backspace discrepancies that occur, but if you use Backspace = \f(CW\*(C`^H\*(C'\fR, make sure that the termcap/terminfo value properly reflects that. -.Sp +.PP The Delete key is a another casualty of the ill-defined Backspace problem. To avoid confusion between the Backspace and Delete keys, the Delete key has been assigned an escape sequence to match the vt100 for Execute (\f(CW\*(C`ESC [ 3 ~\*(C'\fR) and is in the supplied termcap/terminfo. -.Sp +.PP Some other Backspace problems: -.Sp +.PP some editors use termcap/terminfo, some editors (vim I'm told) expect Backspace = ^H, \&\s-1GNU\s0 Emacs (and Emacs-like editors) use ^H for help. -.Sp +.PP Perhaps someday this will all be resolved in a consistent manner. -.IP "I don't like the key\-bindings. How do I change them?" 4 -.IX Item "I don't like the key-bindings. How do I change them?" +.Sh "I don't like the key\-bindings. How do I change them?" +.IX Subsection "I don't like the key-bindings. How do I change them?" There are some compile-time selections available via configure. Unless you have run \*(L"configure\*(R" with the \f(CW\*(C`\-\-disable\-resources\*(C'\fR option you can use the `keysym' resource to alter the keystrings associated with keysyms. -.Sp +.PP Here's an example for a URxvt session started using \f(CW\*(C`@@RXVT_NAME@@ \-name URxvt\*(C'\fR -.Sp +.PP .Vb 20 \& URxvt.keysym.Home: \e033[1~ \& URxvt.keysym.End: \e033[4~ @@ -1097,10 +1085,10 @@ Here's an example for a URxvt session started using \f(CW\*(C`@@RXVT_NAME@@ \-na \& URxvt.keysym.M-C-a: list \e033<M-C- abcdefghijklmnopqrstuvwxyz > \& URxvt.keysym.F12: command:\e033]701;zh_CN.GBK\e007 .Ve -.Sp +.PP See some more examples in the documentation for the \fBkeysym\fR resource. -.IP "I'm using keyboard model \s-1XXX\s0 that has extra Prior/Next/Insert keys. How do I make use of them? For example, the Sun Keyboard type 4 has the following mappings that rxvt-unicode doesn't recognize." 4 -.IX Item "I'm using keyboard model XXX that has extra Prior/Next/Insert keys. How do I make use of them? For example, the Sun Keyboard type 4 has the following mappings that rxvt-unicode doesn't recognize." +.Sh "I'm using keyboard model \s-1XXX\s0 that has extra Prior/Next/Insert keys. How do I make use of them? For example, the Sun Keyboard type 4 has the following mappings that rxvt-unicode doesn't recognize." +.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 mappings that rxvt-unicode doesn't recognize." .Vb 6 \& KP_Insert == Insert \& F22 == Print @@ -1109,28 +1097,28 @@ See some more examples in the documentation for the \fBkeysym\fR resource. \& F33 == End \& F35 == Next .Ve -.Sp +.PP Rather than have rxvt-unicode try to accommodate all the various possible keyboard mappings, it is better to use `xmodmap' to remap the keys as required for your particular machine. -.IP "How do I distinguish wether I'm running rxvt-unicode or a regular xterm? I need this to decide about setting colors etc." 4 -.IX Item "How do I distinguish wether I'm running rxvt-unicode or a regular xterm? I need this to decide about setting colors etc." +.Sh "How do I distinguish wether I'm running rxvt-unicode or a regular xterm? I need this to decide about setting colors etc." +.IX Subsection "How do I distinguish wether I'm running rxvt-unicode or a regular xterm? I need this to decide about setting colors etc." rxvt and rxvt-unicode always export the variable \*(L"\s-1COLORTERM\s0\*(R", so you can check and see if that is set. Note that several programs, \s-1JED\s0, slrn, Midnight Commander automatically check this variable to decide whether or not to use color. -.IP "How do I set the correct, full \s-1IP\s0 address for the \s-1DISPLAY\s0 variable?" 4 -.IX Item "How do I set the correct, full IP address for the DISPLAY variable?" +.Sh "How do I set the correct, full \s-1IP\s0 address for the \s-1DISPLAY\s0 variable?" +.IX Subsection "How do I set the correct, full IP address for the DISPLAY variable?" If you've compiled rxvt-unicode with \s-1DISPLAY_IS_IP\s0 and have enabled insecure mode then it is possible to use the following shell script snippets to correctly set the display. If your version of rxvt-unicode wasn't also compiled with \s-1ESCZ_ANSWER\s0 (as assumed in these snippets) then the \s-1COLORTERM\s0 variable can be used to distinguish rxvt-unicode from a regular xterm. -.Sp +.PP Courtesy of Chuck Blake <cblake@BBN.COM> with the following shell script snippets: -.Sp +.PP .Vb 12 \& # Bourne/Korn/POSIX family of shells: \& [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know @@ -1145,13 +1133,13 @@ snippets: \& fi \& fi .Ve -.IP "How do I compile the manual pages for myself?" 4 -.IX Item "How do I compile the manual pages for myself?" +.Sh "How do I compile the manual pages for myself?" +.IX Subsection "How do I compile the manual pages for myself?" You need to have a recent version of perl installed as \fI/usr/bin/perl\fR, one that comes with \fIpod2man\fR, \fIpod2text\fR and \fIpod2html\fR. Then go to the doc subdirectory and enter \f(CW\*(C`make alldoc\*(C'\fR. -.IP "My question isn't answered here, can I ask a human?" 4 -.IX Item "My question isn't answered here, can I ask a human?" +.Sh "My question isn't answered here, can I ask a human?" +.IX Subsection "My question isn't answered here, can I ask a human?" Before sending me mail, you could go to \s-1IRC:\s0 \f(CW\*(C`irc.freenode.net\*(C'\fR, channel \f(CW\*(C`#rxvt\-unicode\*(C'\fR has some rxvt-unicode enthusiasts that might be interested in learning about new and exciting problems (but not FAQs :). diff --git a/doc/rxvt.7.pod b/doc/rxvt.7.pod
--- a/doc/rxvt.7.pod +++ b/doc/rxvt.7.pod @@ -26,8 +26,8 @@ L<http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxvt.7.html>. =head2 The new selection selects pieces that are too big, how can I select single words? -Yes. For example, if you want to select alphanumeric words, you can use -the following resource: +If you want to select e.g. alphanumeric words, you can use the following +setting: URxvt.selection.pattern-0: ([[:word:]]+) @@ -41,9 +41,7 @@ To get a selection that is very similar to the old code, try this pattern: Please also note that the I<LeftClick Shift-LeftClik> combination also selects words like the old code. -=over 4 - -=item I don't like the new selection/popups/hotkeys/perl, how do I +=head2 I don't like the new selection/popups/hotkeys/perl, how do I change/disable it? You can disable the perl extension completely by setting the @@ -65,10 +63,10 @@ other combination either by setting the B<searchable-scrollback> resource: URxvt.searchable-scrollback: CM-s -=item The cursor moves when selecting text in the current input line, how +=head2 The cursor moves when selecting text in the current input line, how do I switch this off? -=item During rlogin/ssh/telnet/etc. sessions, clicking near the cursor +=head2 During rlogin/ssh/telnet/etc. sessions, clicking near the cursor outputs strange escape sequences, how do I fix this? These are caused by the C<readline> perl extension. Under normal @@ -82,7 +80,7 @@ extension: URxvt.perl-ext-common: default,-readline -=item Why doesn't rxvt-unicode read my resources? +=head2 Why doesn't rxvt-unicode read my resources? Well, why, indeed? It does, in a way very similar to other X applications. Most importantly, this means that if you or your OS loads @@ -102,7 +100,7 @@ If you want to use another form (there are lots of different ways of specifying resources), make sure you understand wether and why it works. If unsure, use the form above. -=item I can't get transparency working, what am I doing wrong? +=head2 I can't get transparency working, what am I doing wrong? First of all, transparency isn't officially supported in rxvt-unicode, so you are mostly on your own. Do not bug the author about it (but you may @@ -149,7 +147,7 @@ Then click on a window you want to make transparent. Replace C<0xc0000000> by other values to change the degree of opacity. If it doesn't work and your server crashes, you got to keep the pieces. -=item Isn't rxvt supposed to be small? Don't all those features bloat? +=head2 Isn't rxvt supposed to be small? Don't all those features bloat? I often get asked about this, and I think, no, they didn't cause extra bloat. If you compare a minimal rxvt and a minimal urxvt, you can see @@ -191,7 +189,7 @@ still fares rather well. And compared to some monsters like gnome-terminal startup time, including the hundreds of warnings it spits out), it fares extremely well *g*. -=item Why C++, isn't that unportable/bloated/uncool? +=head2 Why C++, isn't that unportable/bloated/uncool? Is this a question? :) It comes up very often. The simple answer is: I had to write it, and C++ allowed me to write and maintain it in a fraction @@ -225,7 +223,7 @@ And here is rxvt-unicode: No large bloated libraries (of course, none were linked in statically), except maybe libX11 :) -=item Does it support tabs, can I have a tabbed rxvt-unicode? +=head2 Does it support tabs, can I have a tabbed rxvt-unicode? Beginning with version 7.3, there is a perl extension that implements a simple tabbed terminal. It is installed by default, so any of these should @@ -241,14 +239,14 @@ embedded into other programs, as witnessed by F<doc/rxvt-tabbed> or the upcoming C<Gtk2::URxvt> perl module, which features a tabbed urxvt (murxvt) terminal as an example embedding application. -=item How do I know which rxvt-unicode version I'm using? +=head2 How do I know which rxvt-unicode version I'm using? The version number is displayed with the usage (-h). Also the escape sequence C<ESC [ 8 n> sets the window title to the version number. When using the @@RXVT_NAME@@c client, the version displayed is that of the daemon. -=item I am using Debian GNU/Linux and have a problem... +=head2 I am using Debian GNU/Linux and have a problem... The Debian GNU/Linux package of rxvt-unicode in sarge contains large patches that considerably change the behaviour of rxvt-unicode (but @@ -264,7 +262,7 @@ probably should use the Debian BTS, too, because, after all, it's also a bug in the Debian version and it serves as a reminder for other users that might encounter the same issue. -=item I am maintaining rxvt-unicode for distribution/OS XXX, any +=head2 I am maintaining rxvt-unicode for distribution/OS XXX, any recommendation? You should build one binary with the default options. F<configure> @@ -285,7 +283,7 @@ one with C<--disable-everything> (very useful) and a maximal one with C<--enable-everything> (less useful, it will be very big due to a lot of encodings built-in that increase download times and are rarely used). -=item I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe? +=head2 I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe? It should be, starting with release 7.1. You are encouraged to properly install urxvt with privileges necessary for your OS now. @@ -302,7 +300,7 @@ and reduces possible bugs to initialisation code run before main(), or things like the dynamic loader of your system, which should result in very little risk. -=item When I log-in to another system it tells me about missing terminfo data? +=head2 When I log-in to another system it tells me about missing terminfo data? The terminal description used by rxvt-unicode is not as widely available as that for xterm, or even rxvt (for which the same problem often arises). @@ -330,14 +328,14 @@ resource to set it: If you don't plan to use B<rxvt> (quite common...) you could also replace the rxvt terminfo file with the rxvt-unicode one. -=item C<tic> outputs some error when compiling the terminfo entry. +=head2 C<tic> outputs some error when compiling the terminfo entry. Most likely it's the empty definition for C<enacs=>. Just replace it by C<enacs=\E[0@> and try again. -=item C<bash>'s readline does not work correctly under @@RXVT_NAME@@. +=head2 C<bash>'s readline does not work correctly under @@RXVT_NAME@@. -=item I need a termcap file entry. +=head2 I need a termcap file entry. One reason you might want this is that some distributions or operating systems still compile some programs using the long-obsoleted termcap @@ -373,7 +371,7 @@ Or you could use this termcap entry, generated by the command above: :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\ :vs=\E[?25h: -=item Why does C<ls> no longer have coloured output? +=head2 Why does C<ls> no longer have coloured output? The C<ls> in the GNU coreutils unfortunately doesn't use terminfo to decide wether a terminal has colour, but uses it's own configuration @@ -388,11 +386,11 @@ to C</etc/DIR_COLORS> or simply add: to your C<.profile> or C<.bashrc>. -=item Why doesn't vim/emacs etc. use the 88 colour mode? +=head2 Why doesn't vim/emacs etc. use the 88 colour mode? -=item Why doesn't vim/emacs etc. make use of italic? +=head2 Why doesn't vim/emacs etc. make use of italic? -=item Why are the secondary screen-related options not working properly? +=head2 Why are the secondary screen-related options not working properly? Make sure you are using C<TERM=rxvt-unicode>. Some pre-packaged distributions (most notably Debian GNU/Linux) break rxvt-unicode @@ -403,7 +401,7 @@ file, so you will need to install it on your own (See the question B<When I log-in to another system it tells me about missing terminfo data?> on how to do this). -=item My numerical keypad acts weird and generates differing output? +=head2 My numerical keypad acts weird and generates differing output? Some Debian GNUL/Linux users seem to have this problem, although no specific details were reported so far. It is possible that this is caused @@ -412,9 +410,9 @@ this can happen are unknown, as C<TERM=rxvt> should offer a compatible keymap. See the answer to the previous question, and please report if that helped. -=item Rxvt-unicode does not seem to understand the selected encoding? +=head2 Rxvt-unicode does not seem to understand the selected encoding? -=item Unicode does not seem to work? +=head2 Unicode does not seem to work? If you encounter strange problems like typing an accented character but getting two unrelated other characters or similar, or if program output is @@ -444,9 +442,9 @@ If nothing works and you are sure that everything is set correctly then you will need to remember a little known fact: Some programs just don't support locales :( -=item Why do some characters look so much different than others? +=head2 Why do some characters look so much different than others? -=item How does rxvt-unicode choose fonts? +=head2 How does rxvt-unicode choose fonts? Most fonts do not contain the full range of Unicode, which is fine. Chances are that the font you (or the admin/package maintainer of @@ -474,7 +472,7 @@ The only limitation is that none of the fonts may be larger than the base font, as the base font defines the terminal character cell size, which must be the same due to the way terminals work. -=item Why do some chinese characters look so different than others? +=head2 Why do some chinese characters look so different than others? This is because there is a difference between script and language -- rxvt-unicode does not know which language the text that is output is, @@ -499,7 +497,7 @@ has been designed yet). Until then, you might get away with switching fonts at runtime (see L<Can I switch the fonts at runtime?> later in this document). -=item Why does rxvt-unicode sometimes leave pixel droppings? +=head2 Why does rxvt-unicode sometimes leave pixel droppings? Most fonts were not designed for terminal use, which means that character size varies a lot. A font that is otherwise fine for terminal use might @@ -521,7 +519,7 @@ might be forced to use a different font. All of this is not a problem when using X11 core fonts, as their bounding box data is correct. -=item On Solaris 9, many line-drawing characters are too wide. +=head2 On Solaris 9, many line-drawing characters are too wide. Seems to be a known bug, read L<http://nixdoc.net/files/forum/about34198.html>. Some people use the @@ -529,7 +527,7 @@ following ugly workaround to get non-double-wide-characters working: #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x) -=item My Compose (Multi_key) key is no longer working. +=head2 My Compose (Multi_key) key is no longer working. The most common causes for this are that either your locale is not set correctly, or you specified a B<preeditStyle> that is not supported by @@ -541,7 +539,7 @@ rxvt-unicode will continue without an input method. In this case either do not specify a B<preeditStyle> or specify more than one pre-edit style, such as B<OverTheSpot,Root,None>. -=item I cannot type C<Ctrl-Shift-2> to get an ASCII NUL character due to ISO 14755 +=head2 I cannot type C<Ctrl-Shift-2> to get an ASCII NUL character due to ISO 14755 Either try C<Ctrl-2> alone (it often is mapped to ASCII NUL even on international keyboards) or simply use ISO 14755 support to your @@ -549,7 +547,7 @@ advantage, typing <Ctrl-Shift-0> to get a ASCII NUL. This works for other codes, too, such as C<Ctrl-Shift-1-d> to type the default telnet escape character and so on. -=item How can I keep rxvt-unicode from using reverse video so much? +=head2 How can I keep rxvt-unicode from using reverse video so much? First of all, make sure you are running with the right terminal settings (C<TERM=rxvt-unicode>), which will get rid of most of these effects. Then @@ -559,7 +557,7 @@ rxvt-unicode might use reverse video to simulate the effect: URxvt.colorBD: white URxvt.colorIT: green -=item Some programs assume totally weird colours (red instead of blue), how can I fix that? +=head2 Some programs assume totally weird colours (red instead of blue), how can I fix that? For some unexplainable reason, some rare programs assume a very weird colour palette when confronted with a terminal with more than the standard @@ -570,7 +568,7 @@ In the meantime, you can either edit your C<rxvt-unicode> terminfo definition to only claim 8 colour support or use C<TERM=rxvt>, which will fix colours but keep you from using other rxvt-unicode features. -=item I am on FreeBSD and rxvt-unicode does not seem to work at all. +=head2 I am on FreeBSD and rxvt-unicode does not seem to work at all. Rxvt-unicode requires the symbol C<__STDC_ISO_10646__> to be defined in your compile environment, or an implementation that implements it, @@ -602,12 +600,12 @@ The rxvt-unicode author insists that the right way to fix this is in the system libraries once and for all, instead of forcing every app to carry complete replacements for them :) -=item I use Solaris 9 and it doesn't compile/work/etc. +=head2 I use Solaris 9 and it doesn't compile/work/etc. Try the diff in F<doc/solaris9.patch> as a base. It fixes the worst problems with C<wcwidth> and a compile problem. -=item How can I use rxvt-unicode under cygwin? +=head2 How can I use rxvt-unicode under cygwin? rxvt-unicode should compile and run out of the box on cygwin, using the X11 libraries that come with cygwin. libW11 emulation is no @@ -620,9 +618,9 @@ At the time of this writing, cygwin didn't seem to support any multi-byte encodings (you might try C<LC_CTYPE=C-UTF-8>), so you are likely limited to 8-bit encodings. -=item How does rxvt-unicode determine the encoding to use? +=head2 How does rxvt-unicode determine the encoding to use? -=item Is there an option to switch encodings? +=head2 Is there an option to switch encodings? Unlike some other terminals, rxvt-unicode has no encoding switch, and no specific "utf-8" mode, such as xterm. In fact, it doesn't even know about @@ -657,7 +655,7 @@ rxvt-unicode. If you want to use a specific encoding you have to make sure you start rxvt-unicode with the correct C<LC_CTYPE> category. -=item Can I switch locales at runtime? +=head2 Can I switch locales at runtime? Yes, using an escape sequence. Try something like this, which sets rxvt-unicode's idea of C<LC_CTYPE>. @@ -679,7 +677,7 @@ You can also use xterm's C<luit> program, which usually works fine, except for some locales where character width differs between program- and rxvt-unicode-locales. -=item Can I switch the fonts at runtime? +=head2 Can I switch the fonts at runtime? Yes, using an escape sequence. Try something like this, which has the same effect as using the C<-fn> switch, and takes effect immediately: @@ -692,7 +690,7 @@ japanese fonts would only be in your way. You can think of this as a kind of manual ISO-2022 switching. -=item Why do italic characters look as if clipped? +=head2 Why do italic characters look as if clipped? Many fonts have difficulties with italic characters and hinting. For example, the otherwise very nicely hinted font C<xft:Bitstream Vera Sans @@ -702,7 +700,7 @@ enable freetype autohinting, i.e. like this: URxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true URxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true -=item My input method wants <some encoding> but I want UTF-8, what can I do? +=head2 My input method wants <some encoding> but I want UTF-8, what can I do? You can specify separate locales for the input method and the rest of the terminal, using the resource C<imlocale>: @@ -714,7 +712,7 @@ use your input method. Please note, however, that you will not be able to input characters outside C<EUC-JP> in a normal way then, as your input method limits you. -=item Rxvt-unicode crashes when the X Input Method changes or exits. +=head2 Rxvt-unicode crashes when the X Input Method changes or exits. Unfortunately, this is unavoidable, as the XIM protocol is racy by design. Applications can avoid some crashes at the expense of memory @@ -725,7 +723,7 @@ crashes cannot be completely avoided even if both sides cooperate. So the only workaround is not to kill your Input Method Servers. -=item Rxvt-unicode uses gobs of memory, how can I reduce that? +=head2 Rxvt-unicode uses gobs of memory, how can I reduce that? Rxvt-unicode tries to obey the rule of not charging you for something you don't use. One thing you should try is to configure out all settings that @@ -740,14 +738,14 @@ kilobyte per line. A scrollback buffer of 10000 lines will then (if full) use 10 Megabytes of memory. With C<--enable-unicode3> it gets worse, as rxvt-unicode then uses 8 bytes per screen cell. -=item Can I speed up Xft rendering somehow? +=head2 Can I speed up Xft rendering somehow? Yes, the most obvious way to speed it up is to avoid Xft entirely, as it is simply slow. If you still want Xft fonts you might try to disable antialiasing (by appending C<:antialias=false>), which saves lots of memory and also speeds up rendering considerably. -=item Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong? +=head2 Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong? Rxvt-unicode will use whatever you specify as a font. If it needs to fall back to it's default font search list it will prefer X11 core @@ -757,7 +755,7 @@ look best that way. If you want antialiasing, you have to specify the fonts manually. -=item Mouse cut/paste suddenly no longer works. +=head2 Mouse cut/paste suddenly no longer works. Make sure that mouse reporting is actually turned off since killing some editors prematurely may leave the mouse in mouse report mode. I've @@ -765,7 +763,7 @@ heard that tcsh may use mouse reporting unless it otherwise specified. A quick check is to see if cut/paste works when the Alt or Shift keys are depressed. -=item What's with this bold/blink stuff? +=head2 What's with this bold/blink stuff? If no bold colour is set via C<colorBD:>, bold will invert text using the standard foreground colour. @@ -782,7 +780,7 @@ color0-7 are the low-intensity colors. color8-15 are the corresponding high-intensity colors. -=item I don't like the screen colors. How do I change them? +=head2 I don't like the screen colors. How do I change them? You can change the screen colors at run-time using F<~/.Xdefaults> resources (or as long-options). @@ -830,12 +828,12 @@ me) as "pretty girly". URxvt.color7: #e1dddd URxvt.color15: #e1dddd -=item How can I start @@RXVT_NAME@@d in a race-free way? +=head2 How can I start @@RXVT_NAME@@d in a race-free way? Try C<@@RXVT_NAME@@d -f -o>, which tells @@RXVT_NAME@@d to open the display, create the listening socket and then fork. -=item What's with the strange Backspace/Delete key behaviour? +=head2 What's with the strange Backspace/Delete key behaviour? Assuming that the physical Backspace key corresponds to the BackSpace keysym (not likely for Linux ... see the following @@ -891,7 +889,7 @@ GNU Emacs (and Emacs-like editors) use ^H for help. Perhaps someday this will all be resolved in a consistent manner. -=item I don't like the key-bindings. How do I change them? +=head2 I don't like the key-bindings. How do I change them? There are some compile-time selections available via configure. Unless you have run "configure" with the C<--disable-resources> option you can @@ -922,7 +920,7 @@ Here's an example for a URxvt session started using C<@@RXVT_NAME@@ -name URxvt> See some more examples in the documentation for the B<keysym> resource. -=item I'm using keyboard model XXX that has extra Prior/Next/Insert keys. +=head2 I'm using keyboard model XXX that has extra Prior/Next/Insert keys. How do I make use of them? For example, the Sun Keyboard type 4 has the following mappings that rxvt-unicode doesn't recognize. @@ -937,7 +935,7 @@ Rather than have rxvt-unicode try to accommodate all the various possible keyboard mappings, it is better to use `xmodmap' to remap the keys as required for your particular machine. -=item How do I distinguish wether I'm running rxvt-unicode or a regular xterm? +=head2 How do I distinguish wether I'm running rxvt-unicode or a regular xterm? I need this to decide about setting colors etc. rxvt and rxvt-unicode always export the variable "COLORTERM", so you can @@ -945,7 +943,7 @@ check and see if that is set. Note that several programs, JED, slrn, Midnight Commander automatically check this variable to decide whether or not to use color. -=item How do I set the correct, full IP address for the DISPLAY variable? +=head2 How do I set the correct, full IP address for the DISPLAY variable? If you've compiled rxvt-unicode with DISPLAY_IS_IP and have enabled insecure mode then it is possible to use the following shell script @@ -970,20 +968,18 @@ snippets: fi fi -=item How do I compile the manual pages for myself? +=head2 How do I compile the manual pages for myself? You need to have a recent version of perl installed as F</usr/bin/perl>, one that comes with F<pod2man>, F<pod2text> and F<pod2html>. Then go to the doc subdirectory and enter C<make alldoc>. -=item My question isn't answered here, can I ask a human? +=head2 My question isn't answered here, can I ask a human? Before sending me mail, you could go to IRC: C<irc.freenode.net>, channel C<#rxvt-unicode> has some rxvt-unicode enthusiasts that might be interested in learning about new and exciting problems (but not FAQs :). -=back - =head1 RXVT TECHNICAL REFERENCE =head1 DESCRIPTION diff --git a/doc/rxvt.7.txt b/doc/rxvt.7.txt
--- a/doc/rxvt.7.txt +++ b/doc/rxvt.7.txt @@ -22,8 +22,8 @@ DESCRIPTION FREQUENTLY ASKED QUESTIONS The new selection selects pieces that are too big, how can I select single words? - Yes. For example, if you want to select alphanumeric words, you can use - the following resource: + If you want to select e.g. alphanumeric words, you can use the following + setting: URxvt.selection.pattern-0: ([[:word:]]+) @@ -38,927 +38,891 @@ single words? Please also note that the *LeftClick Shift-LeftClik* combination also selects words like the old code. - I don't like the new selection/popups/hotkeys/perl, how do I - change/disable it? - You can disable the perl extension completely by setting the - perl-ext-common resource to the empty string, which also keeps - rxvt-unicode from initialising perl, saving memory. + I don't like the new selection/popups/hotkeys/perl, how do I +change/disable it? + You can disable the perl extension completely by setting the + perl-ext-common resource to the empty string, which also keeps + rxvt-unicode from initialising perl, saving memory. - If you only want to disable specific features, you first have to - identify which perl extension is responsible. For this, read the - section PREPACKAGED EXTENSIONS in the rxvtperl(3) manpage. For - example, to disable the selection-popup and option-popup, specify - this perl-ext-common resource: + If you only want to disable specific features, you first have to + identify which perl extension is responsible. For this, read the section + PREPACKAGED EXTENSIONS in the rxvtperl(3) manpage. For example, to + disable the selection-popup and option-popup, specify this + perl-ext-common resource: - URxvt.perl-ext-common: default,-selection-popup,-option-popup + URxvt.perl-ext-common: default,-selection-popup,-option-popup - This will keep the default extensions, but disable the two popup - extensions. Some extensions can also be configured, for example, - scrollback search mode is triggered by M-s. You can move it to any - other combination either by setting the searchable-scrollback - resource: + This will keep the default extensions, but disable the two popup + extensions. Some extensions can also be configured, for example, + scrollback search mode is triggered by M-s. You can move it to any other + combination either by setting the searchable-scrollback resource: - URxvt.searchable-scrollback: CM-s + URxvt.searchable-scrollback: CM-s - The cursor moves when selecting text in the current input line, how do I - switch this off? - During rlogin/ssh/telnet/etc. sessions, clicking near the cursor outputs - strange escape sequences, how do I fix this? - These are caused by the "readline" perl extension. Under normal - circumstances, it will move your cursor around when you click into - the line that contains it. It tries hard not to do this at the wrong - moment, but when running a program that doesn't parse cursor - movements or in some cases during rlogin sessions, it fails to - detect this properly. - - You can permamently switch this feature off by disabling the - "readline" extension: - - URxvt.perl-ext-common: default,-readline - - Why doesn't rxvt-unicode read my resources? - Well, why, indeed? It does, in a way very similar to other X - applications. Most importantly, this means that if you or your OS - loads resources into the X display (the right way to do it), - rxvt-unicode will ignore any resource files in your home directory. - It will only read $HOME/.Xdefaults when no resources are attached to - the display. - - If you have or use an $HOME/.Xresources file, chances are that - resources are loaded into your X-server. In this case, you have to - re-login after every change (or run xrdb -merge $HOME/.Xresources). - - Also consider the form resources have to use: - - URxvt.resource: value - - If you want to use another form (there are lots of different ways of - specifying resources), make sure you understand wether and why it - works. If unsure, use the form above. - - I can't get transparency working, what am I doing wrong? - First of all, transparency isn't officially supported in - rxvt-unicode, so you are mostly on your own. Do not bug the author - about it (but you may bug everybody else). Also, if you can't get it - working consider it a rite of passage: ... and you failed. - - Here are four ways to get transparency. Do read the manpage and - option descriptions for the programs mentioned and rxvt-unicode. - Really, do it! - - 1. Use inheritPixmap: - - Esetroot wallpaper.jpg - rxvt -ip -tint red -sh 40 - - That works. If you think it doesn't, you lack transparency and - tinting support, or you are unable to read. - - 2. Use a simple pixmap and emulate pseudo-transparency. This enables - you to use effects other than tinting and shading: Just - shade/tint/whatever your picture with gimp: - - convert wallpaper.jpg -blur 20x20 -modulate 30 background.xpm - rxvt -pixmap background.xpm -pe automove-background - - That works. If you think it doesn't, you lack XPM and Perl support, - or you are unable to read. - - 3. Use an ARGB visual: - - rxvt -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc - - This requires XFT support, and the support of your X-server. If that - doesn't work for you, blame Xorg and Keith Packard. ARGB visuals - aren't there yet, no matter what they claim. Rxvt-Unicode contains - the neccessary bugfixes and workarounds for Xft and Xlib to make it - work, but that doesn't mean that your WM has the required kludges in - place. - - 4. Use xcompmgr and let it do the job: - - xprop -frame -f _NET_WM_WINDOW_OPACITY 32c \ - -set _NET_WM_WINDOW_OPACITY 0xc0000000 - - Then click on a window you want to make transparent. Replace - 0xc0000000 by other values to change the degree of opacity. If it - doesn't work and your server crashes, you got to keep the pieces. - - Isn't rxvt supposed to be small? Don't all those features bloat? - I often get asked about this, and I think, no, they didn't cause - extra bloat. If you compare a minimal rxvt and a minimal urxvt, you - can see that the urxvt binary is larger (due to some encoding tables - always being compiled in), but it actually uses less memory (RSS) - after startup. Even with "--disable-everything", this comparison is - a bit unfair, as many features unique to urxvt (locale, encoding - conversion, iso14755 etc.) are already in use in this mode. - - text data bss drs rss filename - 98398 1664 24 15695 1824 rxvt --disable-everything - 188985 9048 66616 18222 1788 urxvt --disable-everything - - When you "--enable-everything" (which _is_ unfair, as this involves - xft and full locale/XIM support which are quite bloaty inside libX11 - and my libc), the two diverge, but not unreasnobaly so. - - text data bss drs rss filename - 163431 2152 24 20123 2060 rxvt --enable-everything - 1035683 49680 66648 29096 3680 urxvt --enable-everything - - The very large size of the text section is explained by the - east-asian encoding tables, which, if unused, take up disk space but - nothing else and can be compiled out unless you rely on X11 core - fonts that use those encodings. The BSS size comes from the 64k - emergency buffer that my c++ compiler allocates (but of course - doesn't use unless you are out of memory). Also, using an xft font - instead of a core font immediately adds a few megabytes of RSS. Xft - indeed is responsible for a lot of RSS even when not used. - - Of course, due to every character using two or four bytes instead of - one, a large scrollback buffer will ultimately make rxvt-unicode use - more memory. - - Compared to e.g. Eterm (5112k), aterm (3132k) and xterm (4680k), - this still fares rather well. And compared to some monsters like - gnome-terminal (21152k + extra 4204k in separate processes) or - konsole (22200k + extra 43180k in daemons that stay around after - exit, plus half a minute of startup time, including the hundreds of - warnings it spits out), it fares extremely well *g*. - - Why C++, isn't that unportable/bloated/uncool? - Is this a question? :) It comes up very often. The simple answer is: - I had to write it, and C++ allowed me to write and maintain it in a - fraction of the time and effort (which is a scarce resource for me). - Put even shorter: It simply wouldn't exist without C++. - - My personal stance on this is that C++ is less portable than C, but - in the case of rxvt-unicode this hardly matters, as its portability - limits are defined by things like X11, pseudo terminals, locale - support and unix domain sockets, which are all less portable than - C++ itself. - - Regarding the bloat, see the above question: It's easy to write - programs in C that use gobs of memory, an certainly possible to - write programs in C++ that don't. C++ also often comes with large - libraries, but this is not necessarily the case with GCC. Here is - what rxvt links against on my system with a minimal config: - - libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) - libc.so.6 => /lib/libc.so.6 (0x00002aaaaadde000) - libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab01d000) - /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) - - And here is rxvt-unicode: - - libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) - libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaaada2000) - libc.so.6 => /lib/libc.so.6 (0x00002aaaaaeb0000) - libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab0ee000) - /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) - - No large bloated libraries (of course, none were linked in - statically), except maybe libX11 :) - - Does it support tabs, can I have a tabbed rxvt-unicode? - Beginning with version 7.3, there is a perl extension that - implements a simple tabbed terminal. It is installed by default, so - any of these should give you tabs: - - rxvt -pe tabbed - - URxvt.perl-ext-common: default,tabbed - - It will also work fine with tabbing functionality of many window - managers or similar tabbing programs, and its embedding-features - allow it to be embedded into other programs, as witnessed by - doc/rxvt-tabbed or the upcoming "Gtk2::URxvt" perl module, which - features a tabbed urxvt (murxvt) terminal as an example embedding - application. - - How do I know which rxvt-unicode version I'm using? - The version number is displayed with the usage (-h). Also the escape - sequence "ESC [ 8 n" sets the window title to the version number. - When using the rxvtc client, the version displayed is that of the - daemon. - - I am using Debian GNU/Linux and have a problem... - The Debian GNU/Linux package of rxvt-unicode in sarge contains large - patches that considerably change the behaviour of rxvt-unicode (but - unfortunately this notice has been removed). Before reporting a bug - to the original rxvt-unicode author please download and install the - genuine version (<http://software.schmorp.de#rxvt-unicode>) and try - to reproduce the problem. If you cannot, chances are that the - problems are specific to Debian GNU/Linux, in which case it should - be reported via the Debian Bug Tracking System (use "reportbug" to - report the bug). - - For other problems that also affect the Debian package, you can and - probably should use the Debian BTS, too, because, after all, it's - also a bug in the Debian version and it serves as a reminder for - other users that might encounter the same issue. - - I am maintaining rxvt-unicode for distribution/OS XXX, any - recommendation? - You should build one binary with the default options. configure now - enables most useful options, and the trend goes to making them - runtime-switchable, too, so there is usually no drawback to enbaling - them, except higher disk and possibly memory usage. The perl - interpreter should be enabled, as important functionality (menus, - selection, likely more in the future) depends on it. - - You should not overwrite the "perl-ext-common" snd "perl-ext" - resources system-wide (except maybe with "defaults"). This will - result in useful behaviour. If your distribution aims at low memory, - add an empty "perl-ext-common" resource to the app-defaults file. - This will keep the perl interpreter disabled until the user enables - it. + The cursor moves when selecting text in the current input line, how +do I switch this off? + During rlogin/ssh/telnet/etc. sessions, clicking near the cursor +outputs strange escape sequences, how do I fix this? + These are caused by the "readline" perl extension. Under normal + circumstances, it will move your cursor around when you click into the + line that contains it. It tries hard not to do this at the wrong moment, + but when running a program that doesn't parse cursor movements or in + some cases during rlogin sessions, it fails to detect this properly. + + You can permamently switch this feature off by disabling the "readline" + extension: + + URxvt.perl-ext-common: default,-readline - If you can/want build more binaries, I recommend building a minimal - one with "--disable-everything" (very useful) and a maximal one with - "--enable-everything" (less useful, it will be very big due to a lot - of encodings built-in that increase download times and are rarely - used). - - I need to make it setuid/setgid to support utmp/ptys on my OS, is this - safe? - It should be, starting with release 7.1. You are encouraged to - properly install urxvt with privileges necessary for your OS now. - - When rxvt-unicode detects that it runs setuid or setgid, it will - fork into a helper process for privileged operations (pty handling - on some systems, utmp/wtmp/lastlog handling on others) and drop - privileges immediately. This is much safer than most other terminals - that keep privileges while running (but is more relevant to urxvt, - as it contains things as perl interpreters, which might be "helpful" - to attackers). - - This forking is done as the very first within main(), which is very - early and reduces possible bugs to initialisation code run before - main(), or things like the dynamic loader of your system, which - should result in very little risk. - - When I log-in to another system it tells me about missing terminfo data? - The terminal description used by rxvt-unicode is not as widely - available as that for xterm, or even rxvt (for which the same - problem often arises). - - The correct solution for this problem is to install the terminfo, - this can be done like this (with ncurses' infocmp): - - REMOTE=remotesystem.domain - infocmp rxvt-unicode | ssh $REMOTE "cat >/tmp/ti && tic /tmp/ti" - - ... or by installing rxvt-unicode normally on the remote system, - - If you cannot or do not want to do this, then you can simply set - "TERM=rxvt" or even "TERM=xterm", and live with the small number of - problems arising, which includes wrong keymapping, less and - different colours and some refresh errors in fullscreen - applications. It's a nice quick-and-dirty workaround for rare cases, - though. - - If you always want to do this (and are fine with the consequences) - you can either recompile rxvt-unicode with the desired TERM value or - use a resource to set it: - - URxvt.termName: rxvt - - If you don't plan to use rxvt (quite common...) you could also - replace the rxvt terminfo file with the rxvt-unicode one. - - "tic" outputs some error when compiling the terminfo entry. - Most likely it's the empty definition for "enacs=". Just replace it - by "enacs=\E[0@" and try again. - - "bash"'s readline does not work correctly under rxvt. - I need a termcap file entry. - One reason you might want this is that some distributions or - operating systems still compile some programs using the - long-obsoleted termcap library (Fedora Core's bash is one example) - and rely on a termcap entry for "rxvt-unicode". - - You could use rxvt's termcap entry with resonable results in many - cases. You can also create a termcap entry by using terminfo's - infocmp program like this: - - infocmp -C rxvt-unicode - - Or you could use this termcap entry, generated by the command above: - - rxvt-unicode|rxvt-unicode terminal (X Window System):\ - :am:bw:eo:km:mi:ms:xn:xo:\ - :co#80:it#8:li#24:lm#0:\ - :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\ - :K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:LE=\E[%dD:\ - :RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=\E(B:al=\E[L:\ - :as=\E(0:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\ - :cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\ - :dl=\E[M:do=^J:ec=\E[%dX:ei=\E[4l:ho=\E[H:\ - :i1=\E[?47l\E=\E[?1l:ic=\E[@:im=\E[4h:\ - :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\ - :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\ - :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\ - :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\EOB:ke=\E[?1l\E>:\ - :kh=\E[7~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\ - :mb=\E[5m:md=\E[1m:me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:\ - :sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\ - :te=\E[r\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\E[A:\ - :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\ - :vs=\E[?25h: - - Why does "ls" no longer have coloured output? - The "ls" in the GNU coreutils unfortunately doesn't use terminfo to - decide wether a terminal has colour, but uses it's own configuration - file. Needless to say, "rxvt-unicode" is not in it's default file - (among with most other terminals supporting colour). Either add: - - TERM rxvt-unicode - - to "/etc/DIR_COLORS" or simply add: - - alias ls='ls --color=auto' - - to your ".profile" or ".bashrc". - - Why doesn't vim/emacs etc. use the 88 colour mode? - Why doesn't vim/emacs etc. make use of italic? - Why are the secondary screen-related options not working properly? - Make sure you are using "TERM=rxvt-unicode". Some pre-packaged - distributions (most notably Debian GNU/Linux) break rxvt-unicode by - setting "TERM" to "rxvt", which doesn't have these extra features. - Unfortunately, some of these (most notably, again, Debian GNU/Linux) - furthermore fail to even install the "rxvt-unicode" terminfo file, - so you will need to install it on your own (See the question When I - log-in to another system it tells me about missing terminfo data? on - how to do this). - - My numerical keypad acts weird and generates differing output? - Some Debian GNUL/Linux users seem to have this problem, although no - specific details were reported so far. It is possible that this is - caused by the wrong "TERM" setting, although the details of wether - and how this can happen are unknown, as "TERM=rxvt" should offer a - compatible keymap. See the answer to the previous question, and - please report if that helped. - - Rxvt-unicode does not seem to understand the selected encoding? - Unicode does not seem to work? - If you encounter strange problems like typing an accented character - but getting two unrelated other characters or similar, or if program - output is subtly garbled, then you should check your locale - settings. - - Rxvt-unicode must be started with the same "LC_CTYPE" setting as the - programs. Often rxvt-unicode is started in the "C" locale, while the - login script running within the rxvt-unicode window changes the - locale to something else, e.g. "en_GB.UTF-8". Needless to say, this - is not going to work. - - The best thing is to fix your startup environment, as you will - likely run into other problems. If nothing works you can try this in - your .profile. - - printf '\e]701;%s\007' "$LC_CTYPE" - - If this doesn't work, then maybe you use a "LC_CTYPE" specification - not supported on your systems. Some systems have a "locale" command - which displays this (also, "perl -e0" can be used to check locale - settings, as it will complain loudly if it cannot set the locale). - If it displays something like: - - locale: Cannot set LC_CTYPE to default locale: ... - - Then the locale you specified is not supported on your system. - - If nothing works and you are sure that everything is set correctly - then you will need to remember a little known fact: Some programs - just don't support locales :( - - Why do some characters look so much different than others? - How does rxvt-unicode choose fonts? - Most fonts do not contain the full range of Unicode, which is fine. - Chances are that the font you (or the admin/package maintainer of - your system/os) have specified does not cover all the characters you - want to display. - - rxvt-unicode makes a best-effort try at finding a replacement font. - Often the result is fine, but sometimes the chosen font looks - bad/ugly/wrong. Some fonts have totally strange characters that - don't resemble the correct glyph at all, and rxvt-unicode lacks the - artificial intelligence to detect that a specific glyph is wrong: it - has to believe the font that the characters it claims to contain - indeed look correct. - - In that case, select a font of your taste and add it to the font - list, e.g.: - - rxvt -fn basefont,font2,font3... - - When rxvt-unicode sees a character, it will first look at the base - font. If the base font does not contain the character, it will go to - the next font, and so on. Specifying your own fonts will also speed - up this search and use less resources within rxvt-unicode and the - X-server. - - The only limitation is that none of the fonts may be larger than the - base font, as the base font defines the terminal character cell - size, which must be the same due to the way terminals work. - - Why do some chinese characters look so different than others? - This is because there is a difference between script and language -- - rxvt-unicode does not know which language the text that is output - is, as it only knows the unicode character codes. If rxvt-unicode - first sees a japanese/chinese character, it might choose a japanese - font for display. Subsequent japanese characters will use that font. - Now, many chinese characters aren't represented in japanese fonts, - so when the first non-japanese character comes up, rxvt-unicode will - look for a chinese font -- unfortunately at this point, it will - still use the japanese font for chinese characters that are also in - the japanese font. - - The workaround is easy: just tag a chinese font at the end of your - font list (see the previous question). The key is to view the font - list as a preference list: If you expect more japanese, list a - japanese font first. If you expect more chinese, put a chinese font - first. - - In the future it might be possible to switch language preferences at - runtime (the internal data structure has no problem with using - different fonts for the same character at the same time, but no - interface for this has been designed yet). - - Until then, you might get away with switching fonts at runtime (see - "Can I switch the fonts at runtime?" later in this document). - - Why does rxvt-unicode sometimes leave pixel droppings? - Most fonts were not designed for terminal use, which means that - character size varies a lot. A font that is otherwise fine for - terminal use might contain some characters that are simply too wide. - Rxvt-unicode will avoid these characters. For characters that are - just "a bit" too wide a special "careful" rendering mode is used - that redraws adjacent characters. - - All of this requires that fonts do not lie about character sizes, - however: Xft fonts often draw glyphs larger than their acclaimed - bounding box, and rxvt-unicode has no way of detecting this (the - correct way is to ask for the character bounding box, which - unfortunately is wrong in these cases). - - It's not clear (to me at least), wether this is a bug in Xft, - freetype, or the respective font. If you encounter this problem you - might try using the "-lsp" option to give the font more height. If - that doesn't work, you might be forced to use a different font. - - All of this is not a problem when using X11 core fonts, as their - bounding box data is correct. - - On Solaris 9, many line-drawing characters are too wide. - Seems to be a known bug, read - <http://nixdoc.net/files/forum/about34198.html>. Some people use the - following ugly workaround to get non-double-wide-characters working: - - #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x) - - My Compose (Multi_key) key is no longer working. - The most common causes for this are that either your locale is not - set correctly, or you specified a preeditStyle that is not supported - by your input method. For example, if you specified OverTheSpot and - your input method (e.g. the default input method handling Compose - keys) does not support this (for instance because it is not visual), - then rxvt-unicode will continue without an input method. - - In this case either do not specify a preeditStyle or specify more - than one pre-edit style, such as OverTheSpot,Root,None. - - I cannot type "Ctrl-Shift-2" to get an ASCII NUL character due to ISO - 14755 - Either try "Ctrl-2" alone (it often is mapped to ASCII NUL even on - international keyboards) or simply use ISO 14755 support to your - advantage, typing <Ctrl-Shift-0> to get a ASCII NUL. This works for - other codes, too, such as "Ctrl-Shift-1-d" to type the default - telnet escape character and so on. - - How can I keep rxvt-unicode from using reverse video so much? - First of all, make sure you are running with the right terminal - settings ("TERM=rxvt-unicode"), which will get rid of most of these - effects. Then make sure you have specified colours for italic and - bold, as otherwise rxvt-unicode might use reverse video to simulate - the effect: - - URxvt.colorBD: white - URxvt.colorIT: green - - Some programs assume totally weird colours (red instead of blue), how - can I fix that? - For some unexplainable reason, some rare programs assume a very - weird colour palette when confronted with a terminal with more than - the standard 8 colours (rxvt-unicode supports 88). The right fix is, - of course, to fix these programs not to assume non-ISO colours - without very good reasons. - - In the meantime, you can either edit your "rxvt-unicode" terminfo - definition to only claim 8 colour support or use "TERM=rxvt", which - will fix colours but keep you from using other rxvt-unicode - features. - - I am on FreeBSD and rxvt-unicode does not seem to work at all. - Rxvt-unicode requires the symbol "__STDC_ISO_10646__" to be defined - in your compile environment, or an implementation that implements - it, wether it defines the symbol or not. "__STDC_ISO_10646__" - requires that wchar_t is represented as unicode. - - As you might have guessed, FreeBSD does neither define this symobl - nor does it support it. Instead, it uses it's own internal - representation of wchar_t. This is, of course, completely fine with - respect to standards. - - However, that means rxvt-unicode only works in "POSIX", "ISO-8859-1" - and "UTF-8" locales under FreeBSD (which all use Unicode as wchar_t. - - "__STDC_ISO_10646__" is the only sane way to support multi-language - apps in an OS, as using a locale-dependent (and non-standardized) - representation of wchar_t makes it impossible to convert between - wchar_t (as used by X11 and your applications) and any other - encoding without implementing OS-specific-wrappers for each and - every locale. There simply are no APIs to convert wchar_t into - anything except the current locale encoding. - - Some applications (such as the formidable mlterm) work around this - by carrying their own replacement functions for character set - handling with them, and either implementing OS-dependent hacks or - doing multiple conversions (which is slow and unreliable in case the - OS implements encodings slightly different than the terminal - emulator). - - The rxvt-unicode author insists that the right way to fix this is in - the system libraries once and for all, instead of forcing every app - to carry complete replacements for them :) - - I use Solaris 9 and it doesn't compile/work/etc. - Try the diff in doc/solaris9.patch as a base. It fixes the worst - problems with "wcwidth" and a compile problem. - - How can I use rxvt-unicode under cygwin? - rxvt-unicode should compile and run out of the box on cygwin, using - the X11 libraries that come with cygwin. libW11 emulation is no - longer supported (and makes no sense, either, as it only supported a - single font). I recommend starting the X-server in "-multiwindow" or - "-rootless" mode instead, which will result in similar look&feel as - the old libW11 emulation. - - At the time of this writing, cygwin didn't seem to support any - multi-byte encodings (you might try "LC_CTYPE=C-UTF-8"), so you are - likely limited to 8-bit encodings. - - How does rxvt-unicode determine the encoding to use? - Is there an option to switch encodings? - Unlike some other terminals, rxvt-unicode has no encoding switch, - and no specific "utf-8" mode, such as xterm. In fact, it doesn't - even know about UTF-8 or any other encodings with respect to - terminal I/O. - - The reasons is that there exists a perfectly fine mechanism for - selecting the encoding, doing I/O and (most important) communicating - this to all applications so everybody agrees on character properties - such as width and code number. This mechanism is the *locale*. - Applications not using that info will have problems (for example, - "xterm" gets the width of characters wrong as it uses it's own, - locale-independent table under all locales). - - Rxvt-unicode uses the "LC_CTYPE" locale category to select encoding. - All programs doing the same (that is, most) will automatically agree - in the interpretation of characters. - - Unfortunately, there is no system-independent way to select locales, - nor is there a standard on how locale specifiers will look like. - - On most systems, the content of the "LC_CTYPE" environment variable - contains an arbitrary string which corresponds to an - already-installed locale. Common names for locales are - "en_US.UTF-8", "de_DE.ISO-8859-15", "ja_JP.EUC-JP", i.e. - "language_country.encoding", but other forms (i.e. "de" or "german") - are also common. - - Rxvt-unicode ignores all other locale categories, and except for the - encoding, ignores country or language-specific settings, i.e. - "de_DE.UTF-8" and "ja_JP.UTF-8" are the normally same to - rxvt-unicode. - - If you want to use a specific encoding you have to make sure you - start rxvt-unicode with the correct "LC_CTYPE" category. - - Can I switch locales at runtime? - Yes, using an escape sequence. Try something like this, which sets - rxvt-unicode's idea of "LC_CTYPE". - - printf '\e]701;%s\007' ja_JP.SJIS - - See also the previous answer. - - Sometimes this capability is rather handy when you want to work in - one locale (e.g. "de_DE.UTF-8") but some programs don't support it - (e.g. UTF-8). For example, I use this script to start "xjdic", which - first switches to a locale supported by xjdic and back later: - - printf '\e]701;%s\007' ja_JP.SJIS - xjdic -js - printf '\e]701;%s\007' de_DE.UTF-8 - - You can also use xterm's "luit" program, which usually works fine, - except for some locales where character width differs between - program- and rxvt-unicode-locales. - - Can I switch the fonts at runtime? - Yes, using an escape sequence. Try something like this, which has - the same effect as using the "-fn" switch, and takes effect - immediately: - - printf '\e]50;%s\007' "9x15bold,xft:Kochi Gothic" - - This is useful if you e.g. work primarily with japanese (and prefer - a japanese font), but you have to switch to chinese temporarily, - where japanese fonts would only be in your way. - - You can think of this as a kind of manual ISO-2022 switching. - - Why do italic characters look as if clipped? - Many fonts have difficulties with italic characters and hinting. For - example, the otherwise very nicely hinted font "xft:Bitstream Vera - Sans Mono" completely fails in it's italic face. A workaround might - be to enable freetype autohinting, i.e. like this: - - URxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true - URxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true - - My input method wants <some encoding> but I want UTF-8, what can I do? - You can specify separate locales for the input method and the rest - of the terminal, using the resource "imlocale": - - URxvt.imlocale: ja_JP.EUC-JP - - Now you can start your terminal with "LC_CTYPE=ja_JP.UTF-8" and - still use your input method. Please note, however, that you will not - be able to input characters outside "EUC-JP" in a normal way then, - as your input method limits you. - - Rxvt-unicode crashes when the X Input Method changes or exits. - Unfortunately, this is unavoidable, as the XIM protocol is racy by - design. Applications can avoid some crashes at the expense of memory - leaks, and Input Methods can avoid some crashes by careful ordering - at exit time. kinput2 (and derived input methods) generally - succeeds, while SCIM (or similar input methods) fails. In the end, - however, crashes cannot be completely avoided even if both sides - cooperate. - - So the only workaround is not to kill your Input Method Servers. - - Rxvt-unicode uses gobs of memory, how can I reduce that? - Rxvt-unicode tries to obey the rule of not charging you for - something you don't use. One thing you should try is to configure - out all settings that you don't need, for example, Xft support is a - resource hog by design, when used. Compiling it out ensures that no - Xft font will be loaded accidentally when rxvt-unicode tries to find - a font for your characters. - - Also, many people (me included) like large windows and even larger - scrollback buffers: Without "--enable-unicode3", rxvt-unicode will - use 6 bytes per screen cell. For a 160x?? window this amounts to - almost a kilobyte per line. A scrollback buffer of 10000 lines will - then (if full) use 10 Megabytes of memory. With "--enable-unicode3" - it gets worse, as rxvt-unicode then uses 8 bytes per screen cell. - - Can I speed up Xft rendering somehow? - Yes, the most obvious way to speed it up is to avoid Xft entirely, - as it is simply slow. If you still want Xft fonts you might try to - disable antialiasing (by appending ":antialias=false"), which saves - lots of memory and also speeds up rendering considerably. - - Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong? - Rxvt-unicode will use whatever you specify as a font. If it needs to - fall back to it's default font search list it will prefer X11 core - fonts, because they are small and fast, and then use Xft fonts. It - has antialiasing disabled for most of them, because the author - thinks they look best that way. - - If you want antialiasing, you have to specify the fonts manually. - - Mouse cut/paste suddenly no longer works. - Make sure that mouse reporting is actually turned off since killing - some editors prematurely may leave the mouse in mouse report mode. - I've heard that tcsh may use mouse reporting unless it otherwise - specified. A quick check is to see if cut/paste works when the Alt - or Shift keys are depressed. - - What's with this bold/blink stuff? - If no bold colour is set via "colorBD:", bold will invert text using - the standard foreground colour. - - For the standard background colour, blinking will actually make the - text blink when compiled with "--enable-blinking". with standard - colours. Without "--enable-blinking", the blink attribute will be - ignored. - - On ANSI colours, bold/blink attributes are used to set - high-intensity foreground/background colors. - - color0-7 are the low-intensity colors. - - color8-15 are the corresponding high-intensity colors. - - I don't like the screen colors. How do I change them? - You can change the screen colors at run-time using ~/.Xdefaults - resources (or as long-options). - - Here are values that are supposed to resemble a VGA screen, - including the murky brown that passes for low-intensity yellow: - - URxvt.color0: #000000 - URxvt.color1: #A80000 - URxvt.color2: #00A800 - URxvt.color3: #A8A800 - URxvt.color4: #0000A8 - URxvt.color5: #A800A8 - URxvt.color6: #00A8A8 - URxvt.color7: #A8A8A8 - - URxvt.color8: #000054 - URxvt.color9: #FF0054 - URxvt.color10: #00FF54 - URxvt.color11: #FFFF54 - URxvt.color12: #0000FF - URxvt.color13: #FF00FF - URxvt.color14: #00FFFF - URxvt.color15: #FFFFFF - - And here is a more complete set of non-standard colors described - (not by me) as "pretty girly". - - URxvt.cursorColor: #dc74d1 - URxvt.pointerColor: #dc74d1 - URxvt.background: #0e0e0e - URxvt.foreground: #4ad5e1 - URxvt.color0: #000000 - URxvt.color8: #8b8f93 - URxvt.color1: #dc74d1 - URxvt.color9: #dc74d1 - URxvt.color2: #0eb8c7 - URxvt.color10: #0eb8c7 - URxvt.color3: #dfe37e - URxvt.color11: #dfe37e - URxvt.color5: #9e88f0 - URxvt.color13: #9e88f0 - URxvt.color6: #73f7ff - URxvt.color14: #73f7ff - URxvt.color7: #e1dddd - URxvt.color15: #e1dddd - - How can I start rxvtd in a race-free way? - Try "rxvtd -f -o", which tells rxvtd to open the display, create the - listening socket and then fork. - - What's with the strange Backspace/Delete key behaviour? - Assuming that the physical Backspace key corresponds to the - BackSpace keysym (not likely for Linux ... see the following - question) there are two standard values that can be used for - Backspace: "^H" and "^?". - - Historically, either value is correct, but rxvt-unicode adopts the - debian policy of using "^?" when unsure, because it's the one only - only correct choice :). - - Rxvt-unicode tries to inherit the current stty settings and uses the - value of `erase' to guess the value for backspace. If rxvt-unicode - wasn't started from a terminal (say, from a menu or by remote - shell), then the system value of `erase', which corresponds to - CERASE in <termios.h>, will be used (which may not be the same as - your stty setting). - - For starting a new rxvt-unicode: - - # use Backspace = ^H - $ stty erase ^H - $ rxvt - - # use Backspace = ^? - $ stty erase ^? - $ rxvt - - Toggle with "ESC [ 36 h" / "ESC [ 36 l". - - For an existing rxvt-unicode: - - # use Backspace = ^H - $ stty erase ^H - $ echo -n "^[[36h" - - # use Backspace = ^? - $ stty erase ^? - $ echo -n "^[[36l" - - This helps satisfy some of the Backspace discrepancies that occur, - but if you use Backspace = "^H", make sure that the termcap/terminfo - value properly reflects that. - - The Delete key is a another casualty of the ill-defined Backspace - problem. To avoid confusion between the Backspace and Delete keys, - the Delete key has been assigned an escape sequence to match the - vt100 for Execute ("ESC [ 3 ~") and is in the supplied - termcap/terminfo. - - Some other Backspace problems: - - some editors use termcap/terminfo, some editors (vim I'm told) - expect Backspace = ^H, GNU Emacs (and Emacs-like editors) use ^H for - help. - - Perhaps someday this will all be resolved in a consistent manner. - - I don't like the key-bindings. How do I change them? - There are some compile-time selections available via configure. - Unless you have run "configure" with the "--disable-resources" - option you can use the `keysym' resource to alter the keystrings - associated with keysyms. - - Here's an example for a URxvt session started using "rxvt -name - URxvt" - - URxvt.keysym.Home: \033[1~ - URxvt.keysym.End: \033[4~ - URxvt.keysym.C-apostrophe: \033<C-'> - URxvt.keysym.C-slash: \033<C-/> - URxvt.keysym.C-semicolon: \033<C-;> - URxvt.keysym.C-grave: \033<C-`> - URxvt.keysym.C-comma: \033<C-,> - URxvt.keysym.C-period: \033<C-.> - URxvt.keysym.C-0x60: \033<C-`> - URxvt.keysym.C-Tab: \033<C-Tab> - URxvt.keysym.C-Return: \033<C-Return> - URxvt.keysym.S-Return: \033<S-Return> - URxvt.keysym.S-space: \033<S-Space> - URxvt.keysym.M-Up: \033<M-Up> - URxvt.keysym.M-Down: \033<M-Down> - URxvt.keysym.M-Left: \033<M-Left> - URxvt.keysym.M-Right: \033<M-Right> - URxvt.keysym.M-C-0: list \033<M-C- 0123456789 > - URxvt.keysym.M-C-a: list \033<M-C- abcdefghijklmnopqrstuvwxyz > - URxvt.keysym.F12: command:\033]701;zh_CN.GBK\007 - - See some more examples in the documentation for the keysym resource. - - I'm using keyboard model XXX that has extra Prior/Next/Insert keys. How - do I make use of them? For example, the Sun Keyboard type 4 has the - following mappings that rxvt-unicode doesn't recognize. - KP_Insert == Insert - F22 == Print - F27 == Home - F29 == Prior - F33 == End - F35 == Next - - Rather than have rxvt-unicode try to accommodate all the various - possible keyboard mappings, it is better to use `xmodmap' to remap - the keys as required for your particular machine. - - How do I distinguish wether I'm running rxvt-unicode or a regular xterm? - I need this to decide about setting colors etc. - rxvt and rxvt-unicode always export the variable "COLORTERM", so you - can check and see if that is set. Note that several programs, JED, - slrn, Midnight Commander automatically check this variable to decide - whether or not to use color. - - How do I set the correct, full IP address for the DISPLAY variable? - If you've compiled rxvt-unicode with DISPLAY_IS_IP and have enabled - insecure mode then it is possible to use the following shell script - snippets to correctly set the display. If your version of - rxvt-unicode wasn't also compiled with ESCZ_ANSWER (as assumed in - these snippets) then the COLORTERM variable can be used to - distinguish rxvt-unicode from a regular xterm. - - Courtesy of Chuck Blake <cblake@BBN.COM> with the following shell - script snippets: - - # Bourne/Korn/POSIX family of shells: - [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know - if [ ${TERM:-foo} = xterm ]; then - stty -icanon -echo min 0 time 15 # see if enhanced rxvt or not - echo -n '^[Z' - read term_id - stty icanon echo - if [ ""${term_id} = '^[[?1;2C' -a ${DISPLAY:-foo} = foo ]; then - echo -n '^[[7n' # query the rxvt we are in for the DISPLAY string - read DISPLAY # set it in our local shell - fi - fi - - How do I compile the manual pages for myself? - You need to have a recent version of perl installed as - /usr/bin/perl, one that comes with pod2man, pod2text and pod2html. - Then go to the doc subdirectory and enter "make alldoc". - - My question isn't answered here, can I ask a human? - Before sending me mail, you could go to IRC: "irc.freenode.net", - channel "#rxvt-unicode" has some rxvt-unicode enthusiasts that might - be interested in learning about new and exciting problems (but not - FAQs :). + Why doesn't rxvt-unicode read my resources? + Well, why, indeed? It does, in a way very similar to other X + applications. Most importantly, this means that if you or your OS loads + resources into the X display (the right way to do it), rxvt-unicode will + ignore any resource files in your home directory. It will only read + $HOME/.Xdefaults when no resources are attached to the display. + + If you have or use an $HOME/.Xresources file, chances are that resources + are loaded into your X-server. In this case, you have to re-login after + every change (or run xrdb -merge $HOME/.Xresources). + + Also consider the form resources have to use: + + URxvt.resource: value + + If you want to use another form (there are lots of different ways of + specifying resources), make sure you understand wether and why it works. + If unsure, use the form above. + + I can't get transparency working, what am I doing wrong? + First of all, transparency isn't officially supported in rxvt-unicode, + so you are mostly on your own. Do not bug the author about it (but you + may bug everybody else). Also, if you can't get it working consider it a + rite of passage: ... and you failed. + + Here are four ways to get transparency. Do read the manpage and option + descriptions for the programs mentioned and rxvt-unicode. Really, do it! + + 1. Use inheritPixmap: + + Esetroot wallpaper.jpg + rxvt -ip -tint red -sh 40 + + That works. If you think it doesn't, you lack transparency and tinting + support, or you are unable to read. + + 2. Use a simple pixmap and emulate pseudo-transparency. This enables you + to use effects other than tinting and shading: Just shade/tint/whatever + your picture with gimp: + + convert wallpaper.jpg -blur 20x20 -modulate 30 background.xpm + rxvt -pixmap background.xpm -pe automove-background + + That works. If you think it doesn't, you lack XPM and Perl support, or + you are unable to read. + + 3. Use an ARGB visual: + + rxvt -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc + + This requires XFT support, and the support of your X-server. If that + doesn't work for you, blame Xorg and Keith Packard. ARGB visuals aren't + there yet, no matter what they claim. Rxvt-Unicode contains the + neccessary bugfixes and workarounds for Xft and Xlib to make it work, + but that doesn't mean that your WM has the required kludges in place. + + 4. Use xcompmgr and let it do the job: + + xprop -frame -f _NET_WM_WINDOW_OPACITY 32c \ + -set _NET_WM_WINDOW_OPACITY 0xc0000000 + + Then click on a window you want to make transparent. Replace 0xc0000000 + by other values to change the degree of opacity. If it doesn't work and + your server crashes, you got to keep the pieces. + + Isn't rxvt supposed to be small? Don't all those features bloat? + I often get asked about this, and I think, no, they didn't cause extra + bloat. If you compare a minimal rxvt and a minimal urxvt, you can see + that the urxvt binary is larger (due to some encoding tables always + being compiled in), but it actually uses less memory (RSS) after + startup. Even with "--disable-everything", this comparison is a bit + unfair, as many features unique to urxvt (locale, encoding conversion, + iso14755 etc.) are already in use in this mode. + + text data bss drs rss filename + 98398 1664 24 15695 1824 rxvt --disable-everything + 188985 9048 66616 18222 1788 urxvt --disable-everything + + When you "--enable-everything" (which _is_ unfair, as this involves xft + and full locale/XIM support which are quite bloaty inside libX11 and my + libc), the two diverge, but not unreasnobaly so. + + text data bss drs rss filename + 163431 2152 24 20123 2060 rxvt --enable-everything + 1035683 49680 66648 29096 3680 urxvt --enable-everything + + The very large size of the text section is explained by the east-asian + encoding tables, which, if unused, take up disk space but nothing else + and can be compiled out unless you rely on X11 core fonts that use those + encodings. The BSS size comes from the 64k emergency buffer that my c++ + compiler allocates (but of course doesn't use unless you are out of + memory). Also, using an xft font instead of a core font immediately adds + a few megabytes of RSS. Xft indeed is responsible for a lot of RSS even + when not used. + + Of course, due to every character using two or four bytes instead of + one, a large scrollback buffer will ultimately make rxvt-unicode use + more memory. + + Compared to e.g. Eterm (5112k), aterm (3132k) and xterm (4680k), this + still fares rather well. And compared to some monsters like + gnome-terminal (21152k + extra 4204k in separate processes) or konsole + (22200k + extra 43180k in daemons that stay around after exit, plus half + a minute of startup time, including the hundreds of warnings it spits + out), it fares extremely well *g*. + + Why C++, isn't that unportable/bloated/uncool? + Is this a question? :) It comes up very often. The simple answer is: I + had to write it, and C++ allowed me to write and maintain it in a + fraction of the time and effort (which is a scarce resource for me). Put + even shorter: It simply wouldn't exist without C++. + + My personal stance on this is that C++ is less portable than C, but in + the case of rxvt-unicode this hardly matters, as its portability limits + are defined by things like X11, pseudo terminals, locale support and + unix domain sockets, which are all less portable than C++ itself. + + Regarding the bloat, see the above question: It's easy to write programs + in C that use gobs of memory, an certainly possible to write programs in + C++ that don't. C++ also often comes with large libraries, but this is + not necessarily the case with GCC. Here is what rxvt links against on my + system with a minimal config: + + libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) + libc.so.6 => /lib/libc.so.6 (0x00002aaaaadde000) + libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab01d000) + /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) + + And here is rxvt-unicode: + + libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002aaaaabc3000) + libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaaada2000) + libc.so.6 => /lib/libc.so.6 (0x00002aaaaaeb0000) + libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab0ee000) + /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) + + No large bloated libraries (of course, none were linked in statically), + except maybe libX11 :) + + Does it support tabs, can I have a tabbed rxvt-unicode? + Beginning with version 7.3, there is a perl extension that implements a + simple tabbed terminal. It is installed by default, so any of these + should give you tabs: + + rxvt -pe tabbed + + URxvt.perl-ext-common: default,tabbed + + It will also work fine with tabbing functionality of many window + managers or similar tabbing programs, and its embedding-features allow + it to be embedded into other programs, as witnessed by doc/rxvt-tabbed + or the upcoming "Gtk2::URxvt" perl module, which features a tabbed urxvt + (murxvt) terminal as an example embedding application. + + How do I know which rxvt-unicode version I'm using? + The version number is displayed with the usage (-h). Also the escape + sequence "ESC [ 8 n" sets the window title to the version number. When + using the rxvtc client, the version displayed is that of the daemon. + + I am using Debian GNU/Linux and have a problem... + The Debian GNU/Linux package of rxvt-unicode in sarge contains large + patches that considerably change the behaviour of rxvt-unicode (but + unfortunately this notice has been removed). Before reporting a bug to + the original rxvt-unicode author please download and install the genuine + version (<http://software.schmorp.de#rxvt-unicode>) and try to reproduce + the problem. If you cannot, chances are that the problems are specific + to Debian GNU/Linux, in which case it should be reported via the Debian + Bug Tracking System (use "reportbug" to report the bug). + + For other problems that also affect the Debian package, you can and + probably should use the Debian BTS, too, because, after all, it's also a + bug in the Debian version and it serves as a reminder for other users + that might encounter the same issue. + + I am maintaining rxvt-unicode for distribution/OS XXX, any +recommendation? + You should build one binary with the default options. configure now + enables most useful options, and the trend goes to making them + runtime-switchable, too, so there is usually no drawback to enbaling + them, except higher disk and possibly memory usage. The perl interpreter + should be enabled, as important functionality (menus, selection, likely + more in the future) depends on it. + + You should not overwrite the "perl-ext-common" snd "perl-ext" resources + system-wide (except maybe with "defaults"). This will result in useful + behaviour. If your distribution aims at low memory, add an empty + "perl-ext-common" resource to the app-defaults file. This will keep the + perl interpreter disabled until the user enables it. + + If you can/want build more binaries, I recommend building a minimal one + with "--disable-everything" (very useful) and a maximal one with + "--enable-everything" (less useful, it will be very big due to a lot of + encodings built-in that increase download times and are rarely used). + + I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe? + It should be, starting with release 7.1. You are encouraged to properly + install urxvt with privileges necessary for your OS now. + + When rxvt-unicode detects that it runs setuid or setgid, it will fork + into a helper process for privileged operations (pty handling on some + systems, utmp/wtmp/lastlog handling on others) and drop privileges + immediately. This is much safer than most other terminals that keep + privileges while running (but is more relevant to urxvt, as it contains + things as perl interpreters, which might be "helpful" to attackers). + + This forking is done as the very first within main(), which is very + early and reduces possible bugs to initialisation code run before + main(), or things like the dynamic loader of your system, which should + result in very little risk. + + When I log-in to another system it tells me about missing terminfo data? + The terminal description used by rxvt-unicode is not as widely available + as that for xterm, or even rxvt (for which the same problem often + arises). + + The correct solution for this problem is to install the terminfo, this + can be done like this (with ncurses' infocmp): + + REMOTE=remotesystem.domain + infocmp rxvt-unicode | ssh $REMOTE "cat >/tmp/ti && tic /tmp/ti" + + ... or by installing rxvt-unicode normally on the remote system, + + If you cannot or do not want to do this, then you can simply set + "TERM=rxvt" or even "TERM=xterm", and live with the small number of + problems arising, which includes wrong keymapping, less and different + colours and some refresh errors in fullscreen applications. It's a nice + quick-and-dirty workaround for rare cases, though. + + If you always want to do this (and are fine with the consequences) you + can either recompile rxvt-unicode with the desired TERM value or use a + resource to set it: + + URxvt.termName: rxvt + + If you don't plan to use rxvt (quite common...) you could also replace + the rxvt terminfo file with the rxvt-unicode one. + + "tic" outputs some error when compiling the terminfo entry. + Most likely it's the empty definition for "enacs=". Just replace it by + "enacs=\E[0@" and try again. + + "bash"'s readline does not work correctly under rxvt. + I need a termcap file entry. + One reason you might want this is that some distributions or operating + systems still compile some programs using the long-obsoleted termcap + library (Fedora Core's bash is one example) and rely on a termcap entry + for "rxvt-unicode". + + You could use rxvt's termcap entry with resonable results in many cases. + You can also create a termcap entry by using terminfo's infocmp program + like this: + + infocmp -C rxvt-unicode + + Or you could use this termcap entry, generated by the command above: + + rxvt-unicode|rxvt-unicode terminal (X Window System):\ + :am:bw:eo:km:mi:ms:xn:xo:\ + :co#80:it#8:li#24:lm#0:\ + :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\ + :K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:LE=\E[%dD:\ + :RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=\E(B:al=\E[L:\ + :as=\E(0:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\ + :cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\ + :dl=\E[M:do=^J:ec=\E[%dX:ei=\E[4l:ho=\E[H:\ + :i1=\E[?47l\E=\E[?1l:ic=\E[@:im=\E[4h:\ + :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\ + :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\ + :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\ + :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\EOB:ke=\E[?1l\E>:\ + :kh=\E[7~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\ + :mb=\E[5m:md=\E[1m:me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:\ + :sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\ + :te=\E[r\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\E[A:\ + :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\ + :vs=\E[?25h: + + Why does "ls" no longer have coloured output? + The "ls" in the GNU coreutils unfortunately doesn't use terminfo to + decide wether a terminal has colour, but uses it's own configuration + file. Needless to say, "rxvt-unicode" is not in it's default file (among + with most other terminals supporting colour). Either add: + + TERM rxvt-unicode + + to "/etc/DIR_COLORS" or simply add: + + alias ls='ls --color=auto' + + to your ".profile" or ".bashrc". + + Why doesn't vim/emacs etc. use the 88 colour mode? + Why doesn't vim/emacs etc. make use of italic? + Why are the secondary screen-related options not working properly? + Make sure you are using "TERM=rxvt-unicode". Some pre-packaged + distributions (most notably Debian GNU/Linux) break rxvt-unicode by + setting "TERM" to "rxvt", which doesn't have these extra features. + Unfortunately, some of these (most notably, again, Debian GNU/Linux) + furthermore fail to even install the "rxvt-unicode" terminfo file, so + you will need to install it on your own (See the question When I log-in + to another system it tells me about missing terminfo data? on how to do + this). + + My numerical keypad acts weird and generates differing output? + Some Debian GNUL/Linux users seem to have this problem, although no + specific details were reported so far. It is possible that this is + caused by the wrong "TERM" setting, although the details of wether and + how this can happen are unknown, as "TERM=rxvt" should offer a + compatible keymap. See the answer to the previous question, and please + report if that helped. + + Rxvt-unicode does not seem to understand the selected encoding? + Unicode does not seem to work? + If you encounter strange problems like typing an accented character but + getting two unrelated other characters or similar, or if program output + is subtly garbled, then you should check your locale settings. + + Rxvt-unicode must be started with the same "LC_CTYPE" setting as the + programs. Often rxvt-unicode is started in the "C" locale, while the + login script running within the rxvt-unicode window changes the locale + to something else, e.g. "en_GB.UTF-8". Needless to say, this is not + going to work. + + The best thing is to fix your startup environment, as you will likely + run into other problems. If nothing works you can try this in your + .profile. + + printf '\e]701;%s\007' "$LC_CTYPE" + + If this doesn't work, then maybe you use a "LC_CTYPE" specification not + supported on your systems. Some systems have a "locale" command which + displays this (also, "perl -e0" can be used to check locale settings, as + it will complain loudly if it cannot set the locale). If it displays + something like: + + locale: Cannot set LC_CTYPE to default locale: ... + + Then the locale you specified is not supported on your system. + + If nothing works and you are sure that everything is set correctly then + you will need to remember a little known fact: Some programs just don't + support locales :( + + Why do some characters look so much different than others? + How does rxvt-unicode choose fonts? + Most fonts do not contain the full range of Unicode, which is fine. + Chances are that the font you (or the admin/package maintainer of your + system/os) have specified does not cover all the characters you want to + display. + + rxvt-unicode makes a best-effort try at finding a replacement font. + Often the result is fine, but sometimes the chosen font looks + bad/ugly/wrong. Some fonts have totally strange characters that don't + resemble the correct glyph at all, and rxvt-unicode lacks the artificial + intelligence to detect that a specific glyph is wrong: it has to believe + the font that the characters it claims to contain indeed look correct. + + In that case, select a font of your taste and add it to the font list, + e.g.: + + rxvt -fn basefont,font2,font3... + + When rxvt-unicode sees a character, it will first look at the base font. + If the base font does not contain the character, it will go to the next + font, and so on. Specifying your own fonts will also speed up this + search and use less resources within rxvt-unicode and the X-server. + + The only limitation is that none of the fonts may be larger than the + base font, as the base font defines the terminal character cell size, + which must be the same due to the way terminals work. + + Why do some chinese characters look so different than others? + This is because there is a difference between script and language -- + rxvt-unicode does not know which language the text that is output is, as + it only knows the unicode character codes. If rxvt-unicode first sees a + japanese/chinese character, it might choose a japanese font for display. + Subsequent japanese characters will use that font. Now, many chinese + characters aren't represented in japanese fonts, so when the first + non-japanese character comes up, rxvt-unicode will look for a chinese + font -- unfortunately at this point, it will still use the japanese font + for chinese characters that are also in the japanese font. + + The workaround is easy: just tag a chinese font at the end of your font + list (see the previous question). The key is to view the font list as a + preference list: If you expect more japanese, list a japanese font + first. If you expect more chinese, put a chinese font first. + + In the future it might be possible to switch language preferences at + runtime (the internal data structure has no problem with using different + fonts for the same character at the same time, but no interface for this + has been designed yet). + + Until then, you might get away with switching fonts at runtime (see "Can + I switch the fonts at runtime?" later in this document). + + Why does rxvt-unicode sometimes leave pixel droppings? + Most fonts were not designed for terminal use, which means that + character size varies a lot. A font that is otherwise fine for terminal + use might contain some characters that are simply too wide. Rxvt-unicode + will avoid these characters. For characters that are just "a bit" too + wide a special "careful" rendering mode is used that redraws adjacent + characters. + + All of this requires that fonts do not lie about character sizes, + however: Xft fonts often draw glyphs larger than their acclaimed + bounding box, and rxvt-unicode has no way of detecting this (the correct + way is to ask for the character bounding box, which unfortunately is + wrong in these cases). + + It's not clear (to me at least), wether this is a bug in Xft, freetype, + or the respective font. If you encounter this problem you might try + using the "-lsp" option to give the font more height. If that doesn't + work, you might be forced to use a different font. + + All of this is not a problem when using X11 core fonts, as their + bounding box data is correct. + + On Solaris 9, many line-drawing characters are too wide. + Seems to be a known bug, read + <http://nixdoc.net/files/forum/about34198.html>. Some people use the + following ugly workaround to get non-double-wide-characters working: + + #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x) + + My Compose (Multi_key) key is no longer working. + The most common causes for this are that either your locale is not set + correctly, or you specified a preeditStyle that is not supported by your + input method. For example, if you specified OverTheSpot and your input + method (e.g. the default input method handling Compose keys) does not + support this (for instance because it is not visual), then rxvt-unicode + will continue without an input method. + + In this case either do not specify a preeditStyle or specify more than + one pre-edit style, such as OverTheSpot,Root,None. + + I cannot type "Ctrl-Shift-2" to get an ASCII NUL character due to ISO 14755 + Either try "Ctrl-2" alone (it often is mapped to ASCII NUL even on + international keyboards) or simply use ISO 14755 support to your + advantage, typing <Ctrl-Shift-0> to get a ASCII NUL. This works for + other codes, too, such as "Ctrl-Shift-1-d" to type the default telnet + escape character and so on. + + How can I keep rxvt-unicode from using reverse video so much? + First of all, make sure you are running with the right terminal settings + ("TERM=rxvt-unicode"), which will get rid of most of these effects. Then + make sure you have specified colours for italic and bold, as otherwise + rxvt-unicode might use reverse video to simulate the effect: + + URxvt.colorBD: white + URxvt.colorIT: green + + Some programs assume totally weird colours (red instead of blue), how can I fix that? + For some unexplainable reason, some rare programs assume a very weird + colour palette when confronted with a terminal with more than the + standard 8 colours (rxvt-unicode supports 88). The right fix is, of + course, to fix these programs not to assume non-ISO colours without very + good reasons. + + In the meantime, you can either edit your "rxvt-unicode" terminfo + definition to only claim 8 colour support or use "TERM=rxvt", which will + fix colours but keep you from using other rxvt-unicode features. + + I am on FreeBSD and rxvt-unicode does not seem to work at all. + Rxvt-unicode requires the symbol "__STDC_ISO_10646__" to be defined in + your compile environment, or an implementation that implements it, + wether it defines the symbol or not. "__STDC_ISO_10646__" requires that + wchar_t is represented as unicode. + + As you might have guessed, FreeBSD does neither define this symobl nor + does it support it. Instead, it uses it's own internal representation of + wchar_t. This is, of course, completely fine with respect to standards. + + However, that means rxvt-unicode only works in "POSIX", "ISO-8859-1" and + "UTF-8" locales under FreeBSD (which all use Unicode as wchar_t. + + "__STDC_ISO_10646__" is the only sane way to support multi-language apps + in an OS, as using a locale-dependent (and non-standardized) + representation of wchar_t makes it impossible to convert between wchar_t + (as used by X11 and your applications) and any other encoding without + implementing OS-specific-wrappers for each and every locale. There + simply are no APIs to convert wchar_t into anything except the current + locale encoding. + + Some applications (such as the formidable mlterm) work around this by + carrying their own replacement functions for character set handling with + them, and either implementing OS-dependent hacks or doing multiple + conversions (which is slow and unreliable in case the OS implements + encodings slightly different than the terminal emulator). + + The rxvt-unicode author insists that the right way to fix this is in the + system libraries once and for all, instead of forcing every app to carry + complete replacements for them :) + + I use Solaris 9 and it doesn't compile/work/etc. + Try the diff in doc/solaris9.patch as a base. It fixes the worst + problems with "wcwidth" and a compile problem. + + How can I use rxvt-unicode under cygwin? + rxvt-unicode should compile and run out of the box on cygwin, using the + X11 libraries that come with cygwin. libW11 emulation is no longer + supported (and makes no sense, either, as it only supported a single + font). I recommend starting the X-server in "-multiwindow" or + "-rootless" mode instead, which will result in similar look&feel as the + old libW11 emulation. + + At the time of this writing, cygwin didn't seem to support any + multi-byte encodings (you might try "LC_CTYPE=C-UTF-8"), so you are + likely limited to 8-bit encodings. + + How does rxvt-unicode determine the encoding to use? + Is there an option to switch encodings? + Unlike some other terminals, rxvt-unicode has no encoding switch, and no + specific "utf-8" mode, such as xterm. In fact, it doesn't even know + about UTF-8 or any other encodings with respect to terminal I/O. + + The reasons is that there exists a perfectly fine mechanism for + selecting the encoding, doing I/O and (most important) communicating + this to all applications so everybody agrees on character properties + such as width and code number. This mechanism is the *locale*. + Applications not using that info will have problems (for example, + "xterm" gets the width of characters wrong as it uses it's own, + locale-independent table under all locales). + + Rxvt-unicode uses the "LC_CTYPE" locale category to select encoding. All + programs doing the same (that is, most) will automatically agree in the + interpretation of characters. + + Unfortunately, there is no system-independent way to select locales, nor + is there a standard on how locale specifiers will look like. + + On most systems, the content of the "LC_CTYPE" environment variable + contains an arbitrary string which corresponds to an already-installed + locale. Common names for locales are "en_US.UTF-8", "de_DE.ISO-8859-15", + "ja_JP.EUC-JP", i.e. "language_country.encoding", but other forms (i.e. + "de" or "german") are also common. + + Rxvt-unicode ignores all other locale categories, and except for the + encoding, ignores country or language-specific settings, i.e. + "de_DE.UTF-8" and "ja_JP.UTF-8" are the normally same to rxvt-unicode. + + If you want to use a specific encoding you have to make sure you start + rxvt-unicode with the correct "LC_CTYPE" category. + + Can I switch locales at runtime? + Yes, using an escape sequence. Try something like this, which sets + rxvt-unicode's idea of "LC_CTYPE". + + printf '\e]701;%s\007' ja_JP.SJIS + + See also the previous answer. + + Sometimes this capability is rather handy when you want to work in one + locale (e.g. "de_DE.UTF-8") but some programs don't support it (e.g. + UTF-8). For example, I use this script to start "xjdic", which first + switches to a locale supported by xjdic and back later: + + printf '\e]701;%s\007' ja_JP.SJIS + xjdic -js + printf '\e]701;%s\007' de_DE.UTF-8 + + You can also use xterm's "luit" program, which usually works fine, + except for some locales where character width differs between program- + and rxvt-unicode-locales. + + Can I switch the fonts at runtime? + Yes, using an escape sequence. Try something like this, which has the + same effect as using the "-fn" switch, and takes effect immediately: + + printf '\e]50;%s\007' "9x15bold,xft:Kochi Gothic" + + This is useful if you e.g. work primarily with japanese (and prefer a + japanese font), but you have to switch to chinese temporarily, where + japanese fonts would only be in your way. + + You can think of this as a kind of manual ISO-2022 switching. + + Why do italic characters look as if clipped? + Many fonts have difficulties with italic characters and hinting. For + example, the otherwise very nicely hinted font "xft:Bitstream Vera Sans + Mono" completely fails in it's italic face. A workaround might be to + enable freetype autohinting, i.e. like this: + + URxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true + URxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true + + My input method wants <some encoding> but I want UTF-8, what can I do? + You can specify separate locales for the input method and the rest of + the terminal, using the resource "imlocale": + + URxvt.imlocale: ja_JP.EUC-JP + + Now you can start your terminal with "LC_CTYPE=ja_JP.UTF-8" and still + use your input method. Please note, however, that you will not be able + to input characters outside "EUC-JP" in a normal way then, as your input + method limits you. + + Rxvt-unicode crashes when the X Input Method changes or exits. + Unfortunately, this is unavoidable, as the XIM protocol is racy by + design. Applications can avoid some crashes at the expense of memory + leaks, and Input Methods can avoid some crashes by careful ordering at + exit time. kinput2 (and derived input methods) generally succeeds, while + SCIM (or similar input methods) fails. In the end, however, crashes + cannot be completely avoided even if both sides cooperate. + + So the only workaround is not to kill your Input Method Servers. + + Rxvt-unicode uses gobs of memory, how can I reduce that? + Rxvt-unicode tries to obey the rule of not charging you for something + you don't use. One thing you should try is to configure out all settings + that you don't need, for example, Xft support is a resource hog by + design, when used. Compiling it out ensures that no Xft font will be + loaded accidentally when rxvt-unicode tries to find a font for your + characters. + + Also, many people (me included) like large windows and even larger + scrollback buffers: Without "--enable-unicode3", rxvt-unicode will use 6 + bytes per screen cell. For a 160x?? window this amounts to almost a + kilobyte per line. A scrollback buffer of 10000 lines will then (if + full) use 10 Megabytes of memory. With "--enable-unicode3" it gets + worse, as rxvt-unicode then uses 8 bytes per screen cell. + + Can I speed up Xft rendering somehow? + Yes, the most obvious way to speed it up is to avoid Xft entirely, as it + is simply slow. If you still want Xft fonts you might try to disable + antialiasing (by appending ":antialias=false"), which saves lots of + memory and also speeds up rendering considerably. + + Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong? + Rxvt-unicode will use whatever you specify as a font. If it needs to + fall back to it's default font search list it will prefer X11 core + fonts, because they are small and fast, and then use Xft fonts. It has + antialiasing disabled for most of them, because the author thinks they + look best that way. + + If you want antialiasing, you have to specify the fonts manually. + + Mouse cut/paste suddenly no longer works. + Make sure that mouse reporting is actually turned off since killing some + editors prematurely may leave the mouse in mouse report mode. I've heard + that tcsh may use mouse reporting unless it otherwise specified. A quick + check is to see if cut/paste works when the Alt or Shift keys are + depressed. + + What's with this bold/blink stuff? + If no bold colour is set via "colorBD:", bold will invert text using the + standard foreground colour. + + For the standard background colour, blinking will actually make the text + blink when compiled with "--enable-blinking". with standard colours. + Without "--enable-blinking", the blink attribute will be ignored. + + On ANSI colours, bold/blink attributes are used to set high-intensity + foreground/background colors. + + color0-7 are the low-intensity colors. + + color8-15 are the corresponding high-intensity colors. + + I don't like the screen colors. How do I change them? + You can change the screen colors at run-time using ~/.Xdefaults + resources (or as long-options). + + Here are values that are supposed to resemble a VGA screen, including + the murky brown that passes for low-intensity yellow: + + URxvt.color0: #000000 + URxvt.color1: #A80000 + URxvt.color2: #00A800 + URxvt.color3: #A8A800 + URxvt.color4: #0000A8 + URxvt.color5: #A800A8 + URxvt.color6: #00A8A8 + URxvt.color7: #A8A8A8 + + URxvt.color8: #000054 + URxvt.color9: #FF0054 + URxvt.color10: #00FF54 + URxvt.color11: #FFFF54 + URxvt.color12: #0000FF + URxvt.color13: #FF00FF + URxvt.color14: #00FFFF + URxvt.color15: #FFFFFF + + And here is a more complete set of non-standard colors described (not by + me) as "pretty girly". + + URxvt.cursorColor: #dc74d1 + URxvt.pointerColor: #dc74d1 + URxvt.background: #0e0e0e + URxvt.foreground: #4ad5e1 + URxvt.color0: #000000 + URxvt.color8: #8b8f93 + URxvt.color1: #dc74d1 + URxvt.color9: #dc74d1 + URxvt.color2: #0eb8c7 + URxvt.color10: #0eb8c7 + URxvt.color3: #dfe37e + URxvt.color11: #dfe37e + URxvt.color5: #9e88f0 + URxvt.color13: #9e88f0 + URxvt.color6: #73f7ff + URxvt.color14: #73f7ff + URxvt.color7: #e1dddd + URxvt.color15: #e1dddd + + How can I start rxvtd in a race-free way? + Try "rxvtd -f -o", which tells rxvtd to open the display, create the + listening socket and then fork. + + What's with the strange Backspace/Delete key behaviour? + Assuming that the physical Backspace key corresponds to the BackSpace + keysym (not likely for Linux ... see the following question) there are + two standard values that can be used for Backspace: "^H" and "^?". + + Historically, either value is correct, but rxvt-unicode adopts the + debian policy of using "^?" when unsure, because it's the one only only + correct choice :). + + Rxvt-unicode tries to inherit the current stty settings and uses the + value of `erase' to guess the value for backspace. If rxvt-unicode + wasn't started from a terminal (say, from a menu or by remote shell), + then the system value of `erase', which corresponds to CERASE in + <termios.h>, will be used (which may not be the same as your stty + setting). + + For starting a new rxvt-unicode: + + # use Backspace = ^H + $ stty erase ^H + $ rxvt + + # use Backspace = ^? + $ stty erase ^? + $ rxvt + + Toggle with "ESC [ 36 h" / "ESC [ 36 l". + + For an existing rxvt-unicode: + + # use Backspace = ^H + $ stty erase ^H + $ echo -n "^[[36h" + + # use Backspace = ^? + $ stty erase ^? + $ echo -n "^[[36l" + + This helps satisfy some of the Backspace discrepancies that occur, but + if you use Backspace = "^H", make sure that the termcap/terminfo value + properly reflects that. + + The Delete key is a another casualty of the ill-defined Backspace + problem. To avoid confusion between the Backspace and Delete keys, the + Delete key has been assigned an escape sequence to match the vt100 for + Execute ("ESC [ 3 ~") and is in the supplied termcap/terminfo. + + Some other Backspace problems: + + some editors use termcap/terminfo, some editors (vim I'm told) expect + Backspace = ^H, GNU Emacs (and Emacs-like editors) use ^H for help. + + Perhaps someday this will all be resolved in a consistent manner. + + I don't like the key-bindings. How do I change them? + There are some compile-time selections available via configure. Unless + you have run "configure" with the "--disable-resources" option you can + use the `keysym' resource to alter the keystrings associated with + keysyms. + + Here's an example for a URxvt session started using "rxvt -name URxvt" + + URxvt.keysym.Home: \033[1~ + URxvt.keysym.End: \033[4~ + URxvt.keysym.C-apostrophe: \033<C-'> + URxvt.keysym.C-slash: \033<C-/> + URxvt.keysym.C-semicolon: \033<C-;> + URxvt.keysym.C-grave: \033<C-`> + URxvt.keysym.C-comma: \033<C-,> + URxvt.keysym.C-period: \033<C-.> + URxvt.keysym.C-0x60: \033<C-`> + URxvt.keysym.C-Tab: \033<C-Tab> + URxvt.keysym.C-Return: \033<C-Return> + URxvt.keysym.S-Return: \033<S-Return> + URxvt.keysym.S-space: \033<S-Space> + URxvt.keysym.M-Up: \033<M-Up> + URxvt.keysym.M-Down: \033<M-Down> + URxvt.keysym.M-Left: \033<M-Left> + URxvt.keysym.M-Right: \033<M-Right> + URxvt.keysym.M-C-0: list \033<M-C- 0123456789 > + URxvt.keysym.M-C-a: list \033<M-C- abcdefghijklmnopqrstuvwxyz > + URxvt.keysym.F12: command:\033]701;zh_CN.GBK\007 + + See some more examples in the documentation for the keysym resource. + + I'm using keyboard model XXX that has extra Prior/Next/Insert keys. +How do I make use of them? For example, the Sun Keyboard type 4 +has the following mappings that rxvt-unicode doesn't recognize. + KP_Insert == Insert + F22 == Print + F27 == Home + F29 == Prior + F33 == End + F35 == Next + + Rather than have rxvt-unicode try to accommodate all the various + possible keyboard mappings, it is better to use `xmodmap' to remap the + keys as required for your particular machine. + + How do I distinguish wether I'm running rxvt-unicode or a regular xterm? +I need this to decide about setting colors etc. + rxvt and rxvt-unicode always export the variable "COLORTERM", so you can + check and see if that is set. Note that several programs, JED, slrn, + Midnight Commander automatically check this variable to decide whether + or not to use color. + + How do I set the correct, full IP address for the DISPLAY variable? + If you've compiled rxvt-unicode with DISPLAY_IS_IP and have enabled + insecure mode then it is possible to use the following shell script + snippets to correctly set the display. If your version of rxvt-unicode + wasn't also compiled with ESCZ_ANSWER (as assumed in these snippets) + then the COLORTERM variable can be used to distinguish rxvt-unicode from + a regular xterm. + + Courtesy of Chuck Blake <cblake@BBN.COM> with the following shell script + snippets: + + # Bourne/Korn/POSIX family of shells: + [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know + if [ ${TERM:-foo} = xterm ]; then + stty -icanon -echo min 0 time 15 # see if enhanced rxvt or not + echo -n '^[Z' + read term_id + stty icanon echo + if [ ""${term_id} = '^[[?1;2C' -a ${DISPLAY:-foo} = foo ]; then + echo -n '^[[7n' # query the rxvt we are in for the DISPLAY string + read DISPLAY # set it in our local shell + fi + fi + + How do I compile the manual pages for myself? + You need to have a recent version of perl installed as /usr/bin/perl, + one that comes with pod2man, pod2text and pod2html. Then go to the doc + subdirectory and enter "make alldoc". + + My question isn't answered here, can I ask a human? + Before sending me mail, you could go to IRC: "irc.freenode.net", channel + "#rxvt-unicode" has some rxvt-unicode enthusiasts that might be + interested in learning about new and exciting problems (but not FAQs :). RXVT TECHNICAL REFERENCE DESCRIPTION
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 11:48:57 2024