$add_button->("rot13" => sub { y/A-Za-z/N-ZA-Mn-za-m/ });
urxvt::safe
- and $add_button->("eval perl expression" => sub { $_ = eval urxvt::untaint $_ });
+ and $add_button->("eval perl expression" => sub { no warnings; $_ = eval urxvt::untaint $_ });
/^(\S+):(\d+):?$/
and $add_button->("vi-commands to load '$1'" => sub { s/^(\S+):(\d+):?$/\x1b:e $1\x0d:$2\x0d/ });
char *
rxvt_term::display_id ()
+ ALIAS:
+ display_id = 0
+ locale = 1
CODE:
- RETVAL = THIS->display->id;
+ switch (ix)
+ {
+ case 0: RETVAL = THIS->display->id; break;
+ case 1: RETVAL = THIS->locale; break;
+ }
OUTPUT:
RETVAL
Return various integers describing terminal characteristics.
+=item $lc_ctype = $term->locale
+
+Returns the LC_CTYPE category string used by this rxvt-unicode.
+
+=item $x_display = $term->display_id
+
+Return the DISPLAY used by rxvt-unicode.
+
=item $modifiermask = $term->ModLevel3Mask
=item $modifiermask = $term->ModMetaMask
sub add_separator {
my ($self, $sep) = @_;
- $sep ||= "═";
+ $sep ||= "=";
$self->add_item ({
rend => { normal => "\x1b[0;30;47m", hover => "\x1b[0;30;47m", active => "\x1b[0;30;47m" },