mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 09:53:23 +00:00
Override font used on command line
Add an option -f or --font to the cssh command to allow for overriding the terminal_font setting from the config file at runtime.
This commit is contained in:
parent
9834440176
commit
f379208b32
4 changed files with 11 additions and 2 deletions
|
@ -86,6 +86,7 @@ my @options_spec = (
|
|||
'term-args|t=s',
|
||||
'title|T=s',
|
||||
'output-config|u',
|
||||
'font|f=s',
|
||||
);
|
||||
my %options;
|
||||
my %config;
|
||||
|
@ -373,6 +374,9 @@ sub check_config() {
|
|||
}
|
||||
|
||||
$config{internal_previous_state} = ""; # set to default
|
||||
|
||||
# option font overrides config file font setting
|
||||
config{terminal_font} = $options{font} if ( $options{font} );
|
||||
get_font_size();
|
||||
|
||||
$config{extra_cluster_file} =~ s/\s+//g;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue