… | |
… | |
238 | |
238 | |
239 | Put scrollbar on right/left; resource B<scrollBar_right>. |
239 | Put scrollbar on right/left; resource B<scrollBar_right>. |
240 | |
240 | |
241 | =item B<-st>|B<+st> |
241 | =item B<-st>|B<+st> |
242 | |
242 | |
243 | Display normal (non XTerm/NeXT) scrollbar without/with a trough; |
243 | Display rxvt (non XTerm/NeXT) scrollbar without/with a trough; |
244 | resource B<scrollBar_floating>. |
244 | resource B<scrollBar_floating>. |
245 | |
245 | |
246 | =item B<-ptab>|B<+ptab> |
246 | =item B<-ptab>|B<+ptab> |
247 | |
247 | |
248 | If enabled (default), "Horizontal Tab" characters are being stored as |
248 | If enabled (default), "Horizontal Tab" characters are being stored as |
… | |
… | |
368 | =item B<-ssr>|B<+ssr> |
368 | =item B<-ssr>|B<+ssr> |
369 | |
369 | |
370 | Turn on/off secondary screen scroll (default enabled); resource |
370 | Turn on/off secondary screen scroll (default enabled); resource |
371 | B<secondaryScroll>. |
371 | B<secondaryScroll>. |
372 | |
372 | |
373 | =item B<-keysym.>I<sym>: I<string> |
373 | =item B<-keysym.>I<sym> I<string> |
374 | |
374 | |
375 | Remap a key symbol. See resource B<keysym>. |
375 | Remap a key symbol. See resource B<keysym>. |
376 | |
376 | |
377 | =item B<-embed>: I<windowid> |
377 | =item B<-embed> I<windowid> |
378 | |
378 | |
379 | Tells @@RXVT_NAME@@ to embed it's windows into an already-existing window, |
379 | Tells @@RXVT_NAME@@ to embed it's windows into an already-existing window, |
380 | which enables applications to easily embed a terminal. |
380 | which enables applications to easily embed a terminal. |
381 | |
381 | |
382 | Right now, @@RXVT_NAME@@ will first unmap/map the specified window, so it |
382 | Right now, @@RXVT_NAME@@ will first unmap/map the specified window, so it |
… | |
… | |
389 | It might be useful to know that @@RXVT_NAME@@ will not close file |
389 | It might be useful to know that @@RXVT_NAME@@ will not close file |
390 | descriptors passed to it (except for stdin/out/err, of course), so you |
390 | descriptors passed to it (except for stdin/out/err, of course), so you |
391 | can use file descriptors to communicate with the programs within the |
391 | can use file descriptors to communicate with the programs within the |
392 | terminal. This works regardless of wether the C<-embed> option was used or |
392 | terminal. This works regardless of wether the C<-embed> option was used or |
393 | not. |
393 | not. |
|
|
394 | |
|
|
395 | Here is a short Gtk2-perl snippet that illustrates how this option can be |
|
|
396 | used (a longer example is in F<doc/embed>): |
|
|
397 | |
|
|
398 | my $rxvt = new Gtk2::Socket; |
|
|
399 | $rxvt->signal_connect_after (realize => sub { |
|
|
400 | my $xid = $_[0]->window->get_xid; |
|
|
401 | system "@@RXVT_NAME@@ -embed $xid &"; |
|
|
402 | }); |
|
|
403 | |
|
|
404 | =item B<-pty-fd> I<fileno> |
|
|
405 | |
|
|
406 | Tells @@RXVT_NAME@@ NOT to execute any commands or create a new pty/tty |
|
|
407 | pair but instead use the given filehandle as the tty master. This is |
|
|
408 | useful if you want to drive @@RXVT_NAME@@ as a generic terminal emulator |
|
|
409 | without having to run a program within it. |
|
|
410 | |
|
|
411 | If this switch is given, @@RXVT_NAME@@ will not create any utmp/wtmp |
|
|
412 | entries and will not tinker with pty/tty permissions - you have to do that |
|
|
413 | yourself if you want that. |
|
|
414 | |
|
|
415 | Here is a example in perl that illustrates how this option can be used (a |
|
|
416 | longer example is in F<doc/pty-fd>): |
|
|
417 | |
|
|
418 | use IO::Pty; |
|
|
419 | use Fcntl; |
|
|
420 | |
|
|
421 | my $pty = new IO::Pty; |
|
|
422 | fcntl $pty, F_SETFD, 0; # clear close-on-exec |
|
|
423 | system "@@RXVT_NAME@@ -pty-fd " . (fileno $pty) . "&"; |
|
|
424 | close $pty; |
|
|
425 | |
|
|
426 | # now communicate with rxvt |
|
|
427 | my $slave = $pty->slave; |
|
|
428 | while (<$slave>) { print $slave "got <$_>\n" } |
394 | |
429 | |
395 | =back |
430 | =back |
396 | |
431 | |
397 | =head1 RESOURCES (available also as long-options) |
432 | =head1 RESOURCES (available also as long-options) |
398 | |
433 | |
… | |
… | |
531 | Use the specified colour for the scrollbar [default #B2B2B2]. |
566 | Use the specified colour for the scrollbar [default #B2B2B2]. |
532 | |
567 | |
533 | =item B<troughColor:> I<colour> |
568 | =item B<troughColor:> I<colour> |
534 | |
569 | |
535 | Use the specified colour for the scrollbar's trough area [default |
570 | Use the specified colour for the scrollbar's trough area [default |
536 | #969696]. Only relevant for normal (non XTerm/NeXT) scrollbar. |
571 | #969696]. Only relevant for rxvt (non XTerm/NeXT) scrollbar. |
537 | |
572 | |
538 | =item B<borderColor:> I<colour> |
573 | =item B<borderColor:> I<colour> |
539 | |
574 | |
540 | The colour of the border around the text area and between the scrollbar |
575 | The colour of the border around the text area and between the scrollbar |
541 | and the text. |
576 | and the text. |
… | |
… | |
633 | xterm style selection. |
668 | xterm style selection. |
634 | |
669 | |
635 | =item B<scrollstyle:> I<mode> |
670 | =item B<scrollstyle:> I<mode> |
636 | |
671 | |
637 | Set scrollbar style to B<rxvt>, B<plain>, B<next> or B<xterm>. B<plain> is |
672 | Set scrollbar style to B<rxvt>, B<plain>, B<next> or B<xterm>. B<plain> is |
638 | the author's favourite.. |
673 | the author's favourite. |
639 | |
674 | |
640 | =item B<title:> I<string> |
675 | =item B<title:> I<string> |
641 | |
676 | |
642 | Set window title string, the default title is the command-line |
677 | Set window title string, the default title is the command-line |
643 | specified after the B<-e> option, if any, otherwise the application |
678 | specified after the B<-e> option, if any, otherwise the application |
… | |
… | |
675 | |
710 | |
676 | Specify a command pipe for vt100 printer [default I<lpr(1)>]. Use |
711 | Specify a command pipe for vt100 printer [default I<lpr(1)>]. Use |
677 | B<Print> to initiate a screen dump to the printer and B<Ctrl-Print> or |
712 | B<Print> to initiate a screen dump to the printer and B<Ctrl-Print> or |
678 | B<Shift-Print> to include the scrollback as well. |
713 | B<Shift-Print> to include the scrollback as well. |
679 | |
714 | |
|
|
715 | The string will be interpreted as if typed into the shell as-is. |
|
|
716 | |
680 | =item B<scrollBar:> I<boolean> |
717 | =item B<scrollBar:> I<boolean> |
681 | |
718 | |
682 | B<True>: enable the scrollbar [default]; option B<-sb>. B<False>: |
719 | B<True>: enable the scrollbar [default]; option B<-sb>. B<False>: |
683 | disable the scrollbar; option B<+sb>. |
720 | disable the scrollbar; option B<+sb>. |
684 | |
721 | |
… | |
… | |
704 | B<+si>. |
741 | B<+si>. |
705 | |
742 | |
706 | =item B<scrollWithBuffer:> I<boolean> |
743 | =item B<scrollWithBuffer:> I<boolean> |
707 | |
744 | |
708 | B<True>: scroll with scrollback buffer when tty receives new lines (and |
745 | B<True>: scroll with scrollback buffer when tty receives new lines (and |
709 | B<scrollTtyOutput> is False); option B<+sw>. B<False>: do not scroll |
746 | B<scrollTtyOutput> is False); option B<-sw>. B<False>: do not scroll |
710 | with scrollback buffer when tty recieves new lines; option B<-sw>. |
747 | with scrollback buffer when tty recieves new lines; option B<+sw>. |
711 | |
748 | |
712 | =item B<scrollTtyKeypress:> I<boolean> |
749 | =item B<scrollTtyKeypress:> I<boolean> |
713 | |
750 | |
714 | B<True>: scroll to bottom when a non-special key is pressed. Special keys |
751 | B<True>: scroll to bottom when a non-special key is pressed. Special keys |
715 | are those which are intercepted by rxvt-unicode for special handling and |
752 | are those which are intercepted by rxvt-unicode for special handling and |
… | |
… | |
780 | |
817 | |
781 | Mouse pointer background colour. |
818 | Mouse pointer background colour. |
782 | |
819 | |
783 | =item B<pointerBlankDelay:> I<number> |
820 | =item B<pointerBlankDelay:> I<number> |
784 | |
821 | |
785 | Specifies number of seconds before blanking the pointer [default 2]. |
822 | Specifies number of seconds before blanking the pointer [default 2]. Use a |
|
|
823 | large number (e.g. C<987654321>) to effectively disable the timeout. |
786 | |
824 | |
787 | =item B<backspacekey:> I<string> |
825 | =item B<backspacekey:> I<string> |
788 | |
826 | |
789 | The string to send when the backspace key is pressed. If set to B<DEC> |
827 | The string to send when the backspace key is pressed. If set to B<DEC> |
790 | or unset it will send B<Delete> (code 127) or, if shifted, B<Backspace> |
828 | or unset it will send B<Delete> (code 127) or, if shifted, B<Backspace> |
… | |
… | |
921 | is interpreted and executed as @@RXVT_NAME@@'s control sequence. For |
959 | is interpreted and executed as @@RXVT_NAME@@'s control sequence. For |
922 | example the following means "change the current locale to C<zh_CN.GBK> |
960 | example the following means "change the current locale to C<zh_CN.GBK> |
923 | when Control-Meta-c is being pressed": |
961 | when Control-Meta-c is being pressed": |
924 | |
962 | |
925 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007 |
963 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007 |
|
|
964 | |
|
|
965 | Due the the large number of modifier combinations, a defined key mapping |
|
|
966 | will match if at I<at least> the specified identifiers are being set, and |
|
|
967 | no other key mappings with those and more bits are being defined. That |
|
|
968 | means that defining a key map for C<a> will automatically provide |
|
|
969 | definitions for C<Meta-a>, C<Shift-a> and so on, unless some of those are defined |
|
|
970 | mappings themselves. |
|
|
971 | |
|
|
972 | Unfortunately, this will override built-in key mappings. For example |
|
|
973 | if you overwrite the C<Insert> key you will disable @@RXVT_NAME@@'s |
|
|
974 | C<Shift-Insert> mapping. To re-enable that, you can poke "holes" into the |
|
|
975 | user-defined keymap using the C<builtin:> replacement: |
|
|
976 | |
|
|
977 | URxvt.keysym.Insert: <my insert key sequence> |
|
|
978 | URxvt.keysym.S-Insert: builtin: |
|
|
979 | |
|
|
980 | The first line defines a mapping for C<Insert> and I<any> combination |
|
|
981 | of modifiers. The second line re-establishes the default mapping for |
|
|
982 | C<Shift-Insert>. |
926 | |
983 | |
927 | The following example will map Control-Meta-1 and Control-Meta-2 to |
984 | The following example will map Control-Meta-1 and Control-Meta-2 to |
928 | the fonts C<suxuseuro> and C<9x15bold>, so you can have some limited |
985 | the fonts C<suxuseuro> and C<9x15bold>, so you can have some limited |
929 | font-switching at runtime: |
986 | font-switching at runtime: |
930 | |
987 | |