… | |
… | |
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 |
… | |
… | |
109 | When using the rxvtc 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 (but |
115 | Before reporting a bug to the original rxvt-unicode author please |
155 | unfortunately this notice has been removed). Before reporting a bug |
116 | download and install the genuine version |
156 | to the original rxvt-unicode author please download and install the |
117 | (<http://software.schmorp.de#rxvt-unicode>) and try to reproduce the |
157 | genuine version (<http://software.schmorp.de#rxvt-unicode>) and try |
118 | problem. If you cannot, chances are that the problems are specific |
158 | to reproduce the problem. If you cannot, chances are that the |
119 | to Debian GNU/Linux, in which case it should be reported via the |
159 | problems are specific to Debian GNU/Linux, in which case it should |
120 | Debian Bug Tracking System (use "reportbug" to report the bug). |
160 | be reported via the Debian Bug Tracking System (use "reportbug" to |
|
|
161 | report the bug). |
121 | |
162 | |
122 | For other problems that also affect the Debian package, you can and |
163 | 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 |
164 | 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 |
165 | also a bug in the Debian version and it serves as a reminder for |
125 | other users that might encounter the same issue. |
166 | other users that might encounter the same issue. |
|
|
167 | |
|
|
168 | I am maintaining rxvt-unicode for distribution/OS XXX, any |
|
|
169 | recommendation? |
|
|
170 | You should build one binary with the default options. configure now |
|
|
171 | enables most useful options, and the trend goes to making them |
|
|
172 | runtime-switchable, too, so there is usually no drawback to enbaling |
|
|
173 | them, except higher disk and possibly memory usage. The perl |
|
|
174 | interpreter should be enabled, as important functionality (menus, |
|
|
175 | selection, likely more in the future) depends on it. |
|
|
176 | |
|
|
177 | You should not overwrite the "perl-ext-common" snd "perl-ext" |
|
|
178 | resources system-wide (except maybe with "defaults"). This will |
|
|
179 | result in useful behaviour. If your distribution aims at low memory, |
|
|
180 | add an empty "perl-ext-common" resource to the app-defaults file. |
|
|
181 | This will keep the perl interpreter disabled until the user enables |
|
|
182 | it. |
|
|
183 | |
|
|
184 | If you can/want build more binaries, I recommend building a minimal |
|
|
185 | one with "--disable-everything" (very useful) and a maximal one with |
|
|
186 | "--enable-everything" (less useful, it will be very big due to a lot |
|
|
187 | of encodings built-in that increase download times and are rarely |
|
|
188 | used). |
|
|
189 | |
|
|
190 | I need to make it setuid/setgid to support utmp/ptys on my OS, is this |
|
|
191 | safe? |
|
|
192 | It should be, starting with release 7.1. You are encouraged to |
|
|
193 | properly install urxvt with privileges necessary for your OS now. |
|
|
194 | |
|
|
195 | When rxvt-unicode detects that it runs setuid or setgid, it will |
|
|
196 | fork into a helper process for privileged operations (pty handling |
|
|
197 | on some systems, utmp/wtmp/lastlog handling on others) and drop |
|
|
198 | privileges immediately. This is much safer than most other terminals |
|
|
199 | that keep privileges while running (but is more relevant to urxvt, |
|
|
200 | as it contains things as perl interpreters, which might be "helpful" |
|
|
201 | to attackers). |
|
|
202 | |
|
|
203 | This forking is done as the very first within main(), which is very |
|
|
204 | early and reduces possible bugs to initialisation code run before |
|
|
205 | main(), or things like the dynamic loader of your system, which |
|
|
206 | should result in very little risk. |
126 | |
207 | |
127 | When I log-in to another system it tells me about missing terminfo data? |
208 | 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 |
209 | The terminal description used by rxvt-unicode is not as widely |
129 | available as that for xterm, or even rxvt (for which the same |
210 | available as that for xterm, or even rxvt (for which the same |
130 | problem often arises). |
211 | problem often arises). |
… | |
… | |
518 | |
599 | |
519 | My input method wants <some encoding> but I want UTF-8, what can I do? |
600 | 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 |
601 | You can specify separate locales for the input method and the rest |
521 | of the terminal, using the resource "imlocale": |
602 | of the terminal, using the resource "imlocale": |
522 | |
603 | |
523 | URxvt*imlocale: ja_JP.EUC-JP |
604 | URxvt.imlocale: ja_JP.EUC-JP |
524 | |
605 | |
525 | Now you can start your terminal with "LC_CTYPE=ja_JP.UTF-8" and |
606 | 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 |
607 | 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, |
608 | be able to input characters outside "EUC-JP" in a normal way then, |
528 | as your input method limits you. |
609 | as your input method limits you. |
… | |
… | |
571 | Mouse cut/paste suddenly no longer works. |
652 | Mouse cut/paste suddenly no longer works. |
572 | Make sure that mouse reporting is actually turned off since killing |
653 | Make sure that mouse reporting is actually turned off since killing |
573 | some editors prematurely may leave the mouse in mouse report mode. |
654 | some editors prematurely may leave the mouse in mouse report mode. |
574 | I've heard that tcsh may use mouse reporting unless it otherwise |
655 | 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 |
656 | specified. A quick check is to see if cut/paste works when the Alt |
576 | or Shift keys are depressed. See rxvt(7) |
657 | or Shift keys are depressed. |
577 | |
658 | |
578 | What's with this bold/blink stuff? |
659 | What's with this bold/blink stuff? |
579 | If no bold colour is set via "colorBD:", bold will invert text using |
660 | If no bold colour is set via "colorBD:", bold will invert text using |
580 | the standard foreground colour. |
661 | the standard foreground colour. |
581 | |
662 | |
… | |
… | |
667 | |
748 | |
668 | # use Backspace = ^? |
749 | # use Backspace = ^? |
669 | $ stty erase ^? |
750 | $ stty erase ^? |
670 | $ rxvt |
751 | $ rxvt |
671 | |
752 | |
672 | Toggle with "ESC [ 36 h" / "ESC [ 36 l" as documented in rxvt(7). |
753 | Toggle with "ESC [ 36 h" / "ESC [ 36 l". |
673 | |
754 | |
674 | For an existing rxvt-unicode: |
755 | For an existing rxvt-unicode: |
675 | |
756 | |
676 | # use Backspace = ^H |
757 | # use Backspace = ^H |
677 | $ stty erase ^H |
758 | $ stty erase ^H |
… | |
… | |
789 | |
870 | |
790 | RXVT TECHNICAL REFERENCE |
871 | RXVT TECHNICAL REFERENCE |
791 | DESCRIPTION |
872 | DESCRIPTION |
792 | The rest of this document describes various technical aspects of |
873 | The rest of this document describes various technical aspects of |
793 | rxvt-unicode. First the description of supported command sequences, |
874 | rxvt-unicode. First the description of supported command sequences, |
794 | followed by menu and pixmap support and last by a description of all |
875 | followed by pixmap support and last by a description of all features |
795 | features selectable at "configure" time. |
876 | selectable at "configure" time. |
796 | |
877 | |
797 | Definitions |
878 | Definitions |
798 | "c" The literal character c. |
879 | "c" The literal character c. |
799 | |
880 | |
800 | "C" A single (required) character. |
881 | "C" A single (required) character. |
… | |
… | |
1169 | |
1250 | |
1170 | "Ps = 9" X10 XTerm |
1251 | "Ps = 9" X10 XTerm |
1171 | h Send Mouse X & Y on button press. |
1252 | h Send Mouse X & Y on button press. |
1172 | l No mouse reporting. |
1253 | l No mouse reporting. |
1173 | |
1254 | |
1174 | "Ps = 10" (rxvt) |
|
|
1175 | h menuBar visible |
|
|
1176 | l menuBar invisible |
|
|
1177 | |
|
|
1178 | "Ps = 25" |
1255 | "Ps = 25" |
1179 | h Visible cursor {cnorm/cvvis} |
1256 | h Visible cursor {cnorm/cvvis} |
1180 | l Invisible cursor {civis} |
1257 | l Invisible cursor {civis} |
1181 | |
1258 | |
1182 | "Ps = 30" |
1259 | "Ps = 30" |
… | |
… | |
1266 | Ps = 10 Change colour of text foreground to Pt (NB: may change in future) |
1343 | Ps = 10 Change colour of text foreground to Pt (NB: may change in future) |
1267 | Ps = 11 Change colour of text background to Pt (NB: may change in future) |
1344 | Ps = 11 Change colour of text background to Pt (NB: may change in future) |
1268 | Ps = 12 Change colour of text cursor foreground to Pt |
1345 | Ps = 12 Change colour of text cursor foreground to Pt |
1269 | Ps = 13 Change colour of mouse foreground to Pt |
1346 | Ps = 13 Change colour of mouse foreground to Pt |
1270 | Ps = 17 Change colour of highlight characters to Pt |
1347 | Ps = 17 Change colour of highlight characters to Pt |
1271 | Ps = 18 Change colour of bold characters to Pt |
1348 | Ps = 18 Change colour of bold characters to Pt [deprecated, see 706] |
1272 | Ps = 19 Change colour of underlined characters to Pt |
1349 | Ps = 19 Change colour of underlined characters to Pt [deprecated, see 707] |
1273 | Ps = 20 Change default background to Pt |
1350 | Ps = 20 Change background pixmap parameters (see section XPM) (Compile XPM). |
1274 | Ps = 39 Change default foreground colour to Pt. |
1351 | Ps = 39 Change default foreground colour to Pt. |
1275 | Ps = 46 Change Log File to Pt unimplemented |
1352 | Ps = 46 Change Log File to Pt unimplemented |
1276 | Ps = 49 Change default background colour to Pt. |
1353 | Ps = 49 Change default background colour to Pt. |
1277 | 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 |
1354 | 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 |
1278 | Ps = 55 Log all scrollback buffer and all of screen to Pt |
1355 | Ps = 55 Log all scrollback buffer and all of screen to Pt |
1279 | Ps = 701 Change current locale to Pt, or, if Pt is ?, return the current locale (Compile frills). |
1356 | Ps = 701 Change current locale to Pt, or, if Pt is ?, return the current locale (Compile frills). |
1280 | Ps = 703 Menubar command Pt (Compile menubar). |
|
|
1281 | Ps = 704 Change colour of italic characters to Pt |
1357 | Ps = 704 Change colour of italic characters to Pt |
1282 | Ps = 705 Change background pixmap tint colour to Pt (Compile transparency). |
1358 | Ps = 705 Change background pixmap tint colour to Pt (Compile transparency). |
|
|
1359 | Ps = 706 Change colour of bold characters to Pt |
|
|
1360 | Ps = 707 Change colour of underlined characters to Pt |
1283 | Ps = 710 Set normal fontset to Pt. Same as Ps = 50. |
1361 | Ps = 710 Set normal fontset to Pt. Same as Ps = 50. |
1284 | Ps = 711 Set bold fontset to Pt. Similar to Ps = 50 (Compile styles). |
1362 | Ps = 711 Set bold fontset to Pt. Similar to Ps = 50 (Compile styles). |
1285 | Ps = 712 Set italic fontset to Pt. Similar to Ps = 50 (Compile styles). |
1363 | Ps = 712 Set italic fontset to Pt. Similar to Ps = 50 (Compile styles). |
1286 | Ps = 713 Set bold-italic fontset to Pt. Similar to Ps = 50 (Compile styles). |
1364 | Ps = 713 Set bold-italic fontset to Pt. Similar to Ps = 50 (Compile styles). |
1287 | Ps = 720 Move viewing window up by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills). |
1365 | Ps = 720 Move viewing window up by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills). |
1288 | Ps = 721 Move viewing window down by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills). |
1366 | Ps = 721 Move viewing window down by Pt lines, or clear scrollback buffer if Pt = 0 (Compile frills). |
|
|
1367 | Ps = 777 Call the perl extension with the given string, which should be of the form extension:parameters (Compile perl). |
1289 | |
1368 | |
1290 | |
1369 | |
1291 | |
|
|
1292 | menuBar |
|
|
1293 | The exact syntax used is *almost* solidified. In the menus, DON'T try to |
|
|
1294 | use menuBar commands that add or remove a menuBar. |
|
|
1295 | |
|
|
1296 | Note that in all of the commands, the */path/* *cannot* be omitted: use |
|
|
1297 | ./ to specify a menu relative to the current menu. |
|
|
1298 | |
|
|
1299 | Overview of menuBar operation |
|
|
1300 | For the menuBar XTerm escape sequence "ESC ] 703 ; Pt ST", the syntax of |
|
|
1301 | "Pt" can be used for a variety of tasks: |
|
|
1302 | |
|
|
1303 | At the top level is the current menuBar which is a member of a circular |
|
|
1304 | linked-list of other such menuBars. |
|
|
1305 | |
|
|
1306 | The menuBar acts as a parent for the various drop-down menus, which in |
|
|
1307 | turn, may have labels, separator lines, menuItems and subMenus. |
|
|
1308 | |
|
|
1309 | The menuItems are the useful bits: you can use them to mimic keyboard |
|
|
1310 | input or even to send text or escape sequences back to rxvt. |
|
|
1311 | |
|
|
1312 | The menuBar syntax is intended to provide a simple yet robust method of |
|
|
1313 | constructing and manipulating menus and navigating through the menuBars. |
|
|
1314 | |
|
|
1315 | The first step is to use the tag [menu:*name*] which creates the menuBar |
|
|
1316 | called *name* and allows access. You may now or menus, subMenus, and |
|
|
1317 | menuItems. Finally, use the tag [done] to set the menuBar access as |
|
|
1318 | readonly to prevent accidental corruption of the menus. To re-access the |
|
|
1319 | current menuBar for alterations, use the tag [menu], make the |
|
|
1320 | alterations and then use [done] |
|
|
1321 | |
|
|
1322 | |
|
|
1323 | |
|
|
1324 | Commands |
|
|
1325 | [menu:+*name*] |
|
|
1326 | access the named menuBar for creation or alteration. If a new |
|
|
1327 | menuBar is created, it is called *name* (max of 15 chars) and the |
|
|
1328 | current menuBar is pushed onto the stack |
|
|
1329 | |
|
|
1330 | [menu] |
|
|
1331 | access the current menuBar for alteration |
|
|
1332 | |
|
|
1333 | [title:+*string*] |
|
|
1334 | set the current menuBar's title to *string*, which may contain the |
|
|
1335 | following format specifiers: |
|
|
1336 | |
|
|
1337 | B<%n> rxvt name (as per the B<-name> command-line option) |
|
|
1338 | B<%v> rxvt version |
|
|
1339 | B<%%> literal B<%> character |
|
|
1340 | |
|
|
1341 | [done] |
|
|
1342 | set menuBar access as readonly. End-of-file tag for [read:+*file*] |
|
|
1343 | operations. |
|
|
1344 | |
|
|
1345 | [read:+*file*] |
|
|
1346 | read menu commands directly from *file* (extension ".menu" will be |
|
|
1347 | appended if required.) Start reading at a line with [menu] or |
|
|
1348 | [menu:+*name* and continuing until [done] is encountered. |
|
|
1349 | |
|
|
1350 | Blank and comment lines (starting with #) are ignored. Actually, |
|
|
1351 | since any invalid menu commands are also ignored, almost anything |
|
|
1352 | could be construed as a comment line, but this may be tightened up |
|
|
1353 | in the future ... so don't count on it!. |
|
|
1354 | |
|
|
1355 | [read:+*file*;+*name*] |
|
|
1356 | The same as [read:+*file*], but start reading at a line with |
|
|
1357 | [menu:+*name*] and continuing until [done:+*name*] or [done] is |
|
|
1358 | encountered. |
|
|
1359 | |
|
|
1360 | [dump] |
|
|
1361 | dump all menuBars to the file /tmp/rxvt-PID in a format suitable for |
|
|
1362 | later rereading. |
|
|
1363 | |
|
|
1364 | [rm:name] |
|
|
1365 | remove the named menuBar |
|
|
1366 | |
|
|
1367 | [rm] [rm:] |
|
|
1368 | remove the current menuBar |
|
|
1369 | |
|
|
1370 | [rm*] [rm:*] |
|
|
1371 | remove all menuBars |
|
|
1372 | |
|
|
1373 | [swap] |
|
|
1374 | swap the top two menuBars |
|
|
1375 | |
|
|
1376 | [prev] |
|
|
1377 | access the previous menuBar |
|
|
1378 | |
|
|
1379 | [next] |
|
|
1380 | access the next menuBar |
|
|
1381 | |
|
|
1382 | [show] |
|
|
1383 | Enable display of the menuBar |
|
|
1384 | |
|
|
1385 | [hide] |
|
|
1386 | Disable display of the menuBar |
|
|
1387 | |
|
|
1388 | [pixmap:+*name*] |
|
|
1389 | [pixmap:+*name*;*scaling*] |
|
|
1390 | (set the background pixmap globally |
|
|
1391 | |
|
|
1392 | A Future implementation *may* make this local to the menubar) |
|
|
1393 | |
|
|
1394 | [:+*command*:] |
|
|
1395 | ignore the menu readonly status and issue a *command* to or a menu |
|
|
1396 | or menuitem or change the ; a useful shortcut for setting the quick |
|
|
1397 | arrows from a menuBar. |
|
|
1398 | |
|
|
1399 | |
|
|
1400 | |
|
|
1401 | Adding and accessing menus |
|
|
1402 | The following commands may also be + prefixed. |
|
|
1403 | |
|
|
1404 | /+ access menuBar top level |
|
|
1405 | |
|
|
1406 | ./+ access current menu level |
|
|
1407 | |
|
|
1408 | ../+ |
|
|
1409 | access parent menu (1 level up) |
|
|
1410 | |
|
|
1411 | ../../ |
|
|
1412 | access parent menu (multiple levels up) |
|
|
1413 | |
|
|
1414 | */path/*menu |
|
|
1415 | add/access menu |
|
|
1416 | |
|
|
1417 | */path/*menu/* |
|
|
1418 | add/access menu and clear it if it exists |
|
|
1419 | |
|
|
1420 | */path/*{-} |
|
|
1421 | add separator |
|
|
1422 | |
|
|
1423 | */path/*{item} |
|
|
1424 | add item as a label |
|
|
1425 | |
|
|
1426 | */path/*{item} action |
|
|
1427 | add/alter *menuitem* with an associated *action* |
|
|
1428 | |
|
|
1429 | */path/*{item}{right-text} |
|
|
1430 | add/alter *menuitem* with right-text as the right-justified text and |
|
|
1431 | as the associated *action* |
|
|
1432 | |
|
|
1433 | */path/*{item}{rtext} action |
|
|
1434 | add/alter *menuitem* with an associated *action* and with rtext as |
|
|
1435 | the right-justified text. |
|
|
1436 | |
|
|
1437 | Special characters in *action* must be backslash-escaped: |
|
|
1438 | \a \b \E \e \n \r \t \octal |
|
|
1439 | |
|
|
1440 | or in control-character notation: |
|
|
1441 | ^@, ^A .. ^Z .. ^_, ^? |
|
|
1442 | |
|
|
1443 | To send a string starting with a NUL (^@) character to the program, |
|
|
1444 | start *action* with a pair of NUL characters (^@^@), the first of which |
|
|
1445 | will be stripped off and the balance directed to the program. Otherwise |
|
|
1446 | if *action* begins with NUL followed by non-+NUL characters, the leading |
|
|
1447 | NUL is stripped off and the balance is sent back to rxvt. |
|
|
1448 | |
|
|
1449 | As a convenience for the many Emacs-type editors, *action* may start |
|
|
1450 | with M- (eg, M-$ is equivalent to \E$) and a CR will be appended if |
|
|
1451 | missed from M-x commands. |
|
|
1452 | |
|
|
1453 | As a convenience for issuing XTerm ESC ] sequences from a menubar (or |
|
|
1454 | quick arrow), a BEL (^G) will be appended if needed. |
|
|
1455 | |
|
|
1456 | For example, |
|
|
1457 | M-xapropos is equivalent to \Exapropos\r |
|
|
1458 | |
|
|
1459 | and \E]703;mona;100 is equivalent to \E]703;mona;100\a |
|
|
1460 | |
|
|
1461 | The option {*right-rtext*} will be right-justified. In the absence of a |
|
|
1462 | specified action, this text will be used as the *action* as well. |
|
|
1463 | |
|
|
1464 | For example, |
|
|
1465 | /File/{Open}{^X^F} is equivalent to /File/{Open}{^X^F} ^X^F |
|
|
1466 | |
|
|
1467 | The left label *is* necessary, since it's used for matching, but |
|
|
1468 | implicitly hiding the left label (by using same name for both left and |
|
|
1469 | right labels), or explicitly hiding the left label (by preceeding it |
|
|
1470 | with a dot), makes it possible to have right-justified text only. |
|
|
1471 | |
|
|
1472 | For example, |
|
|
1473 | /File/{Open}{Open} Open-File-Action |
|
|
1474 | |
|
|
1475 | or hiding it |
|
|
1476 | /File/{.anylabel}{Open} Open-File-Action |
|
|
1477 | |
|
|
1478 | |
|
|
1479 | |
|
|
1480 | Removing menus |
|
|
1481 | -/*+ |
|
|
1482 | remove all menus from the menuBar, the same as [clear] |
|
|
1483 | |
|
|
1484 | -+*/path*menu+ |
|
|
1485 | remove menu |
|
|
1486 | |
|
|
1487 | -+*/path*{item}+ |
|
|
1488 | remove item |
|
|
1489 | |
|
|
1490 | -+*/path*{-} |
|
|
1491 | remove separator) |
|
|
1492 | |
|
|
1493 | -/path/menu/* |
|
|
1494 | remove all items, separators and submenus from menu |
|
|
1495 | |
|
|
1496 | |
|
|
1497 | |
|
|
1498 | Quick Arrows |
|
|
1499 | The menus also provide a hook for *quick arrows* to provide easier user |
|
|
1500 | access. If nothing has been explicitly set, the default is to emulate |
|
|
1501 | the curror keys. The syntax permits each arrow to be altered |
|
|
1502 | individually or all four at once without re-entering their common |
|
|
1503 | beginning/end text. For example, to explicitly associate cursor actions |
|
|
1504 | with the arrows, any of the following forms could be used: |
|
|
1505 | |
|
|
1506 | <r>+*Right* |
|
|
1507 | <l>+*Left* |
|
|
1508 | <u>+*Up* |
|
|
1509 | <d>+*Down* |
|
|
1510 | Define actions for the respective arrow buttons |
|
|
1511 | |
|
|
1512 | <b>+*Begin* |
|
|
1513 | <e>+*End* |
|
|
1514 | Define common beginning/end parts for *quick arrows* which used in |
|
|
1515 | conjunction with the above <r> <l> <u> <d> constructs |
|
|
1516 | |
|
|
1517 | For example, define arrows individually, |
|
|
1518 | <u>\E[A |
|
|
1519 | |
|
|
1520 | <d>\E[B |
|
|
1521 | |
|
|
1522 | <r>\E[C |
|
|
1523 | |
|
|
1524 | <l>\E[D |
|
|
1525 | |
|
|
1526 | or all at once |
|
|
1527 | <u>\E[AZ<><d>\E[BZ<><r>\E[CZ<><l>\E[D |
|
|
1528 | |
|
|
1529 | or more compactly (factoring out common parts) |
|
|
1530 | <b>\E[<u>AZ<><d>BZ<><r>CZ<><l>D |
|
|
1531 | |
|
|
1532 | |
|
|
1533 | |
|
|
1534 | Command Summary |
|
|
1535 | A short summary of the most *common* commands: |
|
|
1536 | |
|
|
1537 | [menu:name] |
|
|
1538 | use an existing named menuBar or start a new one |
|
|
1539 | |
|
|
1540 | [menu] |
|
|
1541 | use the current menuBar |
|
|
1542 | |
|
|
1543 | [title:string] |
|
|
1544 | set menuBar title |
|
|
1545 | |
|
|
1546 | [done] |
|
|
1547 | set menu access to readonly and, if reading from a file, signal EOF |
|
|
1548 | |
|
|
1549 | [done:name] |
|
|
1550 | if reading from a file using [read:file;name] signal EOF |
|
|
1551 | |
|
|
1552 | [rm:name] |
|
|
1553 | remove named menuBar(s) |
|
|
1554 | |
|
|
1555 | [rm] [rm:] |
|
|
1556 | remove current menuBar |
|
|
1557 | |
|
|
1558 | [rm*] [rm:*] |
|
|
1559 | remove all menuBar(s) |
|
|
1560 | |
|
|
1561 | [swap] |
|
|
1562 | swap top two menuBars |
|
|
1563 | |
|
|
1564 | [prev] |
|
|
1565 | access the previous menuBar |
|
|
1566 | |
|
|
1567 | [next] |
|
|
1568 | access the next menuBar |
|
|
1569 | |
|
|
1570 | [show] |
|
|
1571 | map menuBar |
|
|
1572 | |
|
|
1573 | [hide] |
|
|
1574 | unmap menuBar |
|
|
1575 | |
|
|
1576 | [pixmap;file] |
|
|
1577 | [pixmap;file;scaling] |
|
|
1578 | set a background pixmap |
|
|
1579 | |
|
|
1580 | [read:file] |
|
|
1581 | [read:file;name] |
|
|
1582 | read in a menu from a file |
|
|
1583 | |
|
|
1584 | [dump] |
|
|
1585 | dump out all menuBars to /tmp/rxvt-PID |
|
|
1586 | |
|
|
1587 | / access menuBar top level |
|
|
1588 | |
|
|
1589 | ./ |
|
|
1590 | ../ |
|
|
1591 | ../../ |
|
|
1592 | access current or parent menu level |
|
|
1593 | |
|
|
1594 | /path/menu |
|
|
1595 | add/access menu |
|
|
1596 | |
|
|
1597 | /path/{-} |
|
|
1598 | add separator |
|
|
1599 | |
|
|
1600 | /path/{item}{rtext} action |
|
|
1601 | add/alter menu item |
|
|
1602 | |
|
|
1603 | -/* remove all menus from the menuBar |
|
|
1604 | |
|
|
1605 | -/path/menu |
|
|
1606 | remove menu items, separators and submenus from menu |
|
|
1607 | |
|
|
1608 | -/path/menu |
|
|
1609 | remove menu |
|
|
1610 | |
|
|
1611 | -/path/{item} |
|
|
1612 | remove item |
|
|
1613 | |
|
|
1614 | -/path/{-} |
|
|
1615 | remove separator |
|
|
1616 | |
|
|
1617 | <b>Begin<r>Right<l>Left<u>Up<d>Down<e>End |
|
|
1618 | menu quick arrows |
|
|
1619 | |
1370 | |
1620 | XPM |
1371 | XPM |
1621 | For the XPM XTerm escape sequence "ESC ] 20 ; Pt ST" then value of "Pt" |
1372 | For the XPM XTerm escape sequence "ESC ] 20 ; Pt ST" then value of "Pt" |
1622 | can be the name of the background pixmap followed by a sequence of |
1373 | can be the name of the background pixmap followed by a sequence of |
1623 | scaling/positioning commands separated by semi-colons. The |
1374 | scaling/positioning commands separated by semi-colons. The |
… | |
… | |
1808 | Add support for XIM (X Input Method) protocol. This allows using |
1559 | Add support for XIM (X Input Method) protocol. This allows using |
1809 | alternative input methods (e.g. kinput2) and will also correctly set |
1560 | alternative input methods (e.g. kinput2) and will also correctly set |
1810 | up the input for people using dead keys or compose keys. |
1561 | up the input for people using dead keys or compose keys. |
1811 | |
1562 | |
1812 | --enable-unicode3 (default: off) |
1563 | --enable-unicode3 (default: off) |
|
|
1564 | Recommended to stay off unless you really need non-BMP characters. |
|
|
1565 | |
1813 | Enable direct support for displaying unicode codepoints above 65535 |
1566 | Enable direct support for displaying unicode codepoints above 65535 |
1814 | (the basic multilingual page). This increases storage requirements |
1567 | (the basic multilingual page). This increases storage requirements |
1815 | per character from 2 to 4 bytes. X11 fonts do not yet support these |
1568 | per character from 2 to 4 bytes. X11 fonts do not yet support these |
1816 | extra characters, but Xft does. |
1569 | extra characters, but Xft does. |
1817 | |
1570 | |
… | |
… | |
1827 | accents are encoded as seperate unicode characters. This is done by |
1580 | accents are encoded as seperate unicode characters. This is done by |
1828 | using precomposited characters when available or creating new |
1581 | using precomposited characters when available or creating new |
1829 | pseudo-characters when no precomposed form exists. |
1582 | pseudo-characters when no precomposed form exists. |
1830 | |
1583 | |
1831 | Without --enable-unicode3, the number of additional precomposed |
1584 | Without --enable-unicode3, the number of additional precomposed |
1832 | characters is rather limited (2048, if this is full, rxvt-unicode |
1585 | characters is somewhat limited (the 6400 private use characters will |
1833 | will use the private use area, extending the number of combinations |
|
|
1834 | to 8448). With --enable-unicode3, no practical limit exists. |
1586 | be (ab-)used). With --enable-unicode3, no practical limit exists. |
1835 | |
1587 | |
1836 | This option will also enable storage (but not display) of characters |
1588 | This option will also enable storage (but not display) of characters |
1837 | beyond plane 0 (>65535) when --enable-unicode3 was not specified. |
1589 | beyond plane 0 (>65535) when --enable-unicode3 was not specified. |
1838 | |
1590 | |
1839 | The combining table also contains entries for arabic presentation |
1591 | The combining table also contains entries for arabic presentation |
… | |
… | |
1864 | --enable-lastlog (default: on) |
1616 | --enable-lastlog (default: on) |
1865 | Write user and tty to lastlog file (used by programs like lastlogin) |
1617 | Write user and tty to lastlog file (used by programs like lastlogin) |
1866 | at start of rxvt execution. This option requires --enable-utmp to |
1618 | at start of rxvt execution. This option requires --enable-utmp to |
1867 | also be specified. |
1619 | also be specified. |
1868 | |
1620 | |
1869 | --enable-xpm-background (default: off) |
1621 | --enable-xpm-background (default: on) |
1870 | Add support for XPM background pixmaps. |
1622 | Add support for XPM background pixmaps. |
1871 | |
1623 | |
1872 | --enable-transparency (default: off) |
1624 | --enable-transparency (default: on) |
1873 | Add support for inheriting parent backgrounds thus giving a fake |
1625 | Add support for inheriting parent backgrounds thus giving a fake |
1874 | transparency to the term. |
1626 | transparency to the term. |
1875 | |
1627 | |
1876 | --enable-fading (default: on) |
1628 | --enable-fading (default: on) |
1877 | Add support for fading the text when focus is lost (requires |
1629 | Add support for fading the text when focus is lost (requires |
1878 | "--enable-transparency"). |
1630 | "--enable-transparency"). |
1879 | |
1631 | |
1880 | --enable-tinting (default: on) |
1632 | --enable-tinting (default: on) |
1881 | Add support for tinting of transparent backgrounds (requires |
1633 | Add support for tinting of transparent backgrounds (requires |
1882 | "--enable-transparency"). |
1634 | "--enable-transparency"). |
1883 | |
|
|
1884 | --enable-menubar (default: off) |
|
|
1885 | Add support for our menu bar system (this interacts badly with |
|
|
1886 | dynamic locale switching currently). |
|
|
1887 | |
1635 | |
1888 | --enable-rxvt-scroll (default: on) |
1636 | --enable-rxvt-scroll (default: on) |
1889 | Add support for the original rxvt scrollbar. |
1637 | Add support for the original rxvt scrollbar. |
1890 | |
1638 | |
1891 | --enable-next-scroll (default: on) |
1639 | --enable-next-scroll (default: on) |
… | |
… | |
1897 | --enable-plain-scroll (default: on) |
1645 | --enable-plain-scroll (default: on) |
1898 | Add support for a very unobtrusive, plain-looking scrollbar that is |
1646 | Add support for a very unobtrusive, plain-looking scrollbar that is |
1899 | the favourite of the rxvt-unicode author, having used it for many |
1647 | the favourite of the rxvt-unicode author, having used it for many |
1900 | years. |
1648 | years. |
1901 | |
1649 | |
1902 | --enable-half-shadow (default: off) |
|
|
1903 | Make shadows on the scrollbar only half the normal width & height. |
|
|
1904 | only applicable to rxvt scrollbars. |
|
|
1905 | |
|
|
1906 | --enable-ttygid (default: off) |
1650 | --enable-ttygid (default: off) |
1907 | Change tty device setting to group "tty" - only use this if your |
1651 | Change tty device setting to group "tty" - only use this if your |
1908 | system uses this type of security. |
1652 | system uses this type of security. |
1909 | |
1653 | |
1910 | --disable-backspace-key |
1654 | --disable-backspace-key |
… | |
… | |
1915 | Removes any handling of the delete key by us - let the X server do |
1659 | Removes any handling of the delete key by us - let the X server do |
1916 | it. |
1660 | it. |
1917 | |
1661 | |
1918 | --disable-resources |
1662 | --disable-resources |
1919 | Removes any support for resource checking. |
1663 | Removes any support for resource checking. |
1920 | |
|
|
1921 | --enable-xgetdefault |
|
|
1922 | Make resources checking via XGetDefault() instead of our small |
|
|
1923 | version which only checks ~/.Xdefaults, or if that doesn't exist |
|
|
1924 | then ~/.Xresources. |
|
|
1925 | |
|
|
1926 | Please note that nowadays, things like XIM will automatically pull |
|
|
1927 | in and use the full X resource manager, so the overhead of using it |
|
|
1928 | might be very small, if nonexistant. |
|
|
1929 | |
|
|
1930 | --enable-strings (default: off) |
|
|
1931 | Add support for our possibly faster memset() function and other |
|
|
1932 | various routines, overriding your system's versions which may have |
|
|
1933 | been hand-crafted in assembly or may require extra libraries to link |
|
|
1934 | in. (this breaks ANSI-C rules and has problems on many GNU/Linux |
|
|
1935 | systems). |
|
|
1936 | |
1664 | |
1937 | --disable-swapscreen |
1665 | --disable-swapscreen |
1938 | Remove support for secondary/swap screen. |
1666 | Remove support for secondary/swap screen. |
1939 | |
1667 | |
1940 | --enable-frills (default: on) |
1668 | --enable-frills (default: on) |
… | |
… | |
1945 | A non-exhaustive list of features enabled by "--enable-frills" |
1673 | A non-exhaustive list of features enabled by "--enable-frills" |
1946 | (possibly in combination with other switches) is: |
1674 | (possibly in combination with other switches) is: |
1947 | |
1675 | |
1948 | MWM-hints |
1676 | MWM-hints |
1949 | EWMH-hints (pid, utf8 names) and protocols (ping) |
1677 | EWMH-hints (pid, utf8 names) and protocols (ping) |
1950 | seperate underline colour |
1678 | seperate underline colour (-underlineColor) |
1951 | settable border widths and borderless switch |
1679 | settable border widths and borderless switch (-w, -b, -bl) |
1952 | settable extra linespacing |
1680 | settable extra linespacing /-lsp) |
1953 | iso-14755-2 and -3, and visual feedback |
1681 | iso-14755-2 and -3, and visual feedback |
1954 | backindex and forwardindex escape sequence |
1682 | backindex and forwardindex escape sequence |
1955 | window op and some xterm/OSC escape sequences |
1683 | window op and some xterm/OSC escape sequences |
1956 | tripleclickwords |
1684 | tripleclickwords (-tcw) |
1957 | settable insecure mode |
1685 | settable insecure mode (-insecure) |
1958 | keysym remapping support |
1686 | keysym remapping support |
1959 | cursor blinking and underline cursor |
1687 | cursor blinking and underline cursor (-cb, -uc) |
1960 | -embed, -pty-fd and -hold options |
1688 | XEmbed support (-embed) |
|
|
1689 | user-pty (-pty-fd) |
|
|
1690 | hold on exit (-hold) |
|
|
1691 | skip builtin block graphics (-sbg) |
|
|
1692 | sgr modes 90..97 and 100..107 |
1961 | |
1693 | |
1962 | --enable-iso14755 (default: on) |
1694 | --enable-iso14755 (default: on) |
1963 | Enable extended ISO 14755 support (see rxvt(1), or doc/rxvt.1.txt). |
1695 | Enable extended ISO 14755 support (see rxvt(1), or doc/rxvt.1.txt). |
1964 | Basic support (section 5.1) is enabled by "--enable-frills", while |
1696 | Basic support (section 5.1) is enabled by "--enable-frills", while |
1965 | support for 5.2, 5.3 and 5.4 is enabled with this switch. |
1697 | support for 5.2, 5.3 and 5.4 is enabled with this switch. |
… | |
… | |
1998 | corner of the screen in a fixed position. |
1730 | corner of the screen in a fixed position. |
1999 | |
1731 | |
2000 | --enable-pointer-blank (default: on) |
1732 | --enable-pointer-blank (default: on) |
2001 | Add support to have the pointer disappear when typing or inactive. |
1733 | Add support to have the pointer disappear when typing or inactive. |
2002 | |
1734 | |
|
|
1735 | --enable-perl (default: on) |
|
|
1736 | Enable an embedded perl interpreter. See the rxvtperl(3) manpage |
|
|
1737 | (doc/rxvtperl.txt) for more info on this feature, or the files in |
|
|
1738 | src/perl-ext/ for the extensions that are installed by default. The |
|
|
1739 | perl interpreter that is used can be specified via the "PERL" |
|
|
1740 | environment variable when running configure. |
|
|
1741 | |
2003 | --with-name=NAME (default: urxvt) |
1742 | --with-name=NAME (default: urxvt) |
2004 | Set the basename for the installed binaries, resulting in "urxvt", |
1743 | Set the basename for the installed binaries, resulting in "urxvt", |
2005 | "urxvtd" etc.). Specify "--with-name=rxvt" to replace with "rxvt". |
1744 | "urxvtd" etc.). Specify "--with-name=rxvt" to replace with "rxvt". |
2006 | |
1745 | |
2007 | --with-term=NAME (default: rxvt-unicode) |
1746 | --with-term=NAME (default: rxvt-unicode) |