ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvtperl.3.txt
(Generate patch)

Comparing rxvt-unicode/doc/rxvtperl.3.txt (file contents):
Revision 1.36 by root, Wed Jan 25 00:57:57 2006 UTC vs.
Revision 1.39 by root, Mon Feb 6 05:55:33 2006 UTC

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 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.
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
192 started with the URL as first argument. 203 started with the URL as first argument.
216 U+259F) by a similar-looking ascii character. 227 U+259F) by a similar-looking ascii character.
217 228
218 digital-clock 229 digital-clock
219 Displays a digital clock using the built-in overlay. 230 Displays a digital clock using the built-in overlay.
220 231
221 example-refresh-hooks 232 remote-clipboard
222 Displays a very simple digital clock in the upper right corner of 233 Somewhat of a misnomer, this extension adds two menu entries to the
223 the window. Illustrates overwriting the refresh callbacks to create 234 selection popup that allows one ti run external commands to store
224 your own overlays or changes. 235 the selection somewhere and fetch it again.
236
237 We use it to implement a "distributed selection mechanism", which
238 just means that one command uploads the file to a remote server, and
239 another reads it.
240
241 The commands can be set using the "URxvt.remote-selection.store" and
242 "URxvt.remote-selection.fetch" resources. The first should read the
243 selection to store from STDIN (always in UTF-8), the second should
244 provide the selection data on STDOUT (also in UTF-8).
245
246 The defaults (which are likely useless to you) use rsh and cat:
247
248 URxvt.remote-selection.store: rsh ruth 'cat >/tmp/distributed-selection'
249 URxvt.remote-selection.fetch: rsh ruth 'cat /tmp/distributed-selection'
225 250
226 selection-pastebin 251 selection-pastebin
227 This is a little rarely useful extension that Uploads the selection 252 This is a little rarely useful extension that Uploads the selection
228 as textfile to a remote site (or does other things). (The 253 as textfile to a remote site (or does other things). (The
229 implementation is not currently secure for use in a multiuser 254 implementation is not currently secure for use in a multiuser
248 After a successful upload the selection will be replaced by the text 273 After a successful upload the selection will be replaced by the text
249 given in the "selection-pastebin-url" resource (again, the % is the 274 given in the "selection-pastebin-url" resource (again, the % is the
250 placeholder for the filename): 275 placeholder for the filename):
251 276
252 URxvt.selection-pastebin.url: http://www.ta-sa.org/files/txt/% 277 URxvt.selection-pastebin.url: http://www.ta-sa.org/files/txt/%
278
279 example-refresh-hooks
280 Displays a very simple digital clock in the upper right corner of
281 the window. Illustrates overwriting the refresh callbacks to create
282 your own overlays or changes.
253 283
254API DOCUMENTATION 284API DOCUMENTATION
255 General API Considerations 285 General API Considerations
256 All objects (such as terminals, time watchers etc.) are typical 286 All objects (such as terminals, time watchers etc.) are typical
257 reference-to-hash objects. The hash can be used to store anything you 287 reference-to-hash objects. The hash can be used to store anything you
434 display code is run after this hook, and takes precedence. 464 display code is run after this hook, and takes precedence.
435 465
436 on_refresh_end $term 466 on_refresh_end $term
437 Called just after the screen gets redrawn. See "on_refresh_begin". 467 Called just after the screen gets redrawn. See "on_refresh_begin".
438 468
439 on_keyboard_command $term, $string 469 on_user_command $term, $string
440 Called whenever the user presses a key combination that has a 470 Called whenever the a user-configured event is being activated (e.g.
441 "perl:string" action bound to it (see description of the keysym 471 via a "perl:string" action bound to a key, see description of the
442 resource in the rxvt(1) manpage). 472 keysym resource in the rxvt(1) manpage).
473
474 The event is simply the action string. This interface is assumed to
475 change slightly in the future.
443 476
444 on_x_event $term, $event 477 on_x_event $term, $event
445 Called on every X event received on the vt window (and possibly 478 Called on every X event received on the vt window (and possibly
446 other windows). Should only be used as a last resort. Most event 479 other windows). Should only be used as a last resort. Most event
447 structure members are not passed. 480 structure members are not passed.
528 561
529 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
530 correct place, e.g. on stderr of the connecting urxvtc client. 563 correct place, e.g. on stderr of the connecting urxvtc client.
531 564
532 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).
533 573
534 $time = urxvt::NOW 574 $time = urxvt::NOW
535 Returns the "current time" (as per the event loop). 575 Returns the "current time" (as per the event loop).
536 576
537 urxvt::CurrentTime 577 urxvt::CurrentTime
581 $background = urxvt::GET_BASEBG $rend 621 $background = urxvt::GET_BASEBG $rend
582 Return the foreground/background colour index, respectively. 622 Return the foreground/background colour index, respectively.
583 623
584 $rend = urxvt::SET_FGCOLOR $rend, $new_colour 624 $rend = urxvt::SET_FGCOLOR $rend, $new_colour
585 $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
586 Replace the foreground/background colour in the rendition mask with 627 Replace the foreground/background colour in the rendition mask with
587 the specified one. 628 the specified one.
588 629
589 $value = urxvt::GET_CUSTOM $rend 630 $value = urxvt::GET_CUSTOM $rend
590 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
609 %ENV-like hash which defines the environment of the new terminal. 650 %ENV-like hash which defines the environment of the new terminal.
610 651
611 Croaks (and probably outputs an error message) if the new instance 652 Croaks (and probably outputs an error message) if the new instance
612 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
613 initialise perl, and the terminal object otherwise. The "init" and 654 initialise perl, and the terminal object otherwise. The "init" and
614 "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).
615 657
616 $term->destroy 658 $term->destroy
617 Destroy the terminal object (close the window, free resources etc.). 659 Destroy the terminal object (close the window, free resources etc.).
618 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
619 (timers, io watchers) are still active. 661 (timers, io watchers) are still active.
831 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
832 want to receive pointer events all the times: 874 want to receive pointer events all the times:
833 875
834 $term->vt_emask_add (urxvt::PointerMotionMask); 876 $term->vt_emask_add (urxvt::PointerMotionMask);
835 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
836 $window_width = $term->width 884 $window_width = $term->width
837 $window_height = $term->height 885 $window_height = $term->height
838 $font_width = $term->fwidth 886 $font_width = $term->fwidth
839 $font_height = $term->fheight 887 $font_height = $term->fheight
840 $font_ascent = $term->fbase 888 $font_ascent = $term->fbase
963 1011
964 $string = $term->special_decode $text 1012 $string = $term->special_decode $text
965 Converts rxvt-unicodes text reprsentation into a perl string. See 1013 Converts rxvt-unicodes text reprsentation into a perl string. See
966 "$term->ROW_t" for details. 1014 "$term->ROW_t" for details.
967 1015
968 $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])
969 Registers a synchronous button grab. See the XGrabButton manpage. 1019 Register/unregister a synchronous button grab. See the XGrabButton
1020 manpage.
970 1021
971 $success = $term->grab ($eventtime[, $sync]) 1022 $success = $term->grab ($eventtime[, $sync])
972 Calls XGrabPointer and XGrabKeyboard in asynchronous (default) or 1023 Calls XGrabPointer and XGrabKeyboard in asynchronous (default) or
973 synchronous ($sync is true). Also remembers the grab timestampe. 1024 synchronous ($sync is true). Also remembers the grab timestampe.
974 1025

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines