… | |
… | |
16 | =head1 DESCRIPTION |
16 | =head1 DESCRIPTION |
17 | |
17 | |
18 | This document contains the FAQ, the RXVT TECHNICAL REFERENCE documenting |
18 | This document contains the FAQ, the RXVT TECHNICAL REFERENCE documenting |
19 | all escape sequences, and other background information. |
19 | all escape sequences, and other background information. |
20 | |
20 | |
21 | The newest version of this document is |
21 | The newest version of this document is also available on the World Wide Web at |
22 | also available on the World Wide Web at |
|
|
23 | L<http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxvt.7.html>. |
22 | L<http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxvt.7.html>. |
24 | |
23 | |
25 | =head1 FREQUENTLY ASKED QUESTIONS |
24 | =head1 FREQUENTLY ASKED QUESTIONS |
26 | |
25 | |
27 | =over 4 |
26 | =head2 The new selection selects pieces that are too big, how can I select single words? |
28 | |
27 | |
|
|
28 | If you want to select e.g. alphanumeric words, you can use the following |
|
|
29 | setting: |
|
|
30 | |
|
|
31 | URxvt.selection.pattern-0: ([[:word:]]+) |
|
|
32 | |
|
|
33 | If you click more than twice, the selection will be extended |
|
|
34 | more and more. |
|
|
35 | |
|
|
36 | To get a selection that is very similar to the old code, try this pattern: |
|
|
37 | |
|
|
38 | URxvt.selection.pattern-0: ([^"&'()*,;<=>?@[\\\\]^`{|})]+) |
|
|
39 | |
|
|
40 | Please also note that the I<LeftClick Shift-LeftClik> combination also |
|
|
41 | selects words like the old code. |
|
|
42 | |
|
|
43 | =head2 I don't like the new selection/popups/hotkeys/perl, how do I change/disable it? |
|
|
44 | |
|
|
45 | You can disable the perl extension completely by setting the |
|
|
46 | B<perl-ext-common> resource to the empty string, which also keeps |
|
|
47 | rxvt-unicode from initialising perl, saving memory. |
|
|
48 | |
|
|
49 | If you only want to disable specific features, you first have to |
|
|
50 | identify which perl extension is responsible. For this, read the section |
|
|
51 | B<PREPACKAGED EXTENSIONS> in the @@RXVT_NAME@@perl(3) manpage. For |
|
|
52 | example, to disable the B<selection-popup> and B<option-popup>, specify |
|
|
53 | this B<perl-ext-common> resource: |
|
|
54 | |
|
|
55 | URxvt.perl-ext-common: default,-selection-popup,-option-popup |
|
|
56 | |
|
|
57 | This will keep the default extensions, but disable the two popup |
|
|
58 | extensions. Some extensions can also be configured, for example, |
|
|
59 | scrollback search mode is triggered by B<M-s>. You can move it to any |
|
|
60 | other combination either by setting the B<searchable-scrollback> resource: |
|
|
61 | |
|
|
62 | URxvt.searchable-scrollback: CM-s |
|
|
63 | |
|
|
64 | =head2 The cursor moves when selecting text in the current input line, how do I switch this off? |
|
|
65 | |
|
|
66 | See next entry. |
|
|
67 | |
|
|
68 | =head2 During rlogin/ssh/telnet/etc. sessions, clicking near the cursor outputs strange escape sequences, how do I fix this? |
|
|
69 | |
|
|
70 | These are caused by the C<readline> perl extension. Under normal |
|
|
71 | circumstances, it will move your cursor around when you click into the |
|
|
72 | line that contains it. It tries hard not to do this at the wrong moment, |
|
|
73 | but when running a program that doesn't parse cursor movements or in some |
|
|
74 | cases during rlogin sessions, it fails to detect this properly. |
|
|
75 | |
|
|
76 | You can permamently switch this feature off by disabling the C<readline> |
|
|
77 | extension: |
|
|
78 | |
|
|
79 | URxvt.perl-ext-common: default,-readline |
|
|
80 | |
|
|
81 | =head2 Why doesn't rxvt-unicode read my resources? |
|
|
82 | |
|
|
83 | Well, why, indeed? It does, in a way very similar to other X |
|
|
84 | applications. Most importantly, this means that if you or your OS loads |
|
|
85 | resources into the X display (the right way to do it), rxvt-unicode will |
|
|
86 | ignore any resource files in your home directory. It will only read |
|
|
87 | F<$HOME/.Xdefaults> when no resources are attached to the display. |
|
|
88 | |
|
|
89 | If you have or use an F<$HOME/.Xresources> file, chances are that |
|
|
90 | resources are loaded into your X-server. In this case, you have to |
|
|
91 | re-login after every change (or run F<xrdb -merge $HOME/.Xresources>). |
|
|
92 | |
|
|
93 | Also consider the form resources have to use: |
|
|
94 | |
|
|
95 | URxvt.resource: value |
|
|
96 | |
|
|
97 | If you want to use another form (there are lots of different ways of |
|
|
98 | specifying resources), make sure you understand wether and why it |
|
|
99 | works. If unsure, use the form above. |
|
|
100 | |
|
|
101 | =head2 I can't get transparency working, what am I doing wrong? |
|
|
102 | |
|
|
103 | First of all, transparency isn't officially supported in rxvt-unicode, so |
|
|
104 | you are mostly on your own. Do not bug the author about it (but you may |
|
|
105 | bug everybody else). Also, if you can't get it working consider it a rite |
|
|
106 | of passage: ... and you failed. |
|
|
107 | |
|
|
108 | Here are four ways to get transparency. B<Do> read the manpage and option |
|
|
109 | descriptions for the programs mentioned and rxvt-unicode. Really, do it! |
|
|
110 | |
|
|
111 | 1. Use inheritPixmap: |
|
|
112 | |
|
|
113 | Esetroot wallpaper.jpg |
|
|
114 | @@RXVT_NAME@@ -ip -tint red -sh 40 |
|
|
115 | |
|
|
116 | That works. If you think it doesn't, you lack transparency and tinting |
|
|
117 | support, or you are unable to read. |
|
|
118 | |
|
|
119 | 2. Use a simple pixmap and emulate pseudo-transparency. This enables you |
|
|
120 | to use effects other than tinting and shading: Just shade/tint/whatever |
|
|
121 | your picture with gimp: |
|
|
122 | |
|
|
123 | convert wallpaper.jpg -blur 20x20 -modulate 30 background.xpm |
|
|
124 | @@RXVT_NAME@@ -pixmap background.xpm -pe automove-background |
|
|
125 | |
|
|
126 | That works. If you think it doesn't, you lack XPM and Perl support, or you |
|
|
127 | are unable to read. |
|
|
128 | |
|
|
129 | 3. Use an ARGB visual: |
|
|
130 | |
|
|
131 | @@RXVT_NAME@@ -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc |
|
|
132 | |
|
|
133 | This requires XFT support, and the support of your X-server. If that |
|
|
134 | doesn't work for you, blame Xorg and Keith Packard. ARGB visuals aren't |
|
|
135 | there yet, no matter what they claim. Rxvt-Unicode contains the neccessary |
|
|
136 | bugfixes and workarounds for Xft and Xlib to make it work, but that |
|
|
137 | doesn't mean that your WM has the required kludges in place. |
|
|
138 | |
|
|
139 | 4. Use xcompmgr and let it do the job: |
|
|
140 | |
|
|
141 | xprop -frame -f _NET_WM_WINDOW_OPACITY 32c \ |
|
|
142 | -set _NET_WM_WINDOW_OPACITY 0xc0000000 |
|
|
143 | |
|
|
144 | Then click on a window you want to make transparent. Replace C<0xc0000000> |
|
|
145 | by other values to change the degree of opacity. If it doesn't work and |
|
|
146 | your server crashes, you got to keep the pieces. |
|
|
147 | |
29 | =item Isn't rxvt supposed to be small? Don't all those features bloat? |
148 | =head2 Isn't rxvt supposed to be small? Don't all those features bloat? |
30 | |
149 | |
31 | I often get asked about this, and I think, no, they didn't cause extra |
150 | I often get asked about this, and I think, no, they didn't cause extra |
32 | bloat. If you compare a minimal rxvt and a minimal urxvt, you can see |
151 | bloat. If you compare a minimal rxvt and a minimal urxvt, you can see |
33 | that the urxvt binary is larger (due to some encoding tables always being |
152 | that the urxvt binary is larger (due to some encoding tables always being |
34 | compiled in), but it actually uses less memory (RSS) after startup. Even |
153 | compiled in), but it actually uses less memory (RSS) after startup. Even |
… | |
… | |
66 | (21152k + extra 4204k in separate processes) or konsole (22200k + extra |
185 | (21152k + extra 4204k in separate processes) or konsole (22200k + extra |
67 | 43180k in daemons that stay around after exit, plus half a minute of |
186 | 43180k in daemons that stay around after exit, plus half a minute of |
68 | startup time, including the hundreds of warnings it spits out), it fares |
187 | startup time, including the hundreds of warnings it spits out), it fares |
69 | extremely well *g*. |
188 | extremely well *g*. |
70 | |
189 | |
71 | =item Why C++, isn't that unportable/bloated/uncool? |
190 | =head2 Why C++, isn't that unportable/bloated/uncool? |
72 | |
191 | |
73 | Is this a question? :) It comes up very often. The simple answer is: I had |
192 | Is this a question? :) It comes up very often. The simple answer is: I had |
74 | to write it, and C++ allowed me to write and maintain it in a fraction |
193 | to write it, and C++ allowed me to write and maintain it in a fraction |
75 | of the time and effort (which is a scarce resource for me). Put even |
194 | of the time and effort (which is a scarce resource for me). Put even |
76 | shorter: It simply wouldn't exist without C++. |
195 | shorter: It simply wouldn't exist without C++. |
… | |
… | |
100 | /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) |
219 | /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000) |
101 | |
220 | |
102 | No large bloated libraries (of course, none were linked in statically), |
221 | No large bloated libraries (of course, none were linked in statically), |
103 | except maybe libX11 :) |
222 | except maybe libX11 :) |
104 | |
223 | |
105 | =item Does it support tabs, can I have a tabbed rxvt-unicode? |
224 | =head2 Does it support tabs, can I have a tabbed rxvt-unicode? |
106 | |
225 | |
107 | rxvt-unicode does not directly support tabs. It will work fine with |
226 | Beginning with version 7.3, there is a perl extension that implements a |
108 | tabbing functionality of many window managers or similar tabbing programs, |
227 | simple tabbed terminal. It is installed by default, so any of these should |
109 | and its embedding-features allow it to be embedded into other programs, |
228 | give you tabs: |
110 | as witnessed by F<doc/rxvt-tabbed> or the upcoming C<Gtk2::URxvt> perl |
|
|
111 | module, which features a tabbed urxvt (murxvt) terminal as an example |
|
|
112 | embedding application. |
|
|
113 | |
229 | |
|
|
230 | @@RXVT_NAME@@ -pe tabbed |
|
|
231 | |
|
|
232 | URxvt.perl-ext-common: default,tabbed |
|
|
233 | |
|
|
234 | It will also work fine with tabbing functionality of many window managers |
|
|
235 | or similar tabbing programs, and its embedding-features allow it to be |
|
|
236 | embedded into other programs, as witnessed by F<doc/rxvt-tabbed> or |
|
|
237 | the upcoming C<Gtk2::URxvt> perl module, which features a tabbed urxvt |
|
|
238 | (murxvt) terminal as an example embedding application. |
|
|
239 | |
114 | =item How do I know which rxvt-unicode version I'm using? |
240 | =head2 How do I know which rxvt-unicode version I'm using? |
115 | |
241 | |
116 | The version number is displayed with the usage (-h). Also the escape |
242 | The version number is displayed with the usage (-h). Also the escape |
117 | sequence C<ESC [ 8 n> sets the window title to the version number. When |
243 | sequence C<ESC [ 8 n> sets the window title to the version number. When |
118 | using the @@RXVT_NAME@@c client, the version displayed is that of the |
244 | using the @@RXVT_NAME@@c client, the version displayed is that of the |
119 | daemon. |
245 | daemon. |
120 | |
246 | |
121 | =item I am using Debian GNU/Linux and have a problem... |
247 | =head2 I am using Debian GNU/Linux and have a problem... |
122 | |
248 | |
123 | The Debian GNU/Linux package of rxvt-unicode in sarge contains large |
249 | The Debian GNU/Linux package of rxvt-unicode in sarge contains large |
124 | patches that considerably change the behaviour of rxvt-unicode. Before |
250 | patches that considerably change the behaviour of rxvt-unicode (but |
125 | reporting a bug to the original rxvt-unicode author please download and |
251 | unfortunately this notice has been removed). Before reporting a bug to |
126 | install the genuine version (L<http://software.schmorp.de#rxvt-unicode>) |
252 | the original rxvt-unicode author please download and install the genuine |
127 | and try to reproduce the problem. If you cannot, chances are that the |
253 | version (L<http://software.schmorp.de#rxvt-unicode>) and try to reproduce |
128 | problems are specific to Debian GNU/Linux, in which case it should be |
254 | the problem. If you cannot, chances are that the problems are specific to |
129 | reported via the Debian Bug Tracking System (use C<reportbug> to report |
255 | Debian GNU/Linux, in which case it should be reported via the Debian Bug |
130 | the bug). |
256 | Tracking System (use C<reportbug> to report the bug). |
131 | |
257 | |
132 | For other problems that also affect the Debian package, you can and |
258 | For other problems that also affect the Debian package, you can and |
133 | probably should use the Debian BTS, too, because, after all, it's also a |
259 | probably should use the Debian BTS, too, because, after all, it's also a |
134 | bug in the Debian version and it serves as a reminder for other users that |
260 | bug in the Debian version and it serves as a reminder for other users that |
135 | might encounter the same issue. |
261 | might encounter the same issue. |
136 | |
262 | |
137 | =item I am maintaining rxvt-unicode for distribution/OS XXX, any recommendation? |
263 | =head2 I am maintaining rxvt-unicode for distribution/OS XXX, any recommendation? |
138 | |
264 | |
139 | You should build one binary with the default options. F<configure> |
265 | You should build one binary with the default options. F<configure> |
140 | now enables most useful options, and the trend goes to making them |
266 | now enables most useful options, and the trend goes to making them |
141 | runtime-switchable, too, so there is usually no drawback to enbaling them, |
267 | runtime-switchable, too, so there is usually no drawback to enbaling them, |
142 | except higher disk and possibly memory usage. The perl interpreter should |
268 | except higher disk and possibly memory usage. The perl interpreter should |
… | |
… | |
152 | If you can/want build more binaries, I recommend building a minimal |
278 | If you can/want build more binaries, I recommend building a minimal |
153 | one with C<--disable-everything> (very useful) and a maximal one with |
279 | one with C<--disable-everything> (very useful) and a maximal one with |
154 | C<--enable-everything> (less useful, it will be very big due to a lot of |
280 | C<--enable-everything> (less useful, it will be very big due to a lot of |
155 | encodings built-in that increase download times and are rarely used). |
281 | encodings built-in that increase download times and are rarely used). |
156 | |
282 | |
157 | =item I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe? |
283 | =head2 I need to make it setuid/setgid to support utmp/ptys on my OS, is this safe? |
158 | |
284 | |
159 | Likely not. While I honestly try to make it secure, and am probably |
285 | It should be, starting with release 7.1. You are encouraged to properly |
160 | not bad at it, I think it is simply unreasonable to expect all of |
286 | install urxvt with privileges necessary for your OS now. |
161 | freetype + fontconfig + xft + xlib + ... + rxvt-unicode itself to all be |
|
|
162 | secure. Also, rxvt-unicode disables some options when it detects that it |
|
|
163 | runs setuid or setgid, which is not nice. |
|
|
164 | |
287 | |
165 | Elevated privileges are only required for utmp and pty operations on some |
288 | When rxvt-unicode detects that it runs setuid or setgid, it will fork |
166 | systems (for example, GNU/Linux doesn't need any extra privileges for |
289 | into a helper process for privileged operations (pty handling on some |
167 | ptys, but some need it for utmp support). If rxvt-unicode doesn't support |
290 | systems, utmp/wtmp/lastlog handling on others) and drop privileges |
168 | the library/setuid helper that your OS needs I'll be happy to assist you |
291 | immediately. This is much safer than most other terminals that keep |
169 | in implementing support for it. |
292 | privileges while running (but is more relevant to urxvt, as it contains |
|
|
293 | things as perl interpreters, which might be "helpful" to attackers). |
170 | |
294 | |
171 | So, while setuid/setgid operation is supported and not a problem on your |
295 | This forking is done as the very first within main(), which is very early |
172 | typical single-user-no-other-logins unix desktop, always remember that |
296 | and reduces possible bugs to initialisation code run before main(), or |
173 | its an awful lot of code, most of which isn't checked for security issues |
297 | things like the dynamic loader of your system, which should result in very |
174 | regularly. |
298 | little risk. |
175 | |
299 | |
176 | =item When I log-in to another system it tells me about missing terminfo data? |
300 | =head2 When I log-in to another system it tells me about missing terminfo data? |
177 | |
301 | |
178 | The terminal description used by rxvt-unicode is not as widely available |
302 | The terminal description used by rxvt-unicode is not as widely available |
179 | as that for xterm, or even rxvt (for which the same problem often arises). |
303 | as that for xterm, or even rxvt (for which the same problem often arises). |
180 | |
304 | |
181 | The correct solution for this problem is to install the terminfo, this can |
305 | The correct solution for this problem is to install the terminfo, this can |
… | |
… | |
199 | URxvt.termName: rxvt |
323 | URxvt.termName: rxvt |
200 | |
324 | |
201 | If you don't plan to use B<rxvt> (quite common...) you could also replace |
325 | If you don't plan to use B<rxvt> (quite common...) you could also replace |
202 | the rxvt terminfo file with the rxvt-unicode one. |
326 | the rxvt terminfo file with the rxvt-unicode one. |
203 | |
327 | |
204 | =item C<tic> outputs some error when compiling the terminfo entry. |
328 | =head2 C<tic> outputs some error when compiling the terminfo entry. |
205 | |
329 | |
206 | Most likely it's the empty definition for C<enacs=>. Just replace it by |
330 | Most likely it's the empty definition for C<enacs=>. Just replace it by |
207 | C<enacs=\E[0@> and try again. |
331 | C<enacs=\E[0@> and try again. |
208 | |
332 | |
209 | =item C<bash>'s readline does not work correctly under @@RXVT_NAME@@. |
333 | =head2 C<bash>'s readline does not work correctly under @@RXVT_NAME@@. |
210 | |
334 | |
|
|
335 | See next entry. |
|
|
336 | |
211 | =item I need a termcap file entry. |
337 | =head2 I need a termcap file entry. |
212 | |
338 | |
213 | One reason you might want this is that some distributions or operating |
339 | One reason you might want this is that some distributions or operating |
214 | systems still compile some programs using the long-obsoleted termcap |
340 | systems still compile some programs using the long-obsoleted termcap |
215 | library (Fedora Core's bash is one example) and rely on a termcap entry |
341 | library (Fedora Core's bash is one example) and rely on a termcap entry |
216 | for C<rxvt-unicode>. |
342 | for C<rxvt-unicode>. |
… | |
… | |
242 | :sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\ |
368 | :sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\ |
243 | :te=\E[r\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\E[A:\ |
369 | :te=\E[r\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\E[A:\ |
244 | :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\ |
370 | :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\ |
245 | :vs=\E[?25h: |
371 | :vs=\E[?25h: |
246 | |
372 | |
247 | =item Why does C<ls> no longer have coloured output? |
373 | =head2 Why does C<ls> no longer have coloured output? |
248 | |
374 | |
249 | The C<ls> in the GNU coreutils unfortunately doesn't use terminfo to |
375 | The C<ls> in the GNU coreutils unfortunately doesn't use terminfo to |
250 | decide wether a terminal has colour, but uses it's own configuration |
376 | decide wether a terminal has colour, but uses it's own configuration |
251 | file. Needless to say, C<rxvt-unicode> is not in it's default file (among |
377 | file. Needless to say, C<rxvt-unicode> is not in it's default file (among |
252 | with most other terminals supporting colour). Either add: |
378 | with most other terminals supporting colour). Either add: |
… | |
… | |
257 | |
383 | |
258 | alias ls='ls --color=auto' |
384 | alias ls='ls --color=auto' |
259 | |
385 | |
260 | to your C<.profile> or C<.bashrc>. |
386 | to your C<.profile> or C<.bashrc>. |
261 | |
387 | |
262 | =item Why doesn't vim/emacs etc. use the 88 colour mode? |
388 | =head2 Why doesn't vim/emacs etc. use the 88 colour mode? |
263 | |
389 | |
|
|
390 | See next entry. |
|
|
391 | |
264 | =item Why doesn't vim/emacs etc. make use of italic? |
392 | =head2 Why doesn't vim/emacs etc. make use of italic? |
265 | |
393 | |
|
|
394 | See next entry. |
|
|
395 | |
266 | =item Why are the secondary screen-related options not working properly? |
396 | =head2 Why are the secondary screen-related options not working properly? |
267 | |
397 | |
268 | Make sure you are using C<TERM=rxvt-unicode>. Some pre-packaged |
398 | Make sure you are using C<TERM=rxvt-unicode>. Some pre-packaged |
269 | distributions (most notably Debian GNU/Linux) break rxvt-unicode |
399 | distributions (most notably Debian GNU/Linux) break rxvt-unicode |
270 | by setting C<TERM> to C<rxvt>, which doesn't have these extra |
400 | by setting C<TERM> to C<rxvt>, which doesn't have these extra |
271 | features. Unfortunately, some of these (most notably, again, Debian |
401 | features. Unfortunately, some of these (most notably, again, Debian |
272 | GNU/Linux) furthermore fail to even install the C<rxvt-unicode> terminfo |
402 | GNU/Linux) furthermore fail to even install the C<rxvt-unicode> terminfo |
273 | file, so you will need to install it on your own (See the question B<When |
403 | file, so you will need to install it on your own (See the question B<When |
274 | I log-in to another system it tells me about missing terminfo data?> on |
404 | I log-in to another system it tells me about missing terminfo data?> on |
275 | how to do this). |
405 | how to do this). |
276 | |
406 | |
277 | =item My numerical keypad acts weird and generates differing output? |
407 | =head2 My numerical keypad acts weird and generates differing output? |
278 | |
408 | |
279 | Some Debian GNUL/Linux users seem to have this problem, although no |
409 | Some Debian GNUL/Linux users seem to have this problem, although no |
280 | specific details were reported so far. It is possible that this is caused |
410 | specific details were reported so far. It is possible that this is caused |
281 | by the wrong C<TERM> setting, although the details of wether and how |
411 | by the wrong C<TERM> setting, although the details of wether and how |
282 | this can happen are unknown, as C<TERM=rxvt> should offer a compatible |
412 | this can happen are unknown, as C<TERM=rxvt> should offer a compatible |
283 | keymap. See the answer to the previous question, and please report if that |
413 | keymap. See the answer to the previous question, and please report if that |
284 | helped. |
414 | helped. |
285 | |
415 | |
286 | =item Rxvt-unicode does not seem to understand the selected encoding? |
416 | =head2 Rxvt-unicode does not seem to understand the selected encoding? |
287 | |
417 | |
|
|
418 | See next entry. |
|
|
419 | |
288 | =item Unicode does not seem to work? |
420 | =head2 Unicode does not seem to work? |
289 | |
421 | |
290 | If you encounter strange problems like typing an accented character but |
422 | If you encounter strange problems like typing an accented character but |
291 | getting two unrelated other characters or similar, or if program output is |
423 | getting two unrelated other characters or similar, or if program output is |
292 | subtly garbled, then you should check your locale settings. |
424 | subtly garbled, then you should check your locale settings. |
293 | |
425 | |
… | |
… | |
313 | |
445 | |
314 | If nothing works and you are sure that everything is set correctly then |
446 | If nothing works and you are sure that everything is set correctly then |
315 | you will need to remember a little known fact: Some programs just don't |
447 | you will need to remember a little known fact: Some programs just don't |
316 | support locales :( |
448 | support locales :( |
317 | |
449 | |
318 | =item Why do some characters look so much different than others? |
450 | =head2 Why do some characters look so much different than others? |
319 | |
451 | |
|
|
452 | See next entry. |
|
|
453 | |
320 | =item How does rxvt-unicode choose fonts? |
454 | =head2 How does rxvt-unicode choose fonts? |
321 | |
455 | |
322 | Most fonts do not contain the full range of Unicode, which is |
456 | Most fonts do not contain the full range of Unicode, which is |
323 | fine. Chances are that the font you (or the admin/package maintainer of |
457 | fine. Chances are that the font you (or the admin/package maintainer of |
324 | your system/os) have specified does not cover all the characters you want |
458 | your system/os) have specified does not cover all the characters you want |
325 | to display. |
459 | to display. |
… | |
… | |
343 | |
477 | |
344 | The only limitation is that none of the fonts may be larger than the base |
478 | The only limitation is that none of the fonts may be larger than the base |
345 | font, as the base font defines the terminal character cell size, which |
479 | font, as the base font defines the terminal character cell size, which |
346 | must be the same due to the way terminals work. |
480 | must be the same due to the way terminals work. |
347 | |
481 | |
348 | =item Why do some chinese characters look so different than others? |
482 | =head2 Why do some chinese characters look so different than others? |
349 | |
483 | |
350 | This is because there is a difference between script and language -- |
484 | This is because there is a difference between script and language -- |
351 | rxvt-unicode does not know which language the text that is output is, |
485 | rxvt-unicode does not know which language the text that is output is, |
352 | as it only knows the unicode character codes. If rxvt-unicode first |
486 | as it only knows the unicode character codes. If rxvt-unicode first |
353 | sees a japanese/chinese character, it might choose a japanese font for |
487 | sees a japanese/chinese character, it might choose a japanese font for |
… | |
… | |
368 | has been designed yet). |
502 | has been designed yet). |
369 | |
503 | |
370 | Until then, you might get away with switching fonts at runtime (see L<Can |
504 | Until then, you might get away with switching fonts at runtime (see L<Can |
371 | I switch the fonts at runtime?> later in this document). |
505 | I switch the fonts at runtime?> later in this document). |
372 | |
506 | |
373 | =item Why does rxvt-unicode sometimes leave pixel droppings? |
507 | =head2 Why does rxvt-unicode sometimes leave pixel droppings? |
374 | |
508 | |
375 | Most fonts were not designed for terminal use, which means that character |
509 | Most fonts were not designed for terminal use, which means that character |
376 | size varies a lot. A font that is otherwise fine for terminal use might |
510 | size varies a lot. A font that is otherwise fine for terminal use might |
377 | contain some characters that are simply too wide. Rxvt-unicode will avoid |
511 | contain some characters that are simply too wide. Rxvt-unicode will avoid |
378 | these characters. For characters that are just "a bit" too wide a special |
512 | these characters. For characters that are just "a bit" too wide a special |
… | |
… | |
390 | might be forced to use a different font. |
524 | might be forced to use a different font. |
391 | |
525 | |
392 | All of this is not a problem when using X11 core fonts, as their bounding |
526 | All of this is not a problem when using X11 core fonts, as their bounding |
393 | box data is correct. |
527 | box data is correct. |
394 | |
528 | |
395 | =item On Solaris 9, many line-drawing characters are too wide. |
529 | =head2 On Solaris 9, many line-drawing characters are too wide. |
396 | |
530 | |
397 | Seems to be a known bug, read |
531 | Seems to be a known bug, read |
398 | L<http://nixdoc.net/files/forum/about34198.html>. Some people use the |
532 | L<http://nixdoc.net/files/forum/about34198.html>. Some people use the |
399 | following ugly workaround to get non-double-wide-characters working: |
533 | following ugly workaround to get non-double-wide-characters working: |
400 | |
534 | |
401 | #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x) |
535 | #define wcwidth(x) wcwidth(x) > 1 ? 1 : wcwidth(x) |
402 | |
536 | |
403 | =item My Compose (Multi_key) key is no longer working. |
537 | =head2 My Compose (Multi_key) key is no longer working. |
404 | |
538 | |
405 | The most common causes for this are that either your locale is not set |
539 | The most common causes for this are that either your locale is not set |
406 | correctly, or you specified a B<preeditStyle> that is not supported by |
540 | correctly, or you specified a B<preeditStyle> that is not supported by |
407 | your input method. For example, if you specified B<OverTheSpot> and |
541 | your input method. For example, if you specified B<OverTheSpot> and |
408 | your input method (e.g. the default input method handling Compose keys) |
542 | your input method (e.g. the default input method handling Compose keys) |
… | |
… | |
410 | rxvt-unicode will continue without an input method. |
544 | rxvt-unicode will continue without an input method. |
411 | |
545 | |
412 | In this case either do not specify a B<preeditStyle> or specify more than |
546 | In this case either do not specify a B<preeditStyle> or specify more than |
413 | one pre-edit style, such as B<OverTheSpot,Root,None>. |
547 | one pre-edit style, such as B<OverTheSpot,Root,None>. |
414 | |
548 | |
415 | =item I cannot type C<Ctrl-Shift-2> to get an ASCII NUL character due to ISO 14755 |
549 | =head2 I cannot type C<Ctrl-Shift-2> to get an ASCII NUL character due to ISO 14755 |
416 | |
550 | |
417 | Either try C<Ctrl-2> alone (it often is mapped to ASCII NUL even on |
551 | Either try C<Ctrl-2> alone (it often is mapped to ASCII NUL even on |
418 | international keyboards) or simply use ISO 14755 support to your |
552 | international keyboards) or simply use ISO 14755 support to your |
419 | advantage, typing <Ctrl-Shift-0> to get a ASCII NUL. This works for other |
553 | advantage, typing <Ctrl-Shift-0> to get a ASCII NUL. This works for other |
420 | codes, too, such as C<Ctrl-Shift-1-d> to type the default telnet escape |
554 | codes, too, such as C<Ctrl-Shift-1-d> to type the default telnet escape |
421 | character and so on. |
555 | character and so on. |
422 | |
556 | |
423 | =item How can I keep rxvt-unicode from using reverse video so much? |
557 | =head2 How can I keep rxvt-unicode from using reverse video so much? |
424 | |
558 | |
425 | First of all, make sure you are running with the right terminal settings |
559 | First of all, make sure you are running with the right terminal settings |
426 | (C<TERM=rxvt-unicode>), which will get rid of most of these effects. Then |
560 | (C<TERM=rxvt-unicode>), which will get rid of most of these effects. Then |
427 | make sure you have specified colours for italic and bold, as otherwise |
561 | make sure you have specified colours for italic and bold, as otherwise |
428 | rxvt-unicode might use reverse video to simulate the effect: |
562 | rxvt-unicode might use reverse video to simulate the effect: |
429 | |
563 | |
430 | URxvt.colorBD: white |
564 | URxvt.colorBD: white |
431 | URxvt.colorIT: green |
565 | URxvt.colorIT: green |
432 | |
566 | |
433 | =item Some programs assume totally weird colours (red instead of blue), how can I fix that? |
567 | =head2 Some programs assume totally weird colours (red instead of blue), how can I fix that? |
434 | |
568 | |
435 | For some unexplainable reason, some rare programs assume a very weird |
569 | For some unexplainable reason, some rare programs assume a very weird |
436 | colour palette when confronted with a terminal with more than the standard |
570 | colour palette when confronted with a terminal with more than the standard |
437 | 8 colours (rxvt-unicode supports 88). The right fix is, of course, to fix |
571 | 8 colours (rxvt-unicode supports 88). The right fix is, of course, to fix |
438 | these programs not to assume non-ISO colours without very good reasons. |
572 | these programs not to assume non-ISO colours without very good reasons. |
439 | |
573 | |
440 | In the meantime, you can either edit your C<rxvt-unicode> terminfo |
574 | In the meantime, you can either edit your C<rxvt-unicode> terminfo |
441 | definition to only claim 8 colour support or use C<TERM=rxvt>, which will |
575 | definition to only claim 8 colour support or use C<TERM=rxvt>, which will |
442 | fix colours but keep you from using other rxvt-unicode features. |
576 | fix colours but keep you from using other rxvt-unicode features. |
443 | |
577 | |
444 | =item I am on FreeBSD and rxvt-unicode does not seem to work at all. |
578 | =head2 I am on FreeBSD and rxvt-unicode does not seem to work at all. |
445 | |
579 | |
446 | Rxvt-unicode requires the symbol C<__STDC_ISO_10646__> to be defined |
580 | Rxvt-unicode requires the symbol C<__STDC_ISO_10646__> to be defined |
447 | in your compile environment, or an implementation that implements it, |
581 | in your compile environment, or an implementation that implements it, |
448 | wether it defines the symbol or not. C<__STDC_ISO_10646__> requires that |
582 | wether it defines the symbol or not. C<__STDC_ISO_10646__> requires that |
449 | B<wchar_t> is represented as unicode. |
583 | B<wchar_t> is represented as unicode. |
… | |
… | |
471 | |
605 | |
472 | The rxvt-unicode author insists that the right way to fix this is in the |
606 | The rxvt-unicode author insists that the right way to fix this is in the |
473 | system libraries once and for all, instead of forcing every app to carry |
607 | system libraries once and for all, instead of forcing every app to carry |
474 | complete replacements for them :) |
608 | complete replacements for them :) |
475 | |
609 | |
476 | =item I use Solaris 9 and it doesn't compile/work/etc. |
610 | =head2 I use Solaris 9 and it doesn't compile/work/etc. |
477 | |
611 | |
478 | Try the diff in F<doc/solaris9.patch> as a base. It fixes the worst |
612 | Try the diff in F<doc/solaris9.patch> as a base. It fixes the worst |
479 | problems with C<wcwidth> and a compile problem. |
613 | problems with C<wcwidth> and a compile problem. |
480 | |
614 | |
481 | =item How can I use rxvt-unicode under cygwin? |
615 | =head2 How can I use rxvt-unicode under cygwin? |
482 | |
616 | |
483 | rxvt-unicode should compile and run out of the box on cygwin, using |
617 | rxvt-unicode should compile and run out of the box on cygwin, using |
484 | the X11 libraries that come with cygwin. libW11 emulation is no |
618 | the X11 libraries that come with cygwin. libW11 emulation is no |
485 | longer supported (and makes no sense, either, as it only supported a |
619 | longer supported (and makes no sense, either, as it only supported a |
486 | single font). I recommend starting the X-server in C<-multiwindow> or |
620 | single font). I recommend starting the X-server in C<-multiwindow> or |
… | |
… | |
489 | |
623 | |
490 | At the time of this writing, cygwin didn't seem to support any multi-byte |
624 | At the time of this writing, cygwin didn't seem to support any multi-byte |
491 | encodings (you might try C<LC_CTYPE=C-UTF-8>), so you are likely limited |
625 | encodings (you might try C<LC_CTYPE=C-UTF-8>), so you are likely limited |
492 | to 8-bit encodings. |
626 | to 8-bit encodings. |
493 | |
627 | |
494 | =item How does rxvt-unicode determine the encoding to use? |
628 | =head2 How does rxvt-unicode determine the encoding to use? |
495 | |
629 | |
|
|
630 | See next entry. |
|
|
631 | |
496 | =item Is there an option to switch encodings? |
632 | =head2 Is there an option to switch encodings? |
497 | |
633 | |
498 | Unlike some other terminals, rxvt-unicode has no encoding switch, and no |
634 | Unlike some other terminals, rxvt-unicode has no encoding switch, and no |
499 | specific "utf-8" mode, such as xterm. In fact, it doesn't even know about |
635 | specific "utf-8" mode, such as xterm. In fact, it doesn't even know about |
500 | UTF-8 or any other encodings with respect to terminal I/O. |
636 | UTF-8 or any other encodings with respect to terminal I/O. |
501 | |
637 | |
… | |
… | |
526 | rxvt-unicode. |
662 | rxvt-unicode. |
527 | |
663 | |
528 | If you want to use a specific encoding you have to make sure you start |
664 | If you want to use a specific encoding you have to make sure you start |
529 | rxvt-unicode with the correct C<LC_CTYPE> category. |
665 | rxvt-unicode with the correct C<LC_CTYPE> category. |
530 | |
666 | |
531 | =item Can I switch locales at runtime? |
667 | =head2 Can I switch locales at runtime? |
532 | |
668 | |
533 | Yes, using an escape sequence. Try something like this, which sets |
669 | Yes, using an escape sequence. Try something like this, which sets |
534 | rxvt-unicode's idea of C<LC_CTYPE>. |
670 | rxvt-unicode's idea of C<LC_CTYPE>. |
535 | |
671 | |
536 | printf '\e]701;%s\007' ja_JP.SJIS |
672 | printf '\e]701;%s\007' ja_JP.SJIS |
… | |
… | |
548 | |
684 | |
549 | You can also use xterm's C<luit> program, which usually works fine, except |
685 | You can also use xterm's C<luit> program, which usually works fine, except |
550 | for some locales where character width differs between program- and |
686 | for some locales where character width differs between program- and |
551 | rxvt-unicode-locales. |
687 | rxvt-unicode-locales. |
552 | |
688 | |
553 | =item Can I switch the fonts at runtime? |
689 | =head2 Can I switch the fonts at runtime? |
554 | |
690 | |
555 | Yes, using an escape sequence. Try something like this, which has the same |
691 | Yes, using an escape sequence. Try something like this, which has the same |
556 | effect as using the C<-fn> switch, and takes effect immediately: |
692 | effect as using the C<-fn> switch, and takes effect immediately: |
557 | |
693 | |
558 | printf '\e]50;%s\007' "9x15bold,xft:Kochi Gothic" |
694 | printf '\e]50;%s\007' "9x15bold,xft:Kochi Gothic" |
… | |
… | |
561 | japanese font), but you have to switch to chinese temporarily, where |
697 | japanese font), but you have to switch to chinese temporarily, where |
562 | japanese fonts would only be in your way. |
698 | japanese fonts would only be in your way. |
563 | |
699 | |
564 | You can think of this as a kind of manual ISO-2022 switching. |
700 | You can think of this as a kind of manual ISO-2022 switching. |
565 | |
701 | |
566 | =item Why do italic characters look as if clipped? |
702 | =head2 Why do italic characters look as if clipped? |
567 | |
703 | |
568 | Many fonts have difficulties with italic characters and hinting. For |
704 | Many fonts have difficulties with italic characters and hinting. For |
569 | example, the otherwise very nicely hinted font C<xft:Bitstream Vera Sans |
705 | example, the otherwise very nicely hinted font C<xft:Bitstream Vera Sans |
570 | Mono> completely fails in it's italic face. A workaround might be to |
706 | Mono> completely fails in it's italic face. A workaround might be to |
571 | enable freetype autohinting, i.e. like this: |
707 | enable freetype autohinting, i.e. like this: |
572 | |
708 | |
573 | URxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true |
709 | URxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true |
574 | URxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true |
710 | URxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true |
575 | |
711 | |
576 | =item My input method wants <some encoding> but I want UTF-8, what can I do? |
712 | =head2 My input method wants <some encoding> but I want UTF-8, what can I do? |
577 | |
713 | |
578 | You can specify separate locales for the input method and the rest of the |
714 | You can specify separate locales for the input method and the rest of the |
579 | terminal, using the resource C<imlocale>: |
715 | terminal, using the resource C<imlocale>: |
580 | |
716 | |
581 | URxvt*imlocale: ja_JP.EUC-JP |
717 | URxvt.imlocale: ja_JP.EUC-JP |
582 | |
718 | |
583 | Now you can start your terminal with C<LC_CTYPE=ja_JP.UTF-8> and still |
719 | Now you can start your terminal with C<LC_CTYPE=ja_JP.UTF-8> and still |
584 | use your input method. Please note, however, that you will not be able to |
720 | use your input method. Please note, however, that you will not be able to |
585 | input characters outside C<EUC-JP> in a normal way then, as your input |
721 | input characters outside C<EUC-JP> in a normal way then, as your input |
586 | method limits you. |
722 | method limits you. |
587 | |
723 | |
588 | =item Rxvt-unicode crashes when the X Input Method changes or exits. |
724 | =head2 Rxvt-unicode crashes when the X Input Method changes or exits. |
589 | |
725 | |
590 | Unfortunately, this is unavoidable, as the XIM protocol is racy by |
726 | Unfortunately, this is unavoidable, as the XIM protocol is racy by |
591 | design. Applications can avoid some crashes at the expense of memory |
727 | design. Applications can avoid some crashes at the expense of memory |
592 | leaks, and Input Methods can avoid some crashes by careful ordering at |
728 | leaks, and Input Methods can avoid some crashes by careful ordering at |
593 | exit time. B<kinput2> (and derived input methods) generally succeeds, |
729 | exit time. B<kinput2> (and derived input methods) generally succeeds, |
594 | while B<SCIM> (or similar input methods) fails. In the end, however, |
730 | while B<SCIM> (or similar input methods) fails. In the end, however, |
595 | crashes cannot be completely avoided even if both sides cooperate. |
731 | crashes cannot be completely avoided even if both sides cooperate. |
596 | |
732 | |
597 | So the only workaround is not to kill your Input Method Servers. |
733 | So the only workaround is not to kill your Input Method Servers. |
598 | |
734 | |
599 | =item Rxvt-unicode uses gobs of memory, how can I reduce that? |
735 | =head2 Rxvt-unicode uses gobs of memory, how can I reduce that? |
600 | |
736 | |
601 | Rxvt-unicode tries to obey the rule of not charging you for something you |
737 | Rxvt-unicode tries to obey the rule of not charging you for something you |
602 | don't use. One thing you should try is to configure out all settings that |
738 | don't use. One thing you should try is to configure out all settings that |
603 | you don't need, for example, Xft support is a resource hog by design, |
739 | you don't need, for example, Xft support is a resource hog by design, |
604 | when used. Compiling it out ensures that no Xft font will be loaded |
740 | when used. Compiling it out ensures that no Xft font will be loaded |
… | |
… | |
609 | 6 bytes per screen cell. For a 160x?? window this amounts to almost a |
745 | 6 bytes per screen cell. For a 160x?? window this amounts to almost a |
610 | kilobyte per line. A scrollback buffer of 10000 lines will then (if full) |
746 | kilobyte per line. A scrollback buffer of 10000 lines will then (if full) |
611 | use 10 Megabytes of memory. With C<--enable-unicode3> it gets worse, as |
747 | use 10 Megabytes of memory. With C<--enable-unicode3> it gets worse, as |
612 | rxvt-unicode then uses 8 bytes per screen cell. |
748 | rxvt-unicode then uses 8 bytes per screen cell. |
613 | |
749 | |
614 | =item Can I speed up Xft rendering somehow? |
750 | =head2 Can I speed up Xft rendering somehow? |
615 | |
751 | |
616 | Yes, the most obvious way to speed it up is to avoid Xft entirely, as |
752 | Yes, the most obvious way to speed it up is to avoid Xft entirely, as |
617 | it is simply slow. If you still want Xft fonts you might try to disable |
753 | it is simply slow. If you still want Xft fonts you might try to disable |
618 | antialiasing (by appending C<:antialias=false>), which saves lots of |
754 | antialiasing (by appending C<:antialias=false>), which saves lots of |
619 | memory and also speeds up rendering considerably. |
755 | memory and also speeds up rendering considerably. |
620 | |
756 | |
621 | =item Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong? |
757 | =head2 Rxvt-unicode doesn't seem to anti-alias its fonts, what is wrong? |
622 | |
758 | |
623 | Rxvt-unicode will use whatever you specify as a font. If it needs to |
759 | Rxvt-unicode will use whatever you specify as a font. If it needs to |
624 | fall back to it's default font search list it will prefer X11 core |
760 | fall back to it's default font search list it will prefer X11 core |
625 | fonts, because they are small and fast, and then use Xft fonts. It has |
761 | fonts, because they are small and fast, and then use Xft fonts. It has |
626 | antialiasing disabled for most of them, because the author thinks they |
762 | antialiasing disabled for most of them, because the author thinks they |
627 | look best that way. |
763 | look best that way. |
628 | |
764 | |
629 | If you want antialiasing, you have to specify the fonts manually. |
765 | If you want antialiasing, you have to specify the fonts manually. |
630 | |
766 | |
631 | =item Mouse cut/paste suddenly no longer works. |
767 | =head2 Mouse cut/paste suddenly no longer works. |
632 | |
768 | |
633 | Make sure that mouse reporting is actually turned off since killing |
769 | Make sure that mouse reporting is actually turned off since killing |
634 | some editors prematurely may leave the mouse in mouse report mode. I've |
770 | some editors prematurely may leave the mouse in mouse report mode. I've |
635 | heard that tcsh may use mouse reporting unless it otherwise specified. A |
771 | heard that tcsh may use mouse reporting unless it otherwise specified. A |
636 | quick check is to see if cut/paste works when the Alt or Shift keys are |
772 | quick check is to see if cut/paste works when the Alt or Shift keys are |
637 | depressed. See @@RXVT_NAME@@(7) |
773 | depressed. |
638 | |
774 | |
639 | =item What's with this bold/blink stuff? |
775 | =head2 What's with this bold/blink stuff? |
640 | |
776 | |
641 | If no bold colour is set via C<colorBD:>, bold will invert text using the |
777 | If no bold colour is set via C<colorBD:>, bold will invert text using the |
642 | standard foreground colour. |
778 | standard foreground colour. |
643 | |
779 | |
644 | For the standard background colour, blinking will actually make the |
780 | For the standard background colour, blinking will actually make the |
… | |
… | |
651 | |
787 | |
652 | color0-7 are the low-intensity colors. |
788 | color0-7 are the low-intensity colors. |
653 | |
789 | |
654 | color8-15 are the corresponding high-intensity colors. |
790 | color8-15 are the corresponding high-intensity colors. |
655 | |
791 | |
656 | =item I don't like the screen colors. How do I change them? |
792 | =head2 I don't like the screen colors. How do I change them? |
657 | |
793 | |
658 | You can change the screen colors at run-time using F<~/.Xdefaults> |
794 | You can change the screen colors at run-time using F<~/.Xdefaults> |
659 | resources (or as long-options). |
795 | resources (or as long-options). |
660 | |
796 | |
661 | Here are values that are supposed to resemble a VGA screen, |
797 | Here are values that are supposed to resemble a VGA screen, |
… | |
… | |
699 | URxvt.color6: #73f7ff |
835 | URxvt.color6: #73f7ff |
700 | URxvt.color14: #73f7ff |
836 | URxvt.color14: #73f7ff |
701 | URxvt.color7: #e1dddd |
837 | URxvt.color7: #e1dddd |
702 | URxvt.color15: #e1dddd |
838 | URxvt.color15: #e1dddd |
703 | |
839 | |
704 | =item How can I start @@RXVT_NAME@@d in a race-free way? |
840 | =head2 How can I start @@RXVT_NAME@@d in a race-free way? |
705 | |
841 | |
706 | Try C<@@RXVT_NAME@@d -f -o>, which tells @@RXVT_NAME@@d to open the |
842 | Try C<@@RXVT_NAME@@d -f -o>, which tells @@RXVT_NAME@@d to open the |
707 | display, create the listening socket and then fork. |
843 | display, create the listening socket and then fork. |
708 | |
844 | |
709 | =item What's with the strange Backspace/Delete key behaviour? |
845 | =head2 What's with the strange Backspace/Delete key behaviour? |
710 | |
846 | |
711 | Assuming that the physical Backspace key corresponds to the |
847 | Assuming that the physical Backspace key corresponds to the |
712 | BackSpace keysym (not likely for Linux ... see the following |
848 | BackSpace keysym (not likely for Linux ... see the following |
713 | question) there are two standard values that can be used for |
849 | question) there are two standard values that can be used for |
714 | Backspace: C<^H> and C<^?>. |
850 | Backspace: C<^H> and C<^?>. |
… | |
… | |
731 | |
867 | |
732 | # use Backspace = ^? |
868 | # use Backspace = ^? |
733 | $ stty erase ^? |
869 | $ stty erase ^? |
734 | $ @@RXVT_NAME@@ |
870 | $ @@RXVT_NAME@@ |
735 | |
871 | |
736 | Toggle with C<ESC [ 36 h> / C<ESC [ 36 l> as documented in @@RXVT_NAME@@(7). |
872 | Toggle with C<ESC [ 36 h> / C<ESC [ 36 l>. |
737 | |
873 | |
738 | For an existing rxvt-unicode: |
874 | For an existing rxvt-unicode: |
739 | |
875 | |
740 | # use Backspace = ^H |
876 | # use Backspace = ^H |
741 | $ stty erase ^H |
877 | $ stty erase ^H |
… | |
… | |
760 | some editors (vim I'm told) expect Backspace = ^H, |
896 | some editors (vim I'm told) expect Backspace = ^H, |
761 | GNU Emacs (and Emacs-like editors) use ^H for help. |
897 | GNU Emacs (and Emacs-like editors) use ^H for help. |
762 | |
898 | |
763 | Perhaps someday this will all be resolved in a consistent manner. |
899 | Perhaps someday this will all be resolved in a consistent manner. |
764 | |
900 | |
765 | =item I don't like the key-bindings. How do I change them? |
901 | =head2 I don't like the key-bindings. How do I change them? |
766 | |
902 | |
767 | There are some compile-time selections available via configure. Unless |
903 | There are some compile-time selections available via configure. Unless |
768 | you have run "configure" with the C<--disable-resources> option you can |
904 | you have run "configure" with the C<--disable-resources> option you can |
769 | use the `keysym' resource to alter the keystrings associated with keysyms. |
905 | use the `keysym' resource to alter the keystrings associated with keysyms. |
770 | |
906 | |
… | |
… | |
791 | URxvt.keysym.M-C-a: list \033<M-C- abcdefghijklmnopqrstuvwxyz > |
927 | URxvt.keysym.M-C-a: list \033<M-C- abcdefghijklmnopqrstuvwxyz > |
792 | URxvt.keysym.F12: command:\033]701;zh_CN.GBK\007 |
928 | URxvt.keysym.F12: command:\033]701;zh_CN.GBK\007 |
793 | |
929 | |
794 | See some more examples in the documentation for the B<keysym> resource. |
930 | See some more examples in the documentation for the B<keysym> resource. |
795 | |
931 | |
796 | =item I'm using keyboard model XXX that has extra Prior/Next/Insert keys. |
932 | =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. |
797 | How do I make use of them? For example, the Sun Keyboard type 4 |
|
|
798 | has the following mappings that rxvt-unicode doesn't recognize. |
|
|
799 | |
933 | |
800 | KP_Insert == Insert |
934 | KP_Insert == Insert |
801 | F22 == Print |
935 | F22 == Print |
802 | F27 == Home |
936 | F27 == Home |
803 | F29 == Prior |
937 | F29 == Prior |
… | |
… | |
806 | |
940 | |
807 | Rather than have rxvt-unicode try to accommodate all the various possible |
941 | Rather than have rxvt-unicode try to accommodate all the various possible |
808 | keyboard mappings, it is better to use `xmodmap' to remap the keys as |
942 | keyboard mappings, it is better to use `xmodmap' to remap the keys as |
809 | required for your particular machine. |
943 | required for your particular machine. |
810 | |
944 | |
811 | =item How do I distinguish wether I'm running rxvt-unicode or a regular xterm? |
945 | =head2 How do I distinguish wether I'm running rxvt-unicode or a regular xterm? I need this to decide about setting colors etc. |
812 | I need this to decide about setting colors etc. |
|
|
813 | |
946 | |
814 | rxvt and rxvt-unicode always export the variable "COLORTERM", so you can |
947 | rxvt and rxvt-unicode always export the variable "COLORTERM", so you can |
815 | check and see if that is set. Note that several programs, JED, slrn, |
948 | check and see if that is set. Note that several programs, JED, slrn, |
816 | Midnight Commander automatically check this variable to decide whether or |
949 | Midnight Commander automatically check this variable to decide whether or |
817 | not to use color. |
950 | not to use color. |
818 | |
951 | |
819 | =item How do I set the correct, full IP address for the DISPLAY variable? |
952 | =head2 How do I set the correct, full IP address for the DISPLAY variable? |
820 | |
953 | |
821 | If you've compiled rxvt-unicode with DISPLAY_IS_IP and have enabled |
954 | If you've compiled rxvt-unicode with DISPLAY_IS_IP and have enabled |
822 | insecure mode then it is possible to use the following shell script |
955 | insecure mode then it is possible to use the following shell script |
823 | snippets to correctly set the display. If your version of rxvt-unicode |
956 | snippets to correctly set the display. If your version of rxvt-unicode |
824 | wasn't also compiled with ESCZ_ANSWER (as assumed in these snippets) then |
957 | wasn't also compiled with ESCZ_ANSWER (as assumed in these snippets) then |
… | |
… | |
839 | echo -n '^[[7n' # query the rxvt we are in for the DISPLAY string |
972 | echo -n '^[[7n' # query the rxvt we are in for the DISPLAY string |
840 | read DISPLAY # set it in our local shell |
973 | read DISPLAY # set it in our local shell |
841 | fi |
974 | fi |
842 | fi |
975 | fi |
843 | |
976 | |
844 | =item How do I compile the manual pages for myself? |
977 | =head2 How do I compile the manual pages for myself? |
845 | |
978 | |
846 | You need to have a recent version of perl installed as F</usr/bin/perl>, |
979 | You need to have a recent version of perl installed as F</usr/bin/perl>, |
847 | one that comes with F<pod2man>, F<pod2text> and F<pod2html>. Then go to |
980 | one that comes with F<pod2man>, F<pod2text> and F<pod2html>. Then go to |
848 | the doc subdirectory and enter C<make alldoc>. |
981 | the doc subdirectory and enter C<make alldoc>. |
849 | |
982 | |
850 | =item My question isn't answered here, can I ask a human? |
983 | =head2 My question isn't answered here, can I ask a human? |
851 | |
984 | |
852 | Before sending me mail, you could go to IRC: C<irc.freenode.net>, |
985 | Before sending me mail, you could go to IRC: C<irc.freenode.net>, |
853 | channel C<#rxvt-unicode> has some rxvt-unicode enthusiasts that might be |
986 | channel C<#rxvt-unicode> has some rxvt-unicode enthusiasts that might be |
854 | interested in learning about new and exciting problems (but not FAQs :). |
987 | interested in learning about new and exciting problems (but not FAQs :). |
855 | |
988 | |
856 | =back |
|
|
857 | |
|
|
858 | =head1 RXVT TECHNICAL REFERENCE |
989 | =head1 RXVT TECHNICAL REFERENCE |
859 | |
990 | |
860 | =head1 DESCRIPTION |
991 | =head1 DESCRIPTION |
861 | |
992 | |
862 | The rest of this document describes various technical aspects of |
993 | The rest of this document describes various technical aspects of |
863 | B<rxvt-unicode>. First the description of supported command sequences, |
994 | B<rxvt-unicode>. First the description of supported command sequences, |
864 | followed by menu and pixmap support and last by a description of all |
995 | followed by pixmap support and last by a description of all features |
865 | features selectable at C<configure> time. |
996 | selectable at C<configure> time. |
866 | |
997 | |
867 | =head1 Definitions |
998 | =head1 Definitions |
868 | |
999 | |
869 | =over 4 |
1000 | =over 4 |
870 | |
1001 | |
… | |
… | |
1438 | B<< C<h> >> Send Mouse X & Y on button press. |
1569 | B<< C<h> >> Send Mouse X & Y on button press. |
1439 | B<< C<l> >> No mouse reporting. |
1570 | B<< C<l> >> No mouse reporting. |
1440 | |
1571 | |
1441 | =end table |
1572 | =end table |
1442 | |
1573 | |
1443 | =item B<< C<Ps = 10> >> (B<rxvt>) |
|
|
1444 | |
|
|
1445 | =begin table |
|
|
1446 | |
|
|
1447 | B<< C<h> >> menuBar visible |
|
|
1448 | B<< C<l> >> menuBar invisible |
|
|
1449 | |
|
|
1450 | =end table |
|
|
1451 | |
|
|
1452 | =item B<< C<Ps = 25> >> |
1574 | =item B<< C<Ps = 25> >> |
1453 | |
1575 | |
1454 | =begin table |
1576 | =begin table |
1455 | |
1577 | |
1456 | B<< C<h> >> Visible cursor {cnorm/cvvis} |
1578 | B<< C<h> >> Visible cursor {cnorm/cvvis} |
… | |
… | |
1636 | B<< C<Ps = 10> >> Change colour of text foreground to B<< C<Pt> >> B<(NB: may change in future)> |
1758 | B<< C<Ps = 10> >> Change colour of text foreground to B<< C<Pt> >> B<(NB: may change in future)> |
1637 | B<< C<Ps = 11> >> Change colour of text background to B<< C<Pt> >> B<(NB: may change in future)> |
1759 | B<< C<Ps = 11> >> Change colour of text background to B<< C<Pt> >> B<(NB: may change in future)> |
1638 | B<< C<Ps = 12> >> Change colour of text cursor foreground to B<< C<Pt> >> |
1760 | B<< C<Ps = 12> >> Change colour of text cursor foreground to B<< C<Pt> >> |
1639 | B<< C<Ps = 13> >> Change colour of mouse foreground to B<< C<Pt> >> |
1761 | B<< C<Ps = 13> >> Change colour of mouse foreground to B<< C<Pt> >> |
1640 | B<< C<Ps = 17> >> Change colour of highlight characters to B<< C<Pt> >> |
1762 | B<< C<Ps = 17> >> Change colour of highlight characters to B<< C<Pt> >> |
1641 | B<< C<Ps = 18> >> Change colour of bold characters to B<< C<Pt> >> |
1763 | B<< C<Ps = 18> >> Change colour of bold characters to B<< C<Pt> >> [deprecated, see 706] |
1642 | B<< C<Ps = 19> >> Change colour of underlined characters to B<< C<Pt> >> |
1764 | B<< C<Ps = 19> >> Change colour of underlined characters to B<< C<Pt> >> [deprecated, see 707] |
1643 | B<< C<Ps = 20> >> Change default background to B<< C<Pt> >> |
1765 | B<< C<Ps = 20> >> Change background pixmap parameters (see section XPM) (Compile XPM). |
1644 | B<< C<Ps = 39> >> Change default foreground colour to B<< C<Pt> >>. |
1766 | B<< C<Ps = 39> >> Change default foreground colour to B<< C<Pt> >>. |
1645 | B<< C<Ps = 46> >> Change Log File to B<< C<Pt> >> I<unimplemented> |
1767 | B<< C<Ps = 46> >> Change Log File to B<< C<Pt> >> I<unimplemented> |
1646 | B<< C<Ps = 49> >> Change default background colour to B<< C<Pt> >>. |
1768 | B<< C<Ps = 49> >> Change default background colour to B<< C<Pt> >>. |
1647 | B<< C<Ps = 50> >> Set fontset to B<< C<Pt> >>, with the following special values of B<< C<Pt> >> (B<rxvt>) B<< C<#+n> >> change up B<< C<n> >> B<< C<#-n> >> change down B<< C<n> >> if B<< C<n> >> is missing of 0, a value of 1 is used I<empty> change to font0 B<< C<n> >> change to font B<< C<n> >> |
1769 | B<< C<Ps = 50> >> Set fontset to B<< C<Pt> >>, with the following special values of B<< C<Pt> >> (B<rxvt>) B<< C<#+n> >> change up B<< C<n> >> B<< C<#-n> >> change down B<< C<n> >> if B<< C<n> >> is missing of 0, a value of 1 is used I<empty> change to font0 B<< C<n> >> change to font B<< C<n> >> |
1648 | B<< C<Ps = 55> >> Log all scrollback buffer and all of screen to B<< C<Pt> >> |
1770 | B<< C<Ps = 55> >> Log all scrollback buffer and all of screen to B<< C<Pt> >> |
1649 | B<< C<Ps = 701> >> Change current locale to B<< C<Pt> >>, or, if B<< C<Pt> >> is B<< C<?> >>, return the current locale (Compile frills). |
1771 | B<< C<Ps = 701> >> Change current locale to B<< C<Pt> >>, or, if B<< C<Pt> >> is B<< C<?> >>, return the current locale (Compile frills). |
1650 | B<< C<Ps = 703> >> Menubar command B<< C<Pt> >> (Compile menubar). |
1772 | B<< C<Ps = 702> >> Request version if B<< C<Pt> >> is B<< C<?> >>, returning C<rxvt-unicode>, the resource name, the major and minor version numbers, e.g. C<ESC ] 702 ; rxvt-unicode ; urxvt ; 7 ; 4 ST>. |
1651 | B<< C<Ps = 704> >> Change colour of italic characters to B<< C<Pt> >> |
1773 | B<< C<Ps = 704> >> Change colour of italic characters to B<< C<Pt> >> |
1652 | B<< C<Ps = 705> >> Change background pixmap tint colour to B<< C<Pt> >> (Compile transparency). |
1774 | B<< C<Ps = 705> >> Change background pixmap tint colour to B<< C<Pt> >> (Compile transparency). |
|
|
1775 | B<< C<Ps = 706> >> Change colour of bold characters to B<< C<Pt> >> |
|
|
1776 | B<< C<Ps = 707> >> Change colour of underlined characters to B<< C<Pt> >> |
1653 | B<< C<Ps = 710> >> Set normal fontset to B<< C<Pt> >>. Same as C<Ps = 50>. |
1777 | B<< C<Ps = 710> >> Set normal fontset to B<< C<Pt> >>. Same as C<Ps = 50>. |
1654 | B<< C<Ps = 711> >> Set bold fontset to B<< C<Pt> >>. Similar to C<Ps = 50> (Compile styles). |
1778 | B<< C<Ps = 711> >> Set bold fontset to B<< C<Pt> >>. Similar to C<Ps = 50> (Compile styles). |
1655 | B<< C<Ps = 712> >> Set italic fontset to B<< C<Pt> >>. Similar to C<Ps = 50> (Compile styles). |
1779 | B<< C<Ps = 712> >> Set italic fontset to B<< C<Pt> >>. Similar to C<Ps = 50> (Compile styles). |
1656 | B<< C<Ps = 713> >> Set bold-italic fontset to B<< C<Pt> >>. Similar to C<Ps = 50> (Compile styles). |
1780 | B<< C<Ps = 713> >> Set bold-italic fontset to B<< C<Pt> >>. Similar to C<Ps = 50> (Compile styles). |
1657 | B<< C<Ps = 720> >> Move viewing window up by B<< C<Pt> >> lines, or clear scrollback buffer if C<Pt = 0> (Compile frills). |
1781 | B<< C<Ps = 720> >> Move viewing window up by B<< C<Pt> >> lines, or clear scrollback buffer if C<Pt = 0> (Compile frills). |
… | |
… | |
1660 | |
1784 | |
1661 | =end table |
1785 | =end table |
1662 | |
1786 | |
1663 | =back |
1787 | =back |
1664 | |
1788 | |
1665 | X<menuBar> |
|
|
1666 | |
|
|
1667 | =head1 menuBar |
|
|
1668 | |
|
|
1669 | B<< The exact syntax used is I<almost> solidified. >> |
|
|
1670 | In the menus, B<DON'T> try to use menuBar commands that add or remove a |
|
|
1671 | menuBar. |
|
|
1672 | |
|
|
1673 | Note that in all of the commands, the B<< I</path/> >> I<cannot> be |
|
|
1674 | omitted: use B<./> to specify a menu relative to the current menu. |
|
|
1675 | |
|
|
1676 | =head2 Overview of menuBar operation |
|
|
1677 | |
|
|
1678 | For the menuBar XTerm escape sequence C<ESC ] 703 ; Pt ST>, the syntax |
|
|
1679 | of C<Pt> can be used for a variety of tasks: |
|
|
1680 | |
|
|
1681 | At the top level is the current menuBar which is a member of a circular |
|
|
1682 | linked-list of other such menuBars. |
|
|
1683 | |
|
|
1684 | The menuBar acts as a parent for the various drop-down menus, which in |
|
|
1685 | turn, may have labels, separator lines, menuItems and subMenus. |
|
|
1686 | |
|
|
1687 | The menuItems are the useful bits: you can use them to mimic keyboard |
|
|
1688 | input or even to send text or escape sequences back to rxvt. |
|
|
1689 | |
|
|
1690 | The menuBar syntax is intended to provide a simple yet robust method of |
|
|
1691 | constructing and manipulating menus and navigating through the |
|
|
1692 | menuBars. |
|
|
1693 | |
|
|
1694 | The first step is to use the tag B<< [menu:I<name>] >> which creates |
|
|
1695 | the menuBar called I<name> and allows access. You may now or menus, |
|
|
1696 | subMenus, and menuItems. Finally, use the tag B<[done]> to set the |
|
|
1697 | menuBar access as B<readonly> to prevent accidental corruption of the |
|
|
1698 | menus. To re-access the current menuBar for alterations, use the tag |
|
|
1699 | B<[menu]>, make the alterations and then use B<[done]> |
|
|
1700 | |
|
|
1701 | X<menuBarCommands> |
|
|
1702 | |
|
|
1703 | =head2 Commands |
|
|
1704 | |
|
|
1705 | =over 4 |
|
|
1706 | |
|
|
1707 | =item B<< [menu:+I<name>] >> |
|
|
1708 | |
|
|
1709 | access the named menuBar for creation or alteration. If a new menuBar |
|
|
1710 | is created, it is called I<name> (max of 15 chars) and the current |
|
|
1711 | menuBar is pushed onto the stack |
|
|
1712 | |
|
|
1713 | =item B<[menu]> |
|
|
1714 | |
|
|
1715 | access the current menuBar for alteration |
|
|
1716 | |
|
|
1717 | =item B<< [title:+I<string>] >> |
|
|
1718 | |
|
|
1719 | set the current menuBar's title to I<string>, which may contain the |
|
|
1720 | following format specifiers: |
|
|
1721 | |
|
|
1722 | B<%n> rxvt name (as per the B<-name> command-line option) |
|
|
1723 | B<%v> rxvt version |
|
|
1724 | B<%%> literal B<%> character |
|
|
1725 | |
|
|
1726 | =item B<[done]> |
|
|
1727 | |
|
|
1728 | set menuBar access as B<readonly>. |
|
|
1729 | End-of-file tag for B<< [read:+I<file>] >> operations. |
|
|
1730 | |
|
|
1731 | =item B<< [read:+I<file>] >> |
|
|
1732 | |
|
|
1733 | read menu commands directly from I<file> (extension ".menu" will be |
|
|
1734 | appended if required.) Start reading at a line with B<[menu]> or B<< |
|
|
1735 | [menu:+I<name> >> and continuing until B<[done]> is encountered. |
|
|
1736 | |
|
|
1737 | Blank and comment lines (starting with B<#>) are ignored. Actually, |
|
|
1738 | since any invalid menu commands are also ignored, almost anything could |
|
|
1739 | be construed as a comment line, but this may be tightened up in the |
|
|
1740 | future ... so don't count on it!. |
|
|
1741 | |
|
|
1742 | =item B<< [read:+I<file>;+I<name>] >> |
|
|
1743 | |
|
|
1744 | The same as B<< [read:+I<file>] >>, but start reading at a line with |
|
|
1745 | B<< [menu:+I<name>] >> and continuing until B<< [done:+I<name>] >> or |
|
|
1746 | B<[done]> is encountered. |
|
|
1747 | |
|
|
1748 | =item B<[dump]> |
|
|
1749 | |
|
|
1750 | dump all menuBars to the file B</tmp/rxvt-PID> in a format suitable for |
|
|
1751 | later rereading. |
|
|
1752 | |
|
|
1753 | =item B<[rm:name]> |
|
|
1754 | |
|
|
1755 | remove the named menuBar |
|
|
1756 | |
|
|
1757 | =item B<[rm] [rm:]> |
|
|
1758 | |
|
|
1759 | remove the current menuBar |
|
|
1760 | |
|
|
1761 | =item B<[rm*] [rm:*]> |
|
|
1762 | |
|
|
1763 | remove all menuBars |
|
|
1764 | |
|
|
1765 | =item B<[swap]> |
|
|
1766 | |
|
|
1767 | swap the top two menuBars |
|
|
1768 | |
|
|
1769 | =item B<[prev]> |
|
|
1770 | |
|
|
1771 | access the previous menuBar |
|
|
1772 | |
|
|
1773 | =item B<[next]> |
|
|
1774 | |
|
|
1775 | access the next menuBar |
|
|
1776 | |
|
|
1777 | =item B<[show]> |
|
|
1778 | |
|
|
1779 | Enable display of the menuBar |
|
|
1780 | |
|
|
1781 | =item B<[hide]> |
|
|
1782 | |
|
|
1783 | Disable display of the menuBar |
|
|
1784 | |
|
|
1785 | =item B<< [pixmap:+I<name>] >> |
|
|
1786 | |
|
|
1787 | =item B<< [pixmap:+I<name>;I<scaling>] >> |
|
|
1788 | |
|
|
1789 | (set the background pixmap globally |
|
|
1790 | |
|
|
1791 | B<< A Future implementation I<may> make this local to the menubar >>) |
|
|
1792 | |
|
|
1793 | =item B<< [:+I<command>:] >> |
|
|
1794 | |
|
|
1795 | ignore the menu readonly status and issue a I<command> to or a menu or |
|
|
1796 | menuitem or change the ; a useful shortcut for setting the quick arrows |
|
|
1797 | from a menuBar. |
|
|
1798 | |
|
|
1799 | =back |
|
|
1800 | |
|
|
1801 | X<menuBarAdd> |
|
|
1802 | |
|
|
1803 | =head2 Adding and accessing menus |
|
|
1804 | |
|
|
1805 | The following commands may also be B<+> prefixed. |
|
|
1806 | |
|
|
1807 | =over 4 |
|
|
1808 | |
|
|
1809 | =item B</+> |
|
|
1810 | |
|
|
1811 | access menuBar top level |
|
|
1812 | |
|
|
1813 | =item B<./+> |
|
|
1814 | |
|
|
1815 | access current menu level |
|
|
1816 | |
|
|
1817 | =item B<../+> |
|
|
1818 | |
|
|
1819 | access parent menu (1 level up) |
|
|
1820 | |
|
|
1821 | =item B<../../> |
|
|
1822 | |
|
|
1823 | access parent menu (multiple levels up) |
|
|
1824 | |
|
|
1825 | =item B<< I</path/>menu >> |
|
|
1826 | |
|
|
1827 | add/access menu |
|
|
1828 | |
|
|
1829 | =item B<< I</path/>menu/* >> |
|
|
1830 | |
|
|
1831 | add/access menu and clear it if it exists |
|
|
1832 | |
|
|
1833 | =item B<< I</path/>{-} >> |
|
|
1834 | |
|
|
1835 | add separator |
|
|
1836 | |
|
|
1837 | =item B<< I</path/>{item} >> |
|
|
1838 | |
|
|
1839 | add B<item> as a label |
|
|
1840 | |
|
|
1841 | =item B<< I</path/>{item} action >> |
|
|
1842 | |
|
|
1843 | add/alter I<menuitem> with an associated I<action> |
|
|
1844 | |
|
|
1845 | =item B<< I</path/>{item}{right-text} >> |
|
|
1846 | |
|
|
1847 | add/alter I<menuitem> with B<right-text> as the right-justified text |
|
|
1848 | and as the associated I<action> |
|
|
1849 | |
|
|
1850 | =item B<< I</path/>{item}{rtext} action >> |
|
|
1851 | |
|
|
1852 | add/alter I<menuitem> with an associated I<action> and with B<rtext> as |
|
|
1853 | the right-justified text. |
|
|
1854 | |
|
|
1855 | =back |
|
|
1856 | |
|
|
1857 | =over 4 |
|
|
1858 | |
|
|
1859 | =item Special characters in I<action> must be backslash-escaped: |
|
|
1860 | |
|
|
1861 | B<\a \b \E \e \n \r \t \octal> |
|
|
1862 | |
|
|
1863 | =item or in control-character notation: |
|
|
1864 | |
|
|
1865 | B<^@, ^A .. ^Z .. ^_, ^?> |
|
|
1866 | |
|
|
1867 | =back |
|
|
1868 | |
|
|
1869 | To send a string starting with a B<NUL> (B<^@>) character to the |
|
|
1870 | program, start I<action> with a pair of B<NUL> characters (B<^@^@>), |
|
|
1871 | the first of which will be stripped off and the balance directed to the |
|
|
1872 | program. Otherwise if I<action> begins with B<NUL> followed by |
|
|
1873 | non-+B<NUL> characters, the leading B<NUL> is stripped off and the |
|
|
1874 | balance is sent back to rxvt. |
|
|
1875 | |
|
|
1876 | As a convenience for the many Emacs-type editors, I<action> may start |
|
|
1877 | with B<M-> (eg, B<M-$> is equivalent to B<\E$>) and a B<CR> will be |
|
|
1878 | appended if missed from B<M-x> commands. |
|
|
1879 | |
|
|
1880 | As a convenience for issuing XTerm B<ESC ]> sequences from a menubar (or |
|
|
1881 | quick arrow), a B<BEL> (B<^G>) will be appended if needed. |
|
|
1882 | |
|
|
1883 | =over 4 |
|
|
1884 | |
|
|
1885 | =item For example, |
|
|
1886 | |
|
|
1887 | B<M-xapropos> is equivalent to B<\Exapropos\r> |
|
|
1888 | |
|
|
1889 | =item and |
|
|
1890 | |
|
|
1891 | B<\E]703;mona;100> is equivalent to B<\E]703;mona;100\a> |
|
|
1892 | |
|
|
1893 | =back |
|
|
1894 | |
|
|
1895 | The option B<< {I<right-rtext>} >> will be right-justified. In the |
|
|
1896 | absence of a specified action, this text will be used as the I<action> |
|
|
1897 | as well. |
|
|
1898 | |
|
|
1899 | =over 4 |
|
|
1900 | |
|
|
1901 | =item For example, |
|
|
1902 | |
|
|
1903 | B</File/{Open}{^X^F}> is equivalent to B</File/{Open}{^X^F} ^X^F> |
|
|
1904 | |
|
|
1905 | =back |
|
|
1906 | |
|
|
1907 | The left label I<is> necessary, since it's used for matching, but |
|
|
1908 | implicitly hiding the left label (by using same name for both left and |
|
|
1909 | right labels), or explicitly hiding the left label (by preceeding it |
|
|
1910 | with a dot), makes it possible to have right-justified text only. |
|
|
1911 | |
|
|
1912 | =over 4 |
|
|
1913 | |
|
|
1914 | =item For example, |
|
|
1915 | |
|
|
1916 | B</File/{Open}{Open} Open-File-Action> |
|
|
1917 | |
|
|
1918 | =item or hiding it |
|
|
1919 | |
|
|
1920 | B</File/{.anylabel}{Open} Open-File-Action> |
|
|
1921 | |
|
|
1922 | =back |
|
|
1923 | |
|
|
1924 | X<menuBarRemove> |
|
|
1925 | |
|
|
1926 | =head2 Removing menus |
|
|
1927 | |
|
|
1928 | =over 4 |
|
|
1929 | |
|
|
1930 | =item B<< -/*+ >> |
|
|
1931 | |
|
|
1932 | remove all menus from the menuBar, the same as B<[clear]> |
|
|
1933 | |
|
|
1934 | =item B<< -+I</path>menu+ >> |
|
|
1935 | |
|
|
1936 | remove menu |
|
|
1937 | |
|
|
1938 | =item B<< -+I</path>{item}+ >> |
|
|
1939 | |
|
|
1940 | remove item |
|
|
1941 | |
|
|
1942 | =item B<< -+I</path>{-} >> |
|
|
1943 | |
|
|
1944 | remove separator) |
|
|
1945 | |
|
|
1946 | =item B<-/path/menu/*> |
|
|
1947 | |
|
|
1948 | remove all items, separators and submenus from menu |
|
|
1949 | |
|
|
1950 | =back |
|
|
1951 | |
|
|
1952 | X<menuBarArrows> |
|
|
1953 | |
|
|
1954 | =head2 Quick Arrows |
|
|
1955 | |
|
|
1956 | The menus also provide a hook for I<quick arrows> to provide easier |
|
|
1957 | user access. If nothing has been explicitly set, the default is to |
|
|
1958 | emulate the curror keys. The syntax permits each arrow to be altered |
|
|
1959 | individually or all four at once without re-entering their common |
|
|
1960 | beginning/end text. For example, to explicitly associate cursor actions |
|
|
1961 | with the arrows, any of the following forms could be used: |
|
|
1962 | |
|
|
1963 | =over 4 |
|
|
1964 | |
|
|
1965 | =item B<< <r>+I<Right> >> |
|
|
1966 | |
|
|
1967 | =item B<< <l>+I<Left> >> |
|
|
1968 | |
|
|
1969 | =item B<< <u>+I<Up> >> |
|
|
1970 | |
|
|
1971 | =item B<< <d>+I<Down> >> |
|
|
1972 | |
|
|
1973 | Define actions for the respective arrow buttons |
|
|
1974 | |
|
|
1975 | =item B<< <b>+I<Begin> >> |
|
|
1976 | |
|
|
1977 | =item B<< <e>+I<End> >> |
|
|
1978 | |
|
|
1979 | Define common beginning/end parts for I<quick arrows> which used in |
|
|
1980 | conjunction with the above <r> <l> <u> <d> constructs |
|
|
1981 | |
|
|
1982 | =back |
|
|
1983 | |
|
|
1984 | =over 4 |
|
|
1985 | |
|
|
1986 | =item For example, define arrows individually, |
|
|
1987 | |
|
|
1988 | <u>\E[A |
|
|
1989 | |
|
|
1990 | <d>\E[B |
|
|
1991 | |
|
|
1992 | <r>\E[C |
|
|
1993 | |
|
|
1994 | <l>\E[D |
|
|
1995 | |
|
|
1996 | =item or all at once |
|
|
1997 | |
|
|
1998 | <u>\E[AZ<><d>\E[BZ<><r>\E[CZ<><l>\E[D |
|
|
1999 | |
|
|
2000 | =item or more compactly (factoring out common parts) |
|
|
2001 | |
|
|
2002 | <b>\E[<u>AZ<><d>BZ<><r>CZ<><l>D |
|
|
2003 | |
|
|
2004 | =back |
|
|
2005 | |
|
|
2006 | X<menuBarSummary> |
|
|
2007 | |
|
|
2008 | =head2 Command Summary |
|
|
2009 | |
|
|
2010 | A short summary of the most I<common> commands: |
|
|
2011 | |
|
|
2012 | =over 4 |
|
|
2013 | |
|
|
2014 | =item [menu:name] |
|
|
2015 | |
|
|
2016 | use an existing named menuBar or start a new one |
|
|
2017 | |
|
|
2018 | =item [menu] |
|
|
2019 | |
|
|
2020 | use the current menuBar |
|
|
2021 | |
|
|
2022 | =item [title:string] |
|
|
2023 | |
|
|
2024 | set menuBar title |
|
|
2025 | |
|
|
2026 | =item [done] |
|
|
2027 | |
|
|
2028 | set menu access to readonly and, if reading from a file, signal EOF |
|
|
2029 | |
|
|
2030 | =item [done:name] |
|
|
2031 | |
|
|
2032 | if reading from a file using [read:file;name] signal EOF |
|
|
2033 | |
|
|
2034 | =item [rm:name] |
|
|
2035 | |
|
|
2036 | remove named menuBar(s) |
|
|
2037 | |
|
|
2038 | =item [rm] [rm:] |
|
|
2039 | |
|
|
2040 | remove current menuBar |
|
|
2041 | |
|
|
2042 | =item [rm*] [rm:*] |
|
|
2043 | |
|
|
2044 | remove all menuBar(s) |
|
|
2045 | |
|
|
2046 | =item [swap] |
|
|
2047 | |
|
|
2048 | swap top two menuBars |
|
|
2049 | |
|
|
2050 | =item [prev] |
|
|
2051 | |
|
|
2052 | access the previous menuBar |
|
|
2053 | |
|
|
2054 | =item [next] |
|
|
2055 | |
|
|
2056 | access the next menuBar |
|
|
2057 | |
|
|
2058 | =item [show] |
|
|
2059 | |
|
|
2060 | map menuBar |
|
|
2061 | |
|
|
2062 | =item [hide] |
|
|
2063 | |
|
|
2064 | unmap menuBar |
|
|
2065 | |
|
|
2066 | =item [pixmap;file] |
|
|
2067 | |
|
|
2068 | =item [pixmap;file;scaling] |
|
|
2069 | |
|
|
2070 | set a background pixmap |
|
|
2071 | |
|
|
2072 | =item [read:file] |
|
|
2073 | |
|
|
2074 | =item [read:file;name] |
|
|
2075 | |
|
|
2076 | read in a menu from a file |
|
|
2077 | |
|
|
2078 | =item [dump] |
|
|
2079 | |
|
|
2080 | dump out all menuBars to /tmp/rxvt-PID |
|
|
2081 | |
|
|
2082 | =item / |
|
|
2083 | |
|
|
2084 | access menuBar top level |
|
|
2085 | |
|
|
2086 | =item ./ |
|
|
2087 | |
|
|
2088 | =item ../ |
|
|
2089 | |
|
|
2090 | =item ../../ |
|
|
2091 | |
|
|
2092 | access current or parent menu level |
|
|
2093 | |
|
|
2094 | =item /path/menu |
|
|
2095 | |
|
|
2096 | add/access menu |
|
|
2097 | |
|
|
2098 | =item /path/{-} |
|
|
2099 | |
|
|
2100 | add separator |
|
|
2101 | |
|
|
2102 | =item /path/{item}{rtext} action |
|
|
2103 | |
|
|
2104 | add/alter menu item |
|
|
2105 | |
|
|
2106 | =item -/* |
|
|
2107 | |
|
|
2108 | remove all menus from the menuBar |
|
|
2109 | |
|
|
2110 | =item -/path/menu |
|
|
2111 | |
|
|
2112 | remove menu items, separators and submenus from menu |
|
|
2113 | |
|
|
2114 | =item -/path/menu |
|
|
2115 | |
|
|
2116 | remove menu |
|
|
2117 | |
|
|
2118 | =item -/path/{item} |
|
|
2119 | |
|
|
2120 | remove item |
|
|
2121 | |
|
|
2122 | =item -/path/{-} |
|
|
2123 | |
|
|
2124 | remove separator |
|
|
2125 | |
|
|
2126 | =item <b>Begin<r>Right<l>Left<u>Up<d>Down<e>End |
|
|
2127 | |
|
|
2128 | menu quick arrows |
|
|
2129 | |
|
|
2130 | =back |
|
|
2131 | X<XPM> |
1789 | X<XPM> |
2132 | |
1790 | |
2133 | =head1 XPM |
1791 | =head1 XPM |
2134 | |
1792 | |
2135 | For the XPM XTerm escape sequence B<< C<ESC ] 20 ; Pt ST> >> then value |
1793 | For the XPM XTerm escape sequence B<< C<ESC ] 20 ; Pt ST> >> then value |
… | |
… | |
2382 | alternative input methods (e.g. kinput2) and will also correctly |
2040 | alternative input methods (e.g. kinput2) and will also correctly |
2383 | set up the input for people using dead keys or compose keys. |
2041 | set up the input for people using dead keys or compose keys. |
2384 | |
2042 | |
2385 | =item --enable-unicode3 (default: off) |
2043 | =item --enable-unicode3 (default: off) |
2386 | |
2044 | |
|
|
2045 | Recommended to stay off unless you really need non-BMP characters. |
|
|
2046 | |
2387 | Enable direct support for displaying unicode codepoints above |
2047 | Enable direct support for displaying unicode codepoints above |
2388 | 65535 (the basic multilingual page). This increases storage |
2048 | 65535 (the basic multilingual page). This increases storage |
2389 | requirements per character from 2 to 4 bytes. X11 fonts do not yet |
2049 | requirements per character from 2 to 4 bytes. X11 fonts do not yet |
2390 | support these extra characters, but Xft does. |
2050 | support these extra characters, but Xft does. |
2391 | |
2051 | |
… | |
… | |
2401 | composite characters. This is required for proper viewing of text |
2061 | composite characters. This is required for proper viewing of text |
2402 | where accents are encoded as seperate unicode characters. This is |
2062 | where accents are encoded as seperate unicode characters. This is |
2403 | done by using precomposited characters when available or creating |
2063 | done by using precomposited characters when available or creating |
2404 | new pseudo-characters when no precomposed form exists. |
2064 | new pseudo-characters when no precomposed form exists. |
2405 | |
2065 | |
2406 | Without --enable-unicode3, the number of additional precomposed characters |
2066 | Without --enable-unicode3, the number of additional precomposed |
2407 | is rather limited (2048, if this is full, rxvt-unicode will use the |
2067 | characters is somewhat limited (the 6400 private use characters will be |
2408 | private use area, extending the number of combinations to 8448). With |
|
|
2409 | --enable-unicode3, no practical limit exists. |
2068 | (ab-)used). With --enable-unicode3, no practical limit exists. |
2410 | |
2069 | |
2411 | This option will also enable storage (but not display) of characters |
2070 | This option will also enable storage (but not display) of characters |
2412 | beyond plane 0 (>65535) when --enable-unicode3 was not specified. |
2071 | beyond plane 0 (>65535) when --enable-unicode3 was not specified. |
2413 | |
2072 | |
2414 | The combining table also contains entries for arabic presentation forms, |
2073 | The combining table also contains entries for arabic presentation forms, |
2415 | but these are not currently used. Bug me if you want these to be used (and |
2074 | but these are not currently used. Bug me if you want these to be used (and |
2416 | tell me how these are to be used...). |
2075 | tell me how these are to be used...). |
2417 | |
2076 | |
2418 | =item --enable-fallback(=CLASS) (default: Rxvt) |
2077 | =item --enable-fallback(=CLASS) (default: Rxvt) |
2419 | |
2078 | |
2420 | When reading resource settings, also read settings for class CLASS. To disable resource fallback use --disable-fallback. |
2079 | When reading resource settings, also read settings for class CLASS. To |
|
|
2080 | disable resource fallback use --disable-fallback. |
2421 | |
2081 | |
2422 | =item --with-res-name=NAME (default: urxvt) |
2082 | =item --with-res-name=NAME (default: urxvt) |
2423 | |
2083 | |
2424 | Use the given name as default application name when |
2084 | Use the given name as default application name when |
2425 | reading resources. Specify --with-res-name=rxvt to replace rxvt. |
2085 | reading resources. Specify --with-res-name=rxvt to replace rxvt. |
… | |
… | |
2462 | |
2122 | |
2463 | =item --enable-tinting (default: on) |
2123 | =item --enable-tinting (default: on) |
2464 | |
2124 | |
2465 | Add support for tinting of transparent backgrounds (requires C<--enable-transparency>). |
2125 | Add support for tinting of transparent backgrounds (requires C<--enable-transparency>). |
2466 | |
2126 | |
2467 | =item --enable-menubar (default: off) [DEPRECATED] |
|
|
2468 | |
|
|
2469 | Add support for our menu bar system (this interacts badly with dynamic |
|
|
2470 | locale switching currently). This option is DEPRECATED and will be removed |
|
|
2471 | in the future. |
|
|
2472 | |
|
|
2473 | =item --enable-rxvt-scroll (default: on) |
2127 | =item --enable-rxvt-scroll (default: on) |
2474 | |
2128 | |
2475 | Add support for the original rxvt scrollbar. |
2129 | Add support for the original rxvt scrollbar. |
2476 | |
2130 | |
2477 | =item --enable-next-scroll (default: on) |
2131 | =item --enable-next-scroll (default: on) |
… | |
… | |
2486 | |
2140 | |
2487 | Add support for a very unobtrusive, plain-looking scrollbar that |
2141 | Add support for a very unobtrusive, plain-looking scrollbar that |
2488 | is the favourite of the rxvt-unicode author, having used it for |
2142 | is the favourite of the rxvt-unicode author, having used it for |
2489 | many years. |
2143 | many years. |
2490 | |
2144 | |
2491 | =item --enable-half-shadow (default: off) |
|
|
2492 | |
|
|
2493 | Make shadows on the scrollbar only half the normal width & height. |
|
|
2494 | only applicable to rxvt scrollbars. |
|
|
2495 | |
|
|
2496 | =item --enable-ttygid (default: off) |
2145 | =item --enable-ttygid (default: off) |
2497 | |
2146 | |
2498 | Change tty device setting to group "tty" - only use this if |
2147 | Change tty device setting to group "tty" - only use this if |
2499 | your system uses this type of security. |
2148 | your system uses this type of security. |
2500 | |
2149 | |
… | |
… | |
2508 | do it. |
2157 | do it. |
2509 | |
2158 | |
2510 | =item --disable-resources |
2159 | =item --disable-resources |
2511 | |
2160 | |
2512 | Removes any support for resource checking. |
2161 | Removes any support for resource checking. |
2513 | |
|
|
2514 | =item --enable-xgetdefault |
|
|
2515 | |
|
|
2516 | Make resources checking via XGetDefault() instead of our small |
|
|
2517 | version which only checks ~/.Xdefaults, or if that doesn't exist then |
|
|
2518 | ~/.Xresources. |
|
|
2519 | |
|
|
2520 | Please note that nowadays, things like XIM will automatically pull in and |
|
|
2521 | use the full X resource manager, so the overhead of using it might be very |
|
|
2522 | small, if nonexistant. |
|
|
2523 | |
|
|
2524 | =item --enable-strings (default: off) |
|
|
2525 | |
|
|
2526 | Add support for our possibly faster memset() function and other |
|
|
2527 | various routines, overriding your system's versions which may |
|
|
2528 | have been hand-crafted in assembly or may require extra libraries |
|
|
2529 | to link in. (this breaks ANSI-C rules and has problems on many |
|
|
2530 | GNU/Linux systems). |
|
|
2531 | |
2162 | |
2532 | =item --disable-swapscreen |
2163 | =item --disable-swapscreen |
2533 | |
2164 | |
2534 | Remove support for secondary/swap screen. |
2165 | Remove support for secondary/swap screen. |
2535 | |
2166 | |
… | |
… | |
2544 | |
2175 | |
2545 | MWM-hints |
2176 | MWM-hints |
2546 | EWMH-hints (pid, utf8 names) and protocols (ping) |
2177 | EWMH-hints (pid, utf8 names) and protocols (ping) |
2547 | seperate underline colour (-underlineColor) |
2178 | seperate underline colour (-underlineColor) |
2548 | settable border widths and borderless switch (-w, -b, -bl) |
2179 | settable border widths and borderless switch (-w, -b, -bl) |
|
|
2180 | visual depth selection (-depth) |
2549 | settable extra linespacing /-lsp) |
2181 | settable extra linespacing /-lsp) |
2550 | iso-14755-2 and -3, and visual feedback |
2182 | iso-14755-2 and -3, and visual feedback |
2551 | backindex and forwardindex escape sequence |
|
|
2552 | window op and some xterm/OSC escape sequences |
|
|
2553 | tripleclickwords (-tcw) |
2183 | tripleclickwords (-tcw) |
2554 | settable insecure mode (-insecure) |
2184 | settable insecure mode (-insecure) |
2555 | keysym remapping support |
2185 | keysym remapping support |
2556 | cursor blinking and underline cursor (-cb, -uc) |
2186 | cursor blinking and underline cursor (-cb, -uc) |
2557 | XEmbed support (-embed) |
2187 | XEmbed support (-embed) |
2558 | user-pty (-pty-fd) |
2188 | user-pty (-pty-fd) |
2559 | hold on exit (-hold) |
2189 | hold on exit (-hold) |
2560 | skip builtin block graphics (-sbg) |
2190 | skip builtin block graphics (-sbg) |
|
|
2191 | |
|
|
2192 | It also enabled some non-essential features otherwise disabled, such as: |
|
|
2193 | |
|
|
2194 | some round-trip time optimisations |
|
|
2195 | nearest color allocation on pseudocolor screens |
|
|
2196 | UTF8_STRING supporr for selection |
2561 | sgr modes 90..97 and 100..107 |
2197 | sgr modes 90..97 and 100..107 |
|
|
2198 | backindex and forwardindex escape sequences |
|
|
2199 | view change/zero scorllback esacpe sequences |
|
|
2200 | locale switching escape sequence |
|
|
2201 | window op and some xterm/OSC escape sequences |
|
|
2202 | rectangular selections |
|
|
2203 | trailing space removal for selections |
|
|
2204 | verbose X error handling |
2562 | |
2205 | |
2563 | =item --enable-iso14755 (default: on) |
2206 | =item --enable-iso14755 (default: on) |
2564 | |
2207 | |
2565 | Enable extended ISO 14755 support (see @@RXVT_NAME@@(1), or |
2208 | Enable extended ISO 14755 support (see @@RXVT_NAME@@(1), or |
2566 | F<doc/rxvt.1.txt>). Basic support (section 5.1) is enabled by |
2209 | F<doc/rxvt.1.txt>). Basic support (section 5.1) is enabled by |
… | |
… | |
2609 | |
2252 | |
2610 | =item --enable-pointer-blank (default: on) |
2253 | =item --enable-pointer-blank (default: on) |
2611 | |
2254 | |
2612 | Add support to have the pointer disappear when typing or inactive. |
2255 | Add support to have the pointer disappear when typing or inactive. |
2613 | |
2256 | |
2614 | =item --enable-perl (default: off) |
2257 | =item --enable-perl (default: on) |
2615 | |
2258 | |
2616 | Enable an embedded perl interpreter. See the B<@@RXVT_NAME@@perl(3)> |
2259 | Enable an embedded perl interpreter. See the B<@@RXVT_NAME@@perl(3)> |
2617 | manpage (F<doc/rxvtperl.txt>) for more info on this feature, or the files |
2260 | manpage (F<doc/rxvtperl.txt>) for more info on this feature, or the files |
2618 | in F<src/perl-ext/> for the extensions that are installed by default. The |
2261 | in F<src/perl-ext/> for the extensions that are installed by default. The |
2619 | perl interpreter that is used can be specified via the C<PERL> environment |
2262 | perl interpreter that is used can be specified via the C<PERL> environment |