Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
urxvt-option-popup(1)		  RXVT-UNICODE		   urxvt-option-popup(1)

NAME
     option-popup - option menu

DESCRIPTION
     Binds a popup menu to Ctrl-Button2 that lets you toggle (some) options at
     runtime.

     Other extensions can extend this popup menu by pushing a code reference
     onto "@{ $term->{option_popup_hook} }", which gets called whenever the
     popup is being displayed.

     Its sole argument is the popup menu, which can be modified.  It should ei-
     ther return nothing or a string, the initial boolean value and a code ref-
     erence. The string will be used as button text and the code reference will
     be called when the toggle changes, with the new boolean value as first ar-
     gument.

     The following will add an entry "myoption" that changes "$self->{myop-
     tion}":

	push @{ $self->{term}{option_popup_hook} }, sub {
	   ("my option" => $myoption, sub { $self->{myoption} = $_[0] })
	};

9.31				   2026-08-04		   urxvt-option-popup(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=urxvt-option-popup&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help