1urxvt-option-popup(1)            RXVT-UNICODE            urxvt-option-popup(1)
2
3
4

NAME

6       option-popup - option menu
7

DESCRIPTION

9       Binds a popup menu to Ctrl-Button2 that lets you toggle (some) options
10       at runtime.
11
12       Other extensions can extend this popup menu by pushing a code reference
13       onto "@{ $term->{option_popup_hook} }", which gets called whenever the
14       popup is being displayed.
15
16       Its sole argument is the popup menu, which can be modified.  It should
17       either return nothing or a string, the initial boolean value and a code
18       reference. The string will be used as button text and the code
19       reference will be called when the toggle changes, with the new boolean
20       value as first argument.
21
22       The following will add an entry "myoption" that changes
23       "$self->{myoption}":
24
25          push @{ $self->{term}{option_popup_hook} }, sub {
26             ("my option" => $myoption, sub { $self->{myoption} = $_[0] })
27          };
28
29
30
319.31                              2023-07-22             urxvt-option-popup(1)
Impressum