… | |
… | |
451 | <p></p></dl> |
451 | <p></p></dl> |
452 | <p> |
452 | <p> |
453 | </p> |
453 | </p> |
454 | <h2><a name="variables_in_the_urxvt_package">Variables in the <code>urxvt</code> Package</a></h2> |
454 | <h2><a name="variables_in_the_urxvt_package">Variables in the <code>urxvt</code> Package</a></h2> |
455 | <dl> |
455 | <dl> |
|
|
456 | <dt><strong><a name="item__24urxvt_3a_3alibdir">$urxvt::LIBDIR</a></strong><br /> |
|
|
457 | </dt> |
|
|
458 | <dd> |
|
|
459 | The rxvt-unicode library directory, where, among other things, the perl |
|
|
460 | modules and scripts are stored. |
|
|
461 | </dd> |
|
|
462 | <p></p> |
|
|
463 | <dt><strong><a name="item__24urxvt_3a_3aresclass_2c__24urxvt_3a_3aresclass">$urxvt::RESCLASS, $urxvt::RESCLASS</a></strong><br /> |
|
|
464 | </dt> |
|
|
465 | <dd> |
|
|
466 | The resource class and name rxvt-unicode uses to look up X resources. |
|
|
467 | </dd> |
|
|
468 | <p></p> |
|
|
469 | <dt><strong><a name="item__24urxvt_3a_3arxvtname">$urxvt::RXVTNAME</a></strong><br /> |
|
|
470 | </dt> |
|
|
471 | <dd> |
|
|
472 | The basename of the installed binaries, usually <code>urxvt</code>. |
|
|
473 | </dd> |
|
|
474 | <p></p> |
456 | <dt><strong><a name="item__24urxvt_3a_3aterm">$urxvt::TERM</a></strong><br /> |
475 | <dt><strong><a name="item__24urxvt_3a_3aterm">$urxvt::TERM</a></strong><br /> |
457 | </dt> |
476 | </dt> |
458 | <dd> |
477 | <dd> |
459 | The current terminal. This variable stores the current <code>urxvt::term</code> |
478 | The current terminal. This variable stores the current <code>urxvt::term</code> |
460 | object, whenever a callback/hook is executing. |
479 | object, whenever a callback/hook is executing. |
461 | </dd> |
480 | </dd> |
462 | <p></p></dl> |
481 | <p></p> |
|
|
482 | <dt></dt> |
|
|
483 | </dl> |
463 | <p> |
484 | <p> |
464 | </p> |
485 | </p> |
465 | <h2><a name="functions_in_the_urxvt_package">Functions in the <code>urxvt</code> Package</a></h2> |
486 | <h2><a name="functions_in_the_urxvt_package">Functions in the <code>urxvt</code> Package</a></h2> |
466 | <dl> |
487 | <dl> |
467 | <dt><strong><a name="item__24term__3d_new_urxvt__5barg_2e_2e_2e_5d">$term = new urxvt [arg...]</a></strong><br /> |
488 | <dt><strong><a name="item__24term__3d_new_urxvt__5barg_2e_2e_2e_5d">$term = new urxvt [arg...]</a></strong><br /> |
… | |
… | |
555 | </dt> |
576 | </dt> |
556 | <dd> |
577 | <dd> |
557 | Return the foreground/background colour index, respectively. |
578 | Return the foreground/background colour index, respectively. |
558 | </dd> |
579 | </dd> |
559 | <p></p> |
580 | <p></p> |
560 | <dt><strong><a name="item_set_fgcolor">$rend = urxvt::SET_FGCOLOR ($rend, $new_colour)</a></strong><br /> |
581 | <dt><strong><a name="item__24rend__3d_urxvt_3a_3aset_fgcolor__24rend_2c__24n">$rend = urxvt::SET_FGCOLOR $rend, $new_colour</a></strong><br /> |
561 | </dt> |
582 | </dt> |
562 | <dt><strong><a name="item_set_bgcolor">$rend = urxvt::SET_BGCOLOR ($rend, $new_colour)</a></strong><br /> |
583 | <dt><strong><a name="item__24rend__3d_urxvt_3a_3aset_bgcolor__24rend_2c__24n">$rend = urxvt::SET_BGCOLOR $rend, $new_colour</a></strong><br /> |
563 | </dt> |
584 | </dt> |
564 | <dd> |
585 | <dd> |
565 | Replace the foreground/background colour in the rendition mask with the |
586 | Replace the foreground/background colour in the rendition mask with the |
566 | specified one. |
587 | specified one. |
567 | </dd> |
588 | </dd> |
568 | <p></p> |
589 | <p></p> |
569 | <dt><strong><a name="item_get_custom">$value = urxvt::GET_CUSTOM ($rend)</a></strong><br /> |
590 | <dt><strong><a name="item__24value__3d_urxvt_3a_3aget_custom__24rend">$value = urxvt::GET_CUSTOM $rend</a></strong><br /> |
570 | </dt> |
591 | </dt> |
571 | <dd> |
592 | <dd> |
572 | Return the ``custom'' value: Every rendition has 5 bits for use by |
593 | Return the ``custom'' value: Every rendition has 5 bits for use by |
573 | extensions. They can be set and changed as you like and are initially |
594 | extensions. They can be set and changed as you like and are initially |
574 | zero. |
595 | zero. |
575 | </dd> |
596 | </dd> |
576 | <p></p> |
597 | <p></p> |
577 | <dt><strong><a name="item_set_custom">$rend = urxvt::SET_CUSTOM ($rend, $new_value)</a></strong><br /> |
598 | <dt><strong><a name="item__24rend__3d_urxvt_3a_3aset_custom__24rend_2c__24ne">$rend = urxvt::SET_CUSTOM $rend, $new_value</a></strong><br /> |
578 | </dt> |
599 | </dt> |
579 | <dd> |
600 | <dd> |
580 | Change the custom value. |
601 | Change the custom value. |
581 | </dd> |
602 | </dd> |
582 | <p></p></dl> |
603 | <p></p></dl> |
583 | <p> |
604 | <p> |
584 | </p> |
605 | </p> |
585 | <h2><a name="the_urxvt__anyevent_class">The <code>urxvt::anyevent</code> Class</a></h2> |
606 | <h2><a name="the_urxvt__anyevent_class">The <code>urxvt::anyevent</code> Class</a></h2> |
586 | <p>The sole purpose of this class is to deliver an interface to the |
607 | <p>The sole purpose of this class is to deliver an interface to the |
587 | <code>AnyEvent</code> module - any module using it will work inside urxvt without |
608 | <code>AnyEvent</code> module - any module using it will work inside urxvt without |
588 | further work. The only exception is that you cannot wait on condition |
609 | further programming. The only exception is that you cannot wait on |
589 | variables, but non-blocking condvar use is ok. What this means is that you |
610 | condition variables, but non-blocking condvar use is ok. What this means |
590 | cannot use blocking APIs, but the non-blocking variant should work.</p> |
611 | is that you cannot use blocking APIs, but the non-blocking variant should |
|
|
612 | work.</p> |
591 | <p> |
613 | <p> |
592 | </p> |
614 | </p> |
593 | <h2><a name="the_urxvt__term_class">The <code>urxvt::term</code> Class</a></h2> |
615 | <h2><a name="the_urxvt__term_class">The <code>urxvt::term</code> Class</a></h2> |
594 | <dl> |
616 | <dl> |
595 | <dt><strong><a name="item_destroy">$term->destroy</a></strong><br /> |
617 | <dt><strong><a name="item_destroy">$term->destroy</a></strong><br /> |
596 | </dt> |
618 | </dt> |
597 | <dd> |
619 | <dd> |
598 | Destroy the terminal object (close the window, free resources etc.). |
620 | Destroy the terminal object (close the window, free resources |
|
|
621 | etc.). Please note that rxvt will not exit as long as any event |
|
|
622 | watchers (timers, io watchers) are still active. |
599 | </dd> |
623 | </dd> |
600 | <p></p> |
624 | <p></p> |
601 | <dt><strong><a name="item_option">$isset = $term->option ($optval[, $set])</a></strong><br /> |
625 | <dt><strong><a name="item_option">$isset = $term->option ($optval[, $set])</a></strong><br /> |
602 | </dt> |
626 | </dt> |
603 | <dd> |
627 | <dd> |
… | |
… | |
1092 | </dd> |
1116 | </dd> |
1093 | <p></p></dl> |
1117 | <p></p></dl> |
1094 | <p> |
1118 | <p> |
1095 | </p> |
1119 | </p> |
1096 | <h2><a name="the_urxvt__popup_class">The <code>urxvt::popup</code> Class</a></h2> |
1120 | <h2><a name="the_urxvt__popup_class">The <code>urxvt::popup</code> Class</a></h2> |
|
|
1121 | <dl> |
|
|
1122 | <dt><strong><a name="item_add_title">$popup->add_title ($title)</a></strong><br /> |
|
|
1123 | </dt> |
|
|
1124 | <dd> |
|
|
1125 | Adds a non-clickable title to the popup. |
|
|
1126 | </dd> |
|
|
1127 | <p></p> |
|
|
1128 | <dt><strong><a name="item_add_separator">$popup->add_separator ([$sepchr])</a></strong><br /> |
|
|
1129 | </dt> |
|
|
1130 | <dd> |
|
|
1131 | Creates a separator, optionally using the character given as <code>$sepchr</code>. |
|
|
1132 | </dd> |
|
|
1133 | <p></p> |
|
|
1134 | <dt><strong><a name="item_add_button">$popup->add_button ($text, $cb)</a></strong><br /> |
|
|
1135 | </dt> |
|
|
1136 | <dd> |
|
|
1137 | Adds a clickable button to the popup. <code>$cb</code> is called whenever it is |
|
|
1138 | selected. |
|
|
1139 | </dd> |
|
|
1140 | <p></p> |
|
|
1141 | <dt><strong><a name="item_add_toggle">$popup->add_toggle ($text, $cb, $initial_value)</a></strong><br /> |
|
|
1142 | </dt> |
|
|
1143 | <dd> |
|
|
1144 | Adds a toggle/checkbox item to the popup. Teh callback gets called |
|
|
1145 | whenever it gets toggled, with a boolean indicating its value as its first |
|
|
1146 | argument. |
|
|
1147 | </dd> |
|
|
1148 | <p></p> |
|
|
1149 | <dt><strong>$popup->show</strong><br /> |
|
|
1150 | </dt> |
|
|
1151 | <dd> |
|
|
1152 | Displays the popup (which is initially hidden). |
|
|
1153 | </dd> |
|
|
1154 | <p></p></dl> |
1097 | <p> |
1155 | <p> |
1098 | </p> |
1156 | </p> |
1099 | <h2><a name="the_urxvt__timer_class">The <code>urxvt::timer</code> Class</a></h2> |
1157 | <h2><a name="the_urxvt__timer_class">The <code>urxvt::timer</code> Class</a></h2> |
1100 | <p>This class implements timer watchers/events. Time is represented as a |
1158 | <p>This class implements timer watchers/events. Time is represented as a |
1101 | fractional number of seconds since the epoch. Example:</p> |
1159 | fractional number of seconds since the epoch. Example:</p> |