… | |
… | |
18 | The newest version of this document is also available on the World Wide |
18 | The newest version of this document is also available on the World Wide |
19 | Web at |
19 | Web at |
20 | <http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxvt.7.html>. |
20 | <http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxvt.7.html>. |
21 | |
21 | |
22 | FREQUENTLY ASKED QUESTIONS |
22 | FREQUENTLY ASKED QUESTIONS |
|
|
23 | The new selection selects pieces that are too big, how can I select |
|
|
24 | single words? |
|
|
25 | Yes. For example, if you want to select alphanumeric words, you can |
|
|
26 | use the following resource: |
|
|
27 | |
|
|
28 | URxvt.selection.pattern-0: ([[:word:]]+) |
|
|
29 | |
|
|
30 | If you click more than twice, the selection will be extended more |
|
|
31 | and more. |
|
|
32 | |
|
|
33 | To get a selection that is very similar to the old code, try this |
|
|
34 | pattern: |
|
|
35 | |
|
|
36 | URxvt.selection.pattern-0: ([^"&'()*,;<=>?@[\\\\]^`{|})]+) |
|
|
37 | |
|
|
38 | Please also note that the *LeftClick Shift-LeftClik* combination |
|
|
39 | also selects words like the old code. |
|
|
40 | |
|
|
41 | I don't like the new selection/popups/hotkeys/perl, how do I |
|
|
42 | change/disable it? |
|
|
43 | You can disable the perl extension completely by setting the |
|
|
44 | perl-ext-common resource to the empty string, which also keeps |
|
|
45 | rxvt-unicode from initialising perl, saving memory. |
|
|
46 | |
|
|
47 | If you only want to disable specific features, you first have to |
|
|
48 | identify which perl extension is responsible. For this, read the |
|
|
49 | section PREPACKAGED EXTENSIONS in the rxvtperl(3) manpage. For |
|
|
50 | example, to disable the selection-popup and option-popup, specify |
|
|
51 | this perl-ext-common resource: |
|
|
52 | |
|
|
53 | URxvt.perl-ext-common: default,-selection-popup,-option-popup |
|
|
54 | |
|
|
55 | This will keep the default extensions, but disable the two popup |
|
|
56 | extensions. Some extensions can also be configured, for example, |
|
|
57 | scrollback search mode is triggered by M-s. You can move it to any |
|
|
58 | other combination either by setting the searchable-scrollback |
|
|
59 | resource: |
|
|
60 | |
|
|
61 | URxvt.searchable-scrollback: CM-s |
|
|
62 | |
23 | Isn't rxvt supposed to be small? Don't all those features bloat? |
63 | Isn't rxvt supposed to be small? Don't all those features bloat? |
24 | I often get asked about this, and I think, no, they didn't cause |
64 | I often get asked about this, and I think, no, they didn't cause |
25 | extra bloat. If you compare a minimal rxvt and a minimal urxvt, you |
65 | extra bloat. If you compare a minimal rxvt and a minimal urxvt, you |
26 | can see that the urxvt binary is larger (due to some encoding tables |
66 | can see that the urxvt binary is larger (due to some encoding tables |
27 | always being compiled in), but it actually uses less memory (RSS) |
67 | always being compiled in), but it actually uses less memory (RSS) |
… | |
… | |
56 | |
96 | |
57 | Compared to e.g. Eterm (5112k), aterm (3132k) and xterm (4680k), |
97 | Compared to e.g. Eterm (5112k), aterm (3132k) and xterm (4680k), |
58 | this still fares rather well. And compared to some monsters like |
98 | this still fares rather well. And compared to some monsters like |
59 | gnome-terminal (21152k + extra 4204k in separate processes) or |
99 | gnome-terminal (21152k + extra 4204k in separate processes) or |
60 | konsole (22200k + extra 43180k in daemons that stay around after |
100 | konsole (22200k + extra 43180k in daemons that stay around after |
61 | exit, plus half aminute of startup time, including the hundreds of |
101 | exit, plus half a minute of startup time, including the hundreds of |
62 | warnings it spits out), it fares extremely well *g*. |
102 | warnings it spits out), it fares extremely well *g*. |
63 | |
103 | |
64 | Why C++, isn't that unportable/bloated/uncool? |
104 | Why C++, isn't that unportable/bloated/uncool? |
65 | Is this a question? :) It comes up very often. The simple answer is: |
105 | Is this a question? :) It comes up very often. The simple answer is: |
66 | I had to write it, and C++ allowed me to write and maintain it in a |
106 | I had to write it, and C++ allowed me to write and maintain it in a |
… | |
… | |
104 | terminal as an example embedding application. |
144 | terminal as an example embedding application. |
105 | |
145 | |
106 | How do I know which rxvt-unicode version I'm using? |
146 | How do I know which rxvt-unicode version I'm using? |
107 | The version number is displayed with the usage (-h). Also the escape |
147 | The version number is displayed with the usage (-h). Also the escape |
108 | sequence "ESC [ 8 n" sets the window title to the version number. |
148 | sequence "ESC [ 8 n" sets the window title to the version number. |
109 | When using the urxvtc client, the version displayed is that of the |
149 | When using the rxvtc client, the version displayed is that of the |
110 | daemon. |
150 | daemon. |
111 | |
151 | |
112 | I am using Debian GNU/Linux and have a problem... |
152 | I am using Debian GNU/Linux and have a problem... |
113 | The Debian GNU/Linux package of rxvt-unicode in sarge contains large |
153 | The Debian GNU/Linux package of rxvt-unicode in sarge contains large |
114 | patches that considerably change the behaviour of rxvt-unicode. |
154 | patches that considerably change the behaviour of rxvt-unicode. |
… | |
… | |
122 | For other problems that also affect the Debian package, you can and |
162 | For other problems that also affect the Debian package, you can and |
123 | probably should use the Debian BTS, too, because, after all, it's |
163 | probably should use the Debian BTS, too, because, after all, it's |
124 | also a bug in the Debian version and it serves as a reminder for |
164 | also a bug in the Debian version and it serves as a reminder for |
125 | other users that might encounter the same issue. |
165 | other users that might encounter the same issue. |
126 | |
166 | |
|
|
167 | I am maintaining rxvt-unicode for distribution/OS XXX, any |
|
|
168 | recommendation? |
|
|
169 | You should build one binary with the default options. configure now |
|
|
170 | enables most useful options, and the trend goes to making them |
|
|
171 | runtime-switchable, too, so there is usually no drawback to enbaling |
|
|
172 | them, except higher disk and possibly memory usage. The perl |
|
|
173 | interpreter should be enabled, as important functionality (menus, |
|
|
174 | selection, likely more in the future) depends on it. |
|
|
175 | |
|
|
176 | You should not overwrite the "perl-ext-common" snd "perl-ext" |
|
|
177 | resources system-wide (except maybe with "defaults"). This will |
|
|
178 | result in useful behaviour. If your distribution aims at low memory, |
|
|
179 | add an empty "perl-ext-common" resource to the app-defaults file. |
|
|
180 | This will keep the perl interpreter disabled until the user enables |
|
|
181 | it. |
|
|
182 | |
|
|
183 | If you can/want build more binaries, I recommend building a minimal |
|
|
184 | one with "--disable-everything" (very useful) and a maximal one with |
|
|
185 | "--enable-everything" (less useful, it will be very big due to a lot |
|
|
186 | of encodings built-in that increase download times and are rarely |
|
|
187 | used). |
|
|
188 | |
|
|
189 | I need to make it setuid/setgid to support utmp/ptys on my OS, is this |
|
|
190 | safe? |
|
|
191 | Likely not. While I honestly try to make it secure, and am probably |
|
|
192 | not bad at it, I think it is simply unreasonable to expect all of |
|
|
193 | freetype + fontconfig + xft + xlib + perl + ... + rxvt-unicode |
|
|
194 | itself to all be secure. Also, rxvt-unicode disables some options |
|
|
195 | when it detects that it runs setuid or setgid, which is not nice. |
|
|
196 | Besides, with the embedded perl interpreter the possibility for |
|
|
197 | security problems easily multiplies. |
|
|
198 | |
|
|
199 | Elevated privileges are only required for utmp and pty operations on |
|
|
200 | some systems (for example, GNU/Linux doesn't need any extra |
|
|
201 | privileges for ptys, but some need it for utmp support). It is |
|
|
202 | planned to mvoe this into a forked handler process, but this is not |
|
|
203 | yet done. |
|
|
204 | |
|
|
205 | So, while setuid/setgid operation is supported and not a problem on |
|
|
206 | your typical single-user-no-other-logins unix desktop, always |
|
|
207 | remember that its an awful lot of code, most of which isn't checked |
|
|
208 | for security issues regularly. |
|
|
209 | |
127 | When I log-in to another system it tells me about missing terminfo data? |
210 | When I log-in to another system it tells me about missing terminfo data? |
128 | The terminal description used by rxvt-unicode is not as widely |
211 | The terminal description used by rxvt-unicode is not as widely |
129 | available as that for xterm, or even rxvt (for which the same |
212 | available as that for xterm, or even rxvt (for which the same |
130 | problem often arises). |
213 | problem often arises). |
131 | |
214 | |
… | |
… | |
155 | |
238 | |
156 | "tic" outputs some error when compiling the terminfo entry. |
239 | "tic" outputs some error when compiling the terminfo entry. |
157 | Most likely it's the empty definition for "enacs=". Just replace it |
240 | Most likely it's the empty definition for "enacs=". Just replace it |
158 | by "enacs=\E[0@" and try again. |
241 | by "enacs=\E[0@" and try again. |
159 | |
242 | |
160 | "bash"'s readline does not work correctly under urxvt. |
243 | "bash"'s readline does not work correctly under rxvt. |
161 | I need a termcap file entry. |
244 | I need a termcap file entry. |
162 | One reason you might want this is that some distributions or |
245 | One reason you might want this is that some distributions or |
163 | operating systems still compile some programs using the |
246 | operating systems still compile some programs using the |
164 | long-obsoleted termcap library (Fedora Core's bash is one example) |
247 | long-obsoleted termcap library (Fedora Core's bash is one example) |
165 | and rely on a termcap entry for "rxvt-unicode". |
248 | and rely on a termcap entry for "rxvt-unicode". |
… | |
… | |
276 | indeed look correct. |
359 | indeed look correct. |
277 | |
360 | |
278 | In that case, select a font of your taste and add it to the font |
361 | In that case, select a font of your taste and add it to the font |
279 | list, e.g.: |
362 | list, e.g.: |
280 | |
363 | |
281 | urxvt -fn basefont,font2,font3... |
364 | rxvt -fn basefont,font2,font3... |
282 | |
365 | |
283 | When rxvt-unicode sees a character, it will first look at the base |
366 | When rxvt-unicode sees a character, it will first look at the base |
284 | font. If the base font does not contain the character, it will go to |
367 | font. If the base font does not contain the character, it will go to |
285 | the next font, and so on. Specifying your own fonts will also speed |
368 | the next font, and so on. Specifying your own fonts will also speed |
286 | up this search and use less resources within rxvt-unicode and the |
369 | up this search and use less resources within rxvt-unicode and the |
… | |
… | |
518 | |
601 | |
519 | My input method wants <some encoding> but I want UTF-8, what can I do? |
602 | My input method wants <some encoding> but I want UTF-8, what can I do? |
520 | You can specify separate locales for the input method and the rest |
603 | You can specify separate locales for the input method and the rest |
521 | of the terminal, using the resource "imlocale": |
604 | of the terminal, using the resource "imlocale": |
522 | |
605 | |
523 | URxvt*imlocale: ja_JP.EUC-JP |
606 | URxvt.imlocale: ja_JP.EUC-JP |
524 | |
607 | |
525 | Now you can start your terminal with "LC_CTYPE=ja_JP.UTF-8" and |
608 | Now you can start your terminal with "LC_CTYPE=ja_JP.UTF-8" and |
526 | still use your input method. Please note, however, that you will not |
609 | still use your input method. Please note, however, that you will not |
527 | be able to input characters outside "EUC-JP" in a normal way then, |
610 | be able to input characters outside "EUC-JP" in a normal way then, |
528 | as your input method limits you. |
611 | as your input method limits you. |
… | |
… | |
571 | Mouse cut/paste suddenly no longer works. |
654 | Mouse cut/paste suddenly no longer works. |
572 | Make sure that mouse reporting is actually turned off since killing |
655 | Make sure that mouse reporting is actually turned off since killing |
573 | some editors prematurely may leave the mouse in mouse report mode. |
656 | some editors prematurely may leave the mouse in mouse report mode. |
574 | I've heard that tcsh may use mouse reporting unless it otherwise |
657 | I've heard that tcsh may use mouse reporting unless it otherwise |
575 | specified. A quick check is to see if cut/paste works when the Alt |
658 | specified. A quick check is to see if cut/paste works when the Alt |
576 | or Shift keys are depressed. See urxvt(7) |
659 | or Shift keys are depressed. |
577 | |
660 | |
578 | What's with this bold/blink stuff? |
661 | What's with this bold/blink stuff? |
579 | If no bold colour is set via "colorBD:", bold will invert text using |
662 | If no bold colour is set via "colorBD:", bold will invert text using |
580 | the standard foreground colour. |
663 | the standard foreground colour. |
581 | |
664 | |
… | |
… | |
636 | URxvt.color6: #73f7ff |
719 | URxvt.color6: #73f7ff |
637 | URxvt.color14: #73f7ff |
720 | URxvt.color14: #73f7ff |
638 | URxvt.color7: #e1dddd |
721 | URxvt.color7: #e1dddd |
639 | URxvt.color15: #e1dddd |
722 | URxvt.color15: #e1dddd |
640 | |
723 | |
641 | How can I start urxvtd in a race-free way? |
724 | How can I start rxvtd in a race-free way? |
642 | Try "urxvtd -f -o", which tells urxvtd to open the display, create |
725 | Try "rxvtd -f -o", which tells rxvtd to open the display, create the |
643 | the listening socket and then fork. |
726 | listening socket and then fork. |
644 | |
727 | |
645 | What's with the strange Backspace/Delete key behaviour? |
728 | What's with the strange Backspace/Delete key behaviour? |
646 | Assuming that the physical Backspace key corresponds to the |
729 | Assuming that the physical Backspace key corresponds to the |
647 | BackSpace keysym (not likely for Linux ... see the following |
730 | BackSpace keysym (not likely for Linux ... see the following |
648 | question) there are two standard values that can be used for |
731 | question) there are two standard values that can be used for |
… | |
… | |
661 | |
744 | |
662 | For starting a new rxvt-unicode: |
745 | For starting a new rxvt-unicode: |
663 | |
746 | |
664 | # use Backspace = ^H |
747 | # use Backspace = ^H |
665 | $ stty erase ^H |
748 | $ stty erase ^H |
666 | $ urxvt |
749 | $ rxvt |
667 | |
750 | |
668 | # use Backspace = ^? |
751 | # use Backspace = ^? |
669 | $ stty erase ^? |
752 | $ stty erase ^? |
670 | $ urxvt |
753 | $ rxvt |
671 | |
754 | |
672 | Toggle with "ESC [ 36 h" / "ESC [ 36 l" as documented in urxvt(7). |
755 | Toggle with "ESC [ 36 h" / "ESC [ 36 l". |
673 | |
756 | |
674 | For an existing rxvt-unicode: |
757 | For an existing rxvt-unicode: |
675 | |
758 | |
676 | # use Backspace = ^H |
759 | # use Backspace = ^H |
677 | $ stty erase ^H |
760 | $ stty erase ^H |
… | |
… | |
703 | There are some compile-time selections available via configure. |
786 | There are some compile-time selections available via configure. |
704 | Unless you have run "configure" with the "--disable-resources" |
787 | Unless you have run "configure" with the "--disable-resources" |
705 | option you can use the `keysym' resource to alter the keystrings |
788 | option you can use the `keysym' resource to alter the keystrings |
706 | associated with keysyms. |
789 | associated with keysyms. |
707 | |
790 | |
708 | Here's an example for a URxvt session started using "urxvt -name |
791 | Here's an example for a URxvt session started using "rxvt -name |
709 | URxvt" |
792 | URxvt" |
710 | |
793 | |
711 | URxvt.keysym.Home: \033[1~ |
794 | URxvt.keysym.Home: \033[1~ |
712 | URxvt.keysym.End: \033[4~ |
795 | URxvt.keysym.End: \033[4~ |
713 | URxvt.keysym.C-apostrophe: \033<C-'> |
796 | URxvt.keysym.C-apostrophe: \033<C-'> |
… | |
… | |
1169 | |
1252 | |
1170 | "Ps = 9" X10 XTerm |
1253 | "Ps = 9" X10 XTerm |
1171 | h Send Mouse X & Y on button press. |
1254 | h Send Mouse X & Y on button press. |
1172 | l No mouse reporting. |
1255 | l No mouse reporting. |
1173 | |
1256 | |
1174 | "Ps = 10" (rxvt) |
|
|
1175 | h menuBar visible |
|
|
1176 | l menuBar invisible |
|
|
1177 | |
|
|
1178 | "Ps = 25" |
1257 | "Ps = 25" |
1179 | h Visible cursor {cnorm/cvvis} |
1258 | h Visible cursor {cnorm/cvvis} |
1180 | l Invisible cursor {civis} |
1259 | l Invisible cursor {civis} |
1181 | |
1260 | |
1182 | "Ps = 30" |
1261 | "Ps = 30" |
… | |
… | |
1230 | l Scroll to bottom on TTY output |
1309 | l Scroll to bottom on TTY output |
1231 | |
1310 | |
1232 | "Ps = 1011" (rxvt) |
1311 | "Ps = 1011" (rxvt) |
1233 | h Scroll to bottom when a key is pressed |
1312 | h Scroll to bottom when a key is pressed |
1234 | l Don't scroll to bottom when a key is pressed |
1313 | l Don't scroll to bottom when a key is pressed |
|
|
1314 | |
|
|
1315 | "Ps = 1021" (rxvt) |
|
|
1316 | h Bold/italic implies high intensity (see option -is) |
|
|
1317 | l Font styles have no effect on intensity (Compile styles) |
1235 | |
1318 | |
1236 | "Ps = 1047" |
1319 | "Ps = 1047" |
1237 | h Use Alternate Screen Buffer |
1320 | h Use Alternate Screen Buffer |
1238 | l Use Normal Screen Buffer - clear Alternate Screen Buffer if returning from it |
1321 | l Use Normal Screen Buffer - clear Alternate Screen Buffer if returning from it |
1239 | |
1322 | |
… | |
… | |
1262 | Ps = 10 Change colour of text foreground to Pt (NB: may change in future) |
1345 | Ps = 10 Change colour of text foreground to Pt (NB: may change in future) |
1263 | Ps = 11 Change colour of text background to Pt (NB: may change in future) |
1346 | Ps = 11 Change colour of text background to Pt (NB: may change in future) |
1264 | Ps = 12 Change colour of text cursor foreground to Pt |
1347 | Ps = 12 Change colour of text cursor foreground to Pt |
1265 | Ps = 13 Change colour of mouse foreground to Pt |
1348 | Ps = 13 Change colour of mouse foreground to Pt |
1266 | Ps = 17 Change colour of highlight characters to Pt |
1349 | Ps = 17 Change colour of highlight characters to Pt |
1267 | Ps = 18 Change colour of bold characters to Pt |
1350 | Ps = 18 Change colour of bold characters to Pt [deprecated, see 706] |
1268 | Ps = 19 Change colour of underlined characters to Pt |
1351 | Ps = 19 Change colour of underlined characters to Pt [deprecated, see 707] |
1269 | Ps = 20 Change default background to Pt |
1352 | Ps = 20 Change default background to Pt |
1270 | Ps = 39 Change default foreground colour to Pt. |
1353 | Ps = 39 Change default foreground colour to Pt. |
1271 | Ps = 46 Change Log File to Pt unimplemented |
1354 | Ps = 46 Change Log File to Pt unimplemented |
1272 | Ps = 49 Change default background colour to Pt. |
1355 | Ps = 49 Change default background colour to Pt. |
1273 | Ps = 50 Set fontset to Pt, with the following special values of Pt (rxvt) #+n change up n #-n change down n if n is missing of 0, a value of 1 is used empty change to font0 n change to font n |
1356 | Ps = 50 Set fontset to Pt, with the following special values of Pt (rxvt) #+n change up n #-n change down n if n is missing of 0, a value of 1 is used empty change to font0 n change to font n |
1274 | Ps = 55 Log all scrollback buffer and all of screen to Pt |
1357 | Ps = 55 Log all scrollback buffer and all of screen to Pt |
1275 | Ps = 701 Change current locale to Pt, or, if Pt is ?, return the current locale (Compile frills). |
1358 | Ps = 701 Change current locale to Pt, or, if Pt is ?, return the current locale (Compile frills). |
1276 | Ps = 703 Menubar command Pt (Compile menubar). |
|
|
1277 | Ps = 704 Change colour of italic characters to Pt |
1359 | Ps = 704 Change colour of italic characters to Pt |
1278 | Ps = 705 Change background pixmap tint colour to Pt (Compile transparency). |
1360 | Ps = 705 Change background pixmap tint colour to Pt (Compile transparency). |
|
|
1361 | Ps = 706 Change colour of bold characters to Pt |
|
|
1362 | Ps = 707 Change colour of underlined characters to Pt |
1279 | Ps = 710 Set normal fontset to Pt. Same as Ps = 50. |
1363 | Ps = 710 Set normal fontset to Pt. Same as Ps = 50. |
1280 | Ps = 711 Set bold fontset to Pt. Similar to Ps = 50 (Compile styles). |
1364 | Ps = 711 Set bold fontset to Pt. Similar to Ps = 50 (Compile styles). |
1281 | Ps = 712 Set italic fontset to Pt. Similar to Ps = 50 (Compile styles). |
1365 | Ps = 712 Set italic fontset to Pt. Similar to Ps = 50 (Compile styles). |
1282 | Ps = 713 Set bold-italic fontset to Pt. Similar to Ps = 50 (Compile styles). |
1366 | Ps = 713 Set bold-italic fontset to Pt. Similar to Ps = 50 (Compile styles). |
1283 | Ps = 720 Move viewing window up by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills). |
1367 | Ps = 720 Move viewing window up by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills). |
1284 | Ps = 721 Move viewing window down by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills). |
1368 | Ps = 721 Move viewing window down by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills). |
|
|
1369 | Ps = 777 Call the perl extension with the given string, which should be of the form extension:parameters (Compile perl). |
1285 | |
1370 | |
1286 | |
1371 | |
1287 | |
|
|
1288 | menuBar |
|
|
1289 | The exact syntax used is *almost* solidified. In the menus, DON'T try to |
|
|
1290 | use menuBar commands that add or remove a menuBar. |
|
|
1291 | |
|
|
1292 | Note that in all of the commands, the */path/* *cannot* be omitted: use |
|
|
1293 | ./ to specify a menu relative to the current menu. |
|
|
1294 | |
|
|
1295 | Overview of menuBar operation |
|
|
1296 | For the menuBar XTerm escape sequence "ESC ] 703 ; Pt ST", the syntax of |
|
|
1297 | "Pt" can be used for a variety of tasks: |
|
|
1298 | |
|
|
1299 | At the top level is the current menuBar which is a member of a circular |
|
|
1300 | linked-list of other such menuBars. |
|
|
1301 | |
|
|
1302 | The menuBar acts as a parent for the various drop-down menus, which in |
|
|
1303 | turn, may have labels, separator lines, menuItems and subMenus. |
|
|
1304 | |
|
|
1305 | The menuItems are the useful bits: you can use them to mimic keyboard |
|
|
1306 | input or even to send text or escape sequences back to rxvt. |
|
|
1307 | |
|
|
1308 | The menuBar syntax is intended to provide a simple yet robust method of |
|
|
1309 | constructing and manipulating menus and navigating through the menuBars. |
|
|
1310 | |
|
|
1311 | The first step is to use the tag [menu:*name*] which creates the menuBar |
|
|
1312 | called *name* and allows access. You may now or menus, subMenus, and |
|
|
1313 | menuItems. Finally, use the tag [done] to set the menuBar access as |
|
|
1314 | readonly to prevent accidental corruption of the menus. To re-access the |
|
|
1315 | current menuBar for alterations, use the tag [menu], make the |
|
|
1316 | alterations and then use [done] |
|
|
1317 | |
|
|
1318 | |
|
|
1319 | |
|
|
1320 | Commands |
|
|
1321 | [menu:+*name*] |
|
|
1322 | access the named menuBar for creation or alteration. If a new |
|
|
1323 | menuBar is created, it is called *name* (max of 15 chars) and the |
|
|
1324 | current menuBar is pushed onto the stack |
|
|
1325 | |
|
|
1326 | [menu] |
|
|
1327 | access the current menuBar for alteration |
|
|
1328 | |
|
|
1329 | [title:+*string*] |
|
|
1330 | set the current menuBar's title to *string*, which may contain the |
|
|
1331 | following format specifiers: |
|
|
1332 | |
|
|
1333 | B<%n> rxvt name (as per the B<-name> command-line option) |
|
|
1334 | B<%v> rxvt version |
|
|
1335 | B<%%> literal B<%> character |
|
|
1336 | |
|
|
1337 | [done] |
|
|
1338 | set menuBar access as readonly. End-of-file tag for [read:+*file*] |
|
|
1339 | operations. |
|
|
1340 | |
|
|
1341 | [read:+*file*] |
|
|
1342 | read menu commands directly from *file* (extension ".menu" will be |
|
|
1343 | appended if required.) Start reading at a line with [menu] or |
|
|
1344 | [menu:+*name* and continuing until [done] is encountered. |
|
|
1345 | |
|
|
1346 | Blank and comment lines (starting with #) are ignored. Actually, |
|
|
1347 | since any invalid menu commands are also ignored, almost anything |
|
|
1348 | could be construed as a comment line, but this may be tightened up |
|
|
1349 | in the future ... so don't count on it!. |
|
|
1350 | |
|
|
1351 | [read:+*file*;+*name*] |
|
|
1352 | The same as [read:+*file*], but start reading at a line with |
|
|
1353 | [menu:+*name*] and continuing until [done:+*name*] or [done] is |
|
|
1354 | encountered. |
|
|
1355 | |
|
|
1356 | [dump] |
|
|
1357 | dump all menuBars to the file /tmp/rxvt-PID in a format suitable for |
|
|
1358 | later rereading. |
|
|
1359 | |
|
|
1360 | [rm:name] |
|
|
1361 | remove the named menuBar |
|
|
1362 | |
|
|
1363 | [rm] [rm:] |
|
|
1364 | remove the current menuBar |
|
|
1365 | |
|
|
1366 | [rm*] [rm:*] |
|
|
1367 | remove all menuBars |
|
|
1368 | |
|
|
1369 | [swap] |
|
|
1370 | swap the top two menuBars |
|
|
1371 | |
|
|
1372 | [prev] |
|
|
1373 | access the previous menuBar |
|
|
1374 | |
|
|
1375 | [next] |
|
|
1376 | access the next menuBar |
|
|
1377 | |
|
|
1378 | [show] |
|
|
1379 | Enable display of the menuBar |
|
|
1380 | |
|
|
1381 | [hide] |
|
|
1382 | Disable display of the menuBar |
|
|
1383 | |
|
|
1384 | [pixmap:+*name*] |
|
|
1385 | [pixmap:+*name*;*scaling*] |
|
|
1386 | (set the background pixmap globally |
|
|
1387 | |
|
|
1388 | A Future implementation *may* make this local to the menubar) |
|
|
1389 | |
|
|
1390 | [:+*command*:] |
|
|
1391 | ignore the menu readonly status and issue a *command* to or a menu |
|
|
1392 | or menuitem or change the ; a useful shortcut for setting the quick |
|
|
1393 | arrows from a menuBar. |
|
|
1394 | |
|
|
1395 | |
|
|
1396 | |
|
|
1397 | Adding and accessing menus |
|
|
1398 | The following commands may also be + prefixed. |
|
|
1399 | |
|
|
1400 | /+ access menuBar top level |
|
|
1401 | |
|
|
1402 | ./+ access current menu level |
|
|
1403 | |
|
|
1404 | ../+ |
|
|
1405 | access parent menu (1 level up) |
|
|
1406 | |
|
|
1407 | ../../ |
|
|
1408 | access parent menu (multiple levels up) |
|
|
1409 | |
|
|
1410 | */path/*menu |
|
|
1411 | add/access menu |
|
|
1412 | |
|
|
1413 | */path/*menu/* |
|
|
1414 | add/access menu and clear it if it exists |
|
|
1415 | |
|
|
1416 | */path/*{-} |
|
|
1417 | add separator |
|
|
1418 | |
|
|
1419 | */path/*{item} |
|
|
1420 | add item as a label |
|
|
1421 | |
|
|
1422 | */path/*{item} action |
|
|
1423 | add/alter *menuitem* with an associated *action* |
|
|
1424 | |
|
|
1425 | */path/*{item}{right-text} |
|
|
1426 | add/alter *menuitem* with right-text as the right-justified text and |
|
|
1427 | as the associated *action* |
|
|
1428 | |
|
|
1429 | */path/*{item}{rtext} action |
|
|
1430 | add/alter *menuitem* with an associated *action* and with rtext as |
|
|
1431 | the right-justified text. |
|
|
1432 | |
|
|
1433 | Special characters in *action* must be backslash-escaped: |
|
|
1434 | \a \b \E \e \n \r \t \octal |
|
|
1435 | |
|
|
1436 | or in control-character notation: |
|
|
1437 | ^@, ^A .. ^Z .. ^_, ^? |
|
|
1438 | |
|
|
1439 | To send a string starting with a NUL (^@) character to the program, |
|
|
1440 | start *action* with a pair of NUL characters (^@^@), the first of which |
|
|
1441 | will be stripped off and the balance directed to the program. Otherwise |
|
|
1442 | if *action* begins with NUL followed by non-+NUL characters, the leading |
|
|
1443 | NUL is stripped off and the balance is sent back to rxvt. |
|
|
1444 | |
|
|
1445 | As a convenience for the many Emacs-type editors, *action* may start |
|
|
1446 | with M- (eg, M-$ is equivalent to \E$) and a CR will be appended if |
|
|
1447 | missed from M-x commands. |
|
|
1448 | |
|
|
1449 | As a convenience for issuing XTerm ESC ] sequences from a menubar (or |
|
|
1450 | quick arrow), a BEL (^G) will be appended if needed. |
|
|
1451 | |
|
|
1452 | For example, |
|
|
1453 | M-xapropos is equivalent to \Exapropos\r |
|
|
1454 | |
|
|
1455 | and \E]703;mona;100 is equivalent to \E]703;mona;100\a |
|
|
1456 | |
|
|
1457 | The option {*right-rtext*} will be right-justified. In the absence of a |
|
|
1458 | specified action, this text will be used as the *action* as well. |
|
|
1459 | |
|
|
1460 | For example, |
|
|
1461 | /File/{Open}{^X^F} is equivalent to /File/{Open}{^X^F} ^X^F |
|
|
1462 | |
|
|
1463 | The left label *is* necessary, since it's used for matching, but |
|
|
1464 | implicitly hiding the left label (by using same name for both left and |
|
|
1465 | right labels), or explicitly hiding the left label (by preceeding it |
|
|
1466 | with a dot), makes it possible to have right-justified text only. |
|
|
1467 | |
|
|
1468 | For example, |
|
|
1469 | /File/{Open}{Open} Open-File-Action |
|
|
1470 | |
|
|
1471 | or hiding it |
|
|
1472 | /File/{.anylabel}{Open} Open-File-Action |
|
|
1473 | |
|
|
1474 | |
|
|
1475 | |
|
|
1476 | Removing menus |
|
|
1477 | -/*+ |
|
|
1478 | remove all menus from the menuBar, the same as [clear] |
|
|
1479 | |
|
|
1480 | -+*/path*menu+ |
|
|
1481 | remove menu |
|
|
1482 | |
|
|
1483 | -+*/path*{item}+ |
|
|
1484 | remove item |
|
|
1485 | |
|
|
1486 | -+*/path*{-} |
|
|
1487 | remove separator) |
|
|
1488 | |
|
|
1489 | -/path/menu/* |
|
|
1490 | remove all items, separators and submenus from menu |
|
|
1491 | |
|
|
1492 | |
|
|
1493 | |
|
|
1494 | Quick Arrows |
|
|
1495 | The menus also provide a hook for *quick arrows* to provide easier user |
|
|
1496 | access. If nothing has been explicitly set, the default is to emulate |
|
|
1497 | the curror keys. The syntax permits each arrow to be altered |
|
|
1498 | individually or all four at once without re-entering their common |
|
|
1499 | beginning/end text. For example, to explicitly associate cursor actions |
|
|
1500 | with the arrows, any of the following forms could be used: |
|
|
1501 | |
|
|
1502 | <r>+*Right* |
|
|
1503 | <l>+*Left* |
|
|
1504 | <u>+*Up* |
|
|
1505 | <d>+*Down* |
|
|
1506 | Define actions for the respective arrow buttons |
|
|
1507 | |
|
|
1508 | <b>+*Begin* |
|
|
1509 | <e>+*End* |
|
|
1510 | Define common beginning/end parts for *quick arrows* which used in |
|
|
1511 | conjunction with the above <r> <l> <u> <d> constructs |
|
|
1512 | |
|
|
1513 | For example, define arrows individually, |
|
|
1514 | <u>\E[A |
|
|
1515 | |
|
|
1516 | <d>\E[B |
|
|
1517 | |
|
|
1518 | <r>\E[C |
|
|
1519 | |
|
|
1520 | <l>\E[D |
|
|
1521 | |
|
|
1522 | or all at once |
|
|
1523 | <u>\E[AZ<><d>\E[BZ<><r>\E[CZ<><l>\E[D |
|
|
1524 | |
|
|
1525 | or more compactly (factoring out common parts) |
|
|
1526 | <b>\E[<u>AZ<><d>BZ<><r>CZ<><l>D |
|
|
1527 | |
|
|
1528 | |
|
|
1529 | |
|
|
1530 | Command Summary |
|
|
1531 | A short summary of the most *common* commands: |
|
|
1532 | |
|
|
1533 | [menu:name] |
|
|
1534 | use an existing named menuBar or start a new one |
|
|
1535 | |
|
|
1536 | [menu] |
|
|
1537 | use the current menuBar |
|
|
1538 | |
|
|
1539 | [title:string] |
|
|
1540 | set menuBar title |
|
|
1541 | |
|
|
1542 | [done] |
|
|
1543 | set menu access to readonly and, if reading from a file, signal EOF |
|
|
1544 | |
|
|
1545 | [done:name] |
|
|
1546 | if reading from a file using [read:file;name] signal EOF |
|
|
1547 | |
|
|
1548 | [rm:name] |
|
|
1549 | remove named menuBar(s) |
|
|
1550 | |
|
|
1551 | [rm] [rm:] |
|
|
1552 | remove current menuBar |
|
|
1553 | |
|
|
1554 | [rm*] [rm:*] |
|
|
1555 | remove all menuBar(s) |
|
|
1556 | |
|
|
1557 | [swap] |
|
|
1558 | swap top two menuBars |
|
|
1559 | |
|
|
1560 | [prev] |
|
|
1561 | access the previous menuBar |
|
|
1562 | |
|
|
1563 | [next] |
|
|
1564 | access the next menuBar |
|
|
1565 | |
|
|
1566 | [show] |
|
|
1567 | map menuBar |
|
|
1568 | |
|
|
1569 | [hide] |
|
|
1570 | unmap menuBar |
|
|
1571 | |
|
|
1572 | [pixmap;file] |
|
|
1573 | [pixmap;file;scaling] |
|
|
1574 | set a background pixmap |
|
|
1575 | |
|
|
1576 | [read:file] |
|
|
1577 | [read:file;name] |
|
|
1578 | read in a menu from a file |
|
|
1579 | |
|
|
1580 | [dump] |
|
|
1581 | dump out all menuBars to /tmp/rxvt-PID |
|
|
1582 | |
|
|
1583 | / access menuBar top level |
|
|
1584 | |
|
|
1585 | ./ |
|
|
1586 | ../ |
|
|
1587 | ../../ |
|
|
1588 | access current or parent menu level |
|
|
1589 | |
|
|
1590 | /path/menu |
|
|
1591 | add/access menu |
|
|
1592 | |
|
|
1593 | /path/{-} |
|
|
1594 | add separator |
|
|
1595 | |
|
|
1596 | /path/{item}{rtext} action |
|
|
1597 | add/alter menu item |
|
|
1598 | |
|
|
1599 | -/* remove all menus from the menuBar |
|
|
1600 | |
|
|
1601 | -/path/menu |
|
|
1602 | remove menu items, separators and submenus from menu |
|
|
1603 | |
|
|
1604 | -/path/menu |
|
|
1605 | remove menu |
|
|
1606 | |
|
|
1607 | -/path/{item} |
|
|
1608 | remove item |
|
|
1609 | |
|
|
1610 | -/path/{-} |
|
|
1611 | remove separator |
|
|
1612 | |
|
|
1613 | <b>Begin<r>Right<l>Left<u>Up<d>Down<e>End |
|
|
1614 | menu quick arrows |
|
|
1615 | |
1372 | |
1616 | XPM |
1373 | XPM |
1617 | For the XPM XTerm escape sequence "ESC ] 20 ; Pt ST" then value of "Pt" |
1374 | For the XPM XTerm escape sequence "ESC ] 20 ; Pt ST" then value of "Pt" |
1618 | can be the name of the background pixmap followed by a sequence of |
1375 | can be the name of the background pixmap followed by a sequence of |
1619 | scaling/positioning commands separated by semi-colons. The |
1376 | scaling/positioning commands separated by semi-colons. The |
… | |
… | |
1860 | --enable-lastlog (default: on) |
1617 | --enable-lastlog (default: on) |
1861 | Write user and tty to lastlog file (used by programs like lastlogin) |
1618 | Write user and tty to lastlog file (used by programs like lastlogin) |
1862 | at start of rxvt execution. This option requires --enable-utmp to |
1619 | at start of rxvt execution. This option requires --enable-utmp to |
1863 | also be specified. |
1620 | also be specified. |
1864 | |
1621 | |
1865 | --enable-xpm-background (default: off) |
1622 | --enable-xpm-background (default: on) |
1866 | Add support for XPM background pixmaps. |
1623 | Add support for XPM background pixmaps. |
1867 | |
1624 | |
1868 | --enable-transparency (default: off) |
1625 | --enable-transparency (default: on) |
1869 | Add support for inheriting parent backgrounds thus giving a fake |
1626 | Add support for inheriting parent backgrounds thus giving a fake |
1870 | transparency to the term. |
1627 | transparency to the term. |
1871 | |
1628 | |
1872 | --enable-fading (default: on) |
1629 | --enable-fading (default: on) |
1873 | Add support for fading the text when focus is lost (requires |
1630 | Add support for fading the text when focus is lost (requires |
1874 | "--enable-transparency"). |
1631 | "--enable-transparency"). |
1875 | |
1632 | |
1876 | --enable-tinting (default: on) |
1633 | --enable-tinting (default: on) |
1877 | Add support for tinting of transparent backgrounds (requires |
1634 | Add support for tinting of transparent backgrounds (requires |
1878 | "--enable-transparency"). |
1635 | "--enable-transparency"). |
1879 | |
|
|
1880 | --enable-menubar (default: off) |
|
|
1881 | Add support for our menu bar system (this interacts badly with |
|
|
1882 | dynamic locale switching currently). |
|
|
1883 | |
1636 | |
1884 | --enable-rxvt-scroll (default: on) |
1637 | --enable-rxvt-scroll (default: on) |
1885 | Add support for the original rxvt scrollbar. |
1638 | Add support for the original rxvt scrollbar. |
1886 | |
1639 | |
1887 | --enable-next-scroll (default: on) |
1640 | --enable-next-scroll (default: on) |
… | |
… | |
1912 | it. |
1665 | it. |
1913 | |
1666 | |
1914 | --disable-resources |
1667 | --disable-resources |
1915 | Removes any support for resource checking. |
1668 | Removes any support for resource checking. |
1916 | |
1669 | |
1917 | --enable-xgetdefault |
|
|
1918 | Make resources checking via XGetDefault() instead of our small |
|
|
1919 | version which only checks ~/.Xdefaults, or if that doesn't exist |
|
|
1920 | then ~/.Xresources. |
|
|
1921 | |
|
|
1922 | Please note that nowadays, things like XIM will automatically pull |
|
|
1923 | in and use the full X resource manager, so the overhead of using it |
|
|
1924 | might be very small, if nonexistant. |
|
|
1925 | |
|
|
1926 | --enable-strings (default: off) |
|
|
1927 | Add support for our possibly faster memset() function and other |
|
|
1928 | various routines, overriding your system's versions which may have |
|
|
1929 | been hand-crafted in assembly or may require extra libraries to link |
|
|
1930 | in. (this breaks ANSI-C rules and has problems on many GNU/Linux |
|
|
1931 | systems). |
|
|
1932 | |
|
|
1933 | --disable-swapscreen |
1670 | --disable-swapscreen |
1934 | Remove support for secondary/swap screen. |
1671 | Remove support for secondary/swap screen. |
1935 | |
1672 | |
1936 | --enable-frills (default: on) |
1673 | --enable-frills (default: on) |
1937 | Add support for many small features that are not essential but nice |
1674 | Add support for many small features that are not essential but nice |
… | |
… | |
1941 | A non-exhaustive list of features enabled by "--enable-frills" |
1678 | A non-exhaustive list of features enabled by "--enable-frills" |
1942 | (possibly in combination with other switches) is: |
1679 | (possibly in combination with other switches) is: |
1943 | |
1680 | |
1944 | MWM-hints |
1681 | MWM-hints |
1945 | EWMH-hints (pid, utf8 names) and protocols (ping) |
1682 | EWMH-hints (pid, utf8 names) and protocols (ping) |
1946 | seperate underline colour |
1683 | seperate underline colour (-underlineColor) |
1947 | settable border widths and borderless switch |
1684 | settable border widths and borderless switch (-w, -b, -bl) |
1948 | settable extra linespacing |
1685 | settable extra linespacing /-lsp) |
1949 | iso-14755-2 and -3, and visual feedback |
1686 | iso-14755-2 and -3, and visual feedback |
1950 | backindex and forwardindex escape sequence |
1687 | backindex and forwardindex escape sequence |
1951 | window op and some xterm/OSC escape sequences |
1688 | window op and some xterm/OSC escape sequences |
1952 | tripleclickwords |
1689 | tripleclickwords (-tcw) |
1953 | settable insecure mode |
1690 | settable insecure mode (-insecure) |
1954 | keysym remapping support |
1691 | keysym remapping support |
1955 | cursor blinking and underline cursor |
1692 | cursor blinking and underline cursor (-cb, -uc) |
1956 | -embed, -pty-fd and -hold options |
1693 | XEmbed support (-embed) |
|
|
1694 | user-pty (-pty-fd) |
|
|
1695 | hold on exit (-hold) |
|
|
1696 | skip builtin block graphics (-sbg) |
|
|
1697 | sgr modes 90..97 and 100..107 |
1957 | |
1698 | |
1958 | --enable-iso14755 (default: on) |
1699 | --enable-iso14755 (default: on) |
1959 | Enable extended ISO 14755 support (see urxvt(1), or doc/rxvt.1.txt). |
1700 | Enable extended ISO 14755 support (see rxvt(1), or doc/rxvt.1.txt). |
1960 | Basic support (section 5.1) is enabled by "--enable-frills", while |
1701 | Basic support (section 5.1) is enabled by "--enable-frills", while |
1961 | support for 5.2, 5.3 and 5.4 is enabled with this switch. |
1702 | support for 5.2, 5.3 and 5.4 is enabled with this switch. |
1962 | |
1703 | |
1963 | --enable-keepscrolling (default: on) |
1704 | --enable-keepscrolling (default: on) |
1964 | Add support for continual scrolling of the display when you hold the |
1705 | Add support for continual scrolling of the display when you hold the |
… | |
… | |
1994 | corner of the screen in a fixed position. |
1735 | corner of the screen in a fixed position. |
1995 | |
1736 | |
1996 | --enable-pointer-blank (default: on) |
1737 | --enable-pointer-blank (default: on) |
1997 | Add support to have the pointer disappear when typing or inactive. |
1738 | Add support to have the pointer disappear when typing or inactive. |
1998 | |
1739 | |
|
|
1740 | --enable-perl (default: off) |
|
|
1741 | Enable an embedded perl interpreter. See the rxvtperl(3) manpage |
|
|
1742 | (doc/rxvtperl.txt) for more info on this feature, or the files in |
|
|
1743 | src/perl-ext/ for the extensions that are installed by default. The |
|
|
1744 | perl interpreter that is used can be specified via the "PERL" |
|
|
1745 | environment variable when running configure. |
|
|
1746 | |
1999 | --with-name=NAME (default: urxvt) |
1747 | --with-name=NAME (default: urxvt) |
2000 | Set the basename for the installed binaries, resulting in "urxvt", |
1748 | Set the basename for the installed binaries, resulting in "urxvt", |
2001 | "urxvtd" etc.). Specify "--with-name=rxvt" to replace with "rxvt". |
1749 | "urxvtd" etc.). Specify "--with-name=rxvt" to replace with "rxvt". |
2002 | |
1750 | |
2003 | --with-term=NAME (default: rxvt-unicode) |
1751 | --with-term=NAME (default: rxvt-unicode) |