… | |
… | |
182 | tab. |
182 | tab. |
183 | |
183 | |
184 | Clicking a button will activate that tab. Pressing Shift-Left and |
184 | Clicking a button will activate that tab. Pressing Shift-Left and |
185 | Shift-Right will switch to the tab left or right of the current one, |
185 | Shift-Right will switch to the tab left or right of the current one, |
186 | while Shift-Down creates a new tab. |
186 | while Shift-Down creates a new tab. |
|
|
187 | |
|
|
188 | The tabbar itself can be configured similarly to a normal terminal, |
|
|
189 | but with a resource class of "URxvt.tabbed". In addition, it |
|
|
190 | supports the following four resources (shown with defaults): |
|
|
191 | |
|
|
192 | URxvt.tabbed.tabbar-fg: <colour-index, default 3> |
|
|
193 | URxvt.tabbed.tabbar-bg: <colour-index, default 0> |
|
|
194 | URxvt.tabbed.tab-fg: <colour-index, default 0> |
|
|
195 | URxvt.tabbed.tab-bg: <colour-index, default 1> |
|
|
196 | |
|
|
197 | See *COLOR AND GRAPHICS* in the rxvt(1) manpage for valid indices. |
187 | |
198 | |
188 | mark-urls |
199 | mark-urls |
189 | Uses per-line display filtering ("on_line_update") to underline urls |
200 | Uses per-line display filtering ("on_line_update") to underline urls |
190 | and make them clickable. When middle-clicked, the program specified |
201 | and make them clickable. When middle-clicked, the program specified |
191 | in the resource "urlLauncher" (default "x-www-browser") will be |
202 | in the resource "urlLauncher" (default "x-www-browser") will be |
… | |
… | |
550 | |
561 | |
551 | Using this function has the advantage that its output ends up in the |
562 | Using this function has the advantage that its output ends up in the |
552 | correct place, e.g. on stderr of the connecting urxvtc client. |
563 | correct place, e.g. on stderr of the connecting urxvtc client. |
553 | |
564 | |
554 | Messages have a size limit of 1023 bytes currently. |
565 | Messages have a size limit of 1023 bytes currently. |
|
|
566 | |
|
|
567 | @terms = urxvt::termlist |
|
|
568 | Returns all urxvt::term objects that exist in this process, |
|
|
569 | regardless of wether they are started, being destroyed etc., so be |
|
|
570 | careful. Only term objects that have perl extensions attached will |
|
|
571 | be returned (because there is no urxvt::term objet associated with |
|
|
572 | others). |
555 | |
573 | |
556 | $time = urxvt::NOW |
574 | $time = urxvt::NOW |
557 | Returns the "current time" (as per the event loop). |
575 | Returns the "current time" (as per the event loop). |
558 | |
576 | |
559 | urxvt::CurrentTime |
577 | urxvt::CurrentTime |
… | |
… | |
603 | $background = urxvt::GET_BASEBG $rend |
621 | $background = urxvt::GET_BASEBG $rend |
604 | Return the foreground/background colour index, respectively. |
622 | Return the foreground/background colour index, respectively. |
605 | |
623 | |
606 | $rend = urxvt::SET_FGCOLOR $rend, $new_colour |
624 | $rend = urxvt::SET_FGCOLOR $rend, $new_colour |
607 | $rend = urxvt::SET_BGCOLOR $rend, $new_colour |
625 | $rend = urxvt::SET_BGCOLOR $rend, $new_colour |
|
|
626 | $rend = urxvt::SET_COLOR $rend, $new_fg, $new_bg |
608 | Replace the foreground/background colour in the rendition mask with |
627 | Replace the foreground/background colour in the rendition mask with |
609 | the specified one. |
628 | the specified one. |
610 | |
629 | |
611 | $value = urxvt::GET_CUSTOM $rend |
630 | $value = urxvt::GET_CUSTOM $rend |
612 | Return the "custom" value: Every rendition has 5 bits for use by |
631 | Return the "custom" value: Every rendition has 5 bits for use by |
… | |
… | |
631 | %ENV-like hash which defines the environment of the new terminal. |
650 | %ENV-like hash which defines the environment of the new terminal. |
632 | |
651 | |
633 | Croaks (and probably outputs an error message) if the new instance |
652 | Croaks (and probably outputs an error message) if the new instance |
634 | couldn't be created. Returns "undef" if the new instance didn't |
653 | couldn't be created. Returns "undef" if the new instance didn't |
635 | initialise perl, and the terminal object otherwise. The "init" and |
654 | initialise perl, and the terminal object otherwise. The "init" and |
636 | "start" hooks will be called during this call. |
655 | "start" hooks will be called before this call returns, and are free |
|
|
656 | to refer to global data (which is race free). |
637 | |
657 | |
638 | $term->destroy |
658 | $term->destroy |
639 | Destroy the terminal object (close the window, free resources etc.). |
659 | Destroy the terminal object (close the window, free resources etc.). |
640 | Please note that rxvt will not exit as long as any event watchers |
660 | Please note that rxvt will not exit as long as any event watchers |
641 | (timers, io watchers) are still active. |
661 | (timers, io watchers) are still active. |
… | |
… | |
853 | Adds the specified events to the vt event mask. Useful e.g. when you |
873 | Adds the specified events to the vt event mask. Useful e.g. when you |
854 | want to receive pointer events all the times: |
874 | want to receive pointer events all the times: |
855 | |
875 | |
856 | $term->vt_emask_add (urxvt::PointerMotionMask); |
876 | $term->vt_emask_add (urxvt::PointerMotionMask); |
857 | |
877 | |
|
|
878 | $term->focus_in |
|
|
879 | $term->focus_out |
|
|
880 | $term->key_press ($state, $keycode[, $time]) |
|
|
881 | $term->key_release ($state, $keycode[, $time]) |
|
|
882 | Deliver various fake events to to terminal. |
|
|
883 | |
858 | $window_width = $term->width |
884 | $window_width = $term->width |
859 | $window_height = $term->height |
885 | $window_height = $term->height |
860 | $font_width = $term->fwidth |
886 | $font_width = $term->fwidth |
861 | $font_height = $term->fheight |
887 | $font_height = $term->fheight |
862 | $font_ascent = $term->fbase |
888 | $font_ascent = $term->fbase |
… | |
… | |
985 | |
1011 | |
986 | $string = $term->special_decode $text |
1012 | $string = $term->special_decode $text |
987 | Converts rxvt-unicodes text reprsentation into a perl string. See |
1013 | Converts rxvt-unicodes text reprsentation into a perl string. See |
988 | "$term->ROW_t" for details. |
1014 | "$term->ROW_t" for details. |
989 | |
1015 | |
990 | $success = $term->grab_button ($button, $modifiermask) |
1016 | $success = $term->grab_button ($button, $modifiermask[, $window = |
|
|
1017 | $term->vt]) |
|
|
1018 | $term->ungrab_button ($button, $modifiermask[, $window = $term->vt]) |
991 | Registers a synchronous button grab. See the XGrabButton manpage. |
1019 | Register/unregister a synchronous button grab. See the XGrabButton |
|
|
1020 | manpage. |
992 | |
1021 | |
993 | $success = $term->grab ($eventtime[, $sync]) |
1022 | $success = $term->grab ($eventtime[, $sync]) |
994 | Calls XGrabPointer and XGrabKeyboard in asynchronous (default) or |
1023 | Calls XGrabPointer and XGrabKeyboard in asynchronous (default) or |
995 | synchronous ($sync is true). Also remembers the grab timestampe. |
1024 | synchronous ($sync is true). Also remembers the grab timestampe. |
996 | |
1025 | |