mirror of
https://github.com/gryf/urxvt-font.git
synced 2026-03-22 22:03:32 +01:00
typo
This commit is contained in:
10
font
10
font
@@ -36,18 +36,18 @@ sub change_size
|
|||||||
}
|
}
|
||||||
|
|
||||||
my ($resized_str) = join (":", @resized);
|
my ($resized_str) = join (":", @resized);
|
||||||
my $UPDATE_STR = "urxvt\*" . $case . ":" . $resized_str . "\n";
|
my $RESIZE_STR = "\033]50;" . $resized_str . "\007";
|
||||||
my $SAVE_STR = "xrdb -edit " . X_RESOURCES;
|
my $LOAD_STR = "xrdb -load " . X_RESOURCES;
|
||||||
my $RESIZE_STR = "\033]50;" . $resized_str . "\007";
|
my $UPDATE_STR = "urxvt\*font:" . $resized_str;
|
||||||
my $LOAD_STR = "xrdb -load " . X_RESOURCES;
|
my $SAVE_STR = "xrdb -edit " . X_RESOURCES;
|
||||||
|
|
||||||
|
$self->{term}->cmd_parse($RESIZE_STR); # update the urxvt runtime
|
||||||
system($LOAD_STR); # load the xrdb db
|
system($LOAD_STR); # load the xrdb db
|
||||||
open(XRDB_MERGE, "| xrdb -merge") || die "can't fork: $!";
|
open(XRDB_MERGE, "| xrdb -merge") || die "can't fork: $!";
|
||||||
local $SIG{PIPE} = sub { die "xrdb pipe broke" };
|
local $SIG{PIPE} = sub { die "xrdb pipe broke" };
|
||||||
print XRDB_MERGE $UPDATE_STR; # merge the new values
|
print XRDB_MERGE $UPDATE_STR; # merge the new values
|
||||||
close XRDB_MERGE || die "bad xrdb: $! $?";
|
close XRDB_MERGE || die "bad xrdb: $! $?";
|
||||||
system($SAVE_STR); # write the db values back to the file
|
system($SAVE_STR); # write the db values back to the file
|
||||||
$self->{term}->cmd_parse($RESIZE_STR); # update the urxvt runtime
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub on_user_command
|
sub on_user_command
|
||||||
|
|||||||
Reference in New Issue
Block a user