| Name | Size | Mode | Actions |
|---|---|---|---|
| lang/ | - | 0755 | rm |
| rc/ | - | 0755 | rm |
| config | 85 | 0644 | editdlrm |
| config.info | 638 | 0644 | editdlrm |
| defaultacl | 7 | 0644 | editdlrm |
| index.cgi | 8882 | 0755 | editdlrm |
| module.info | 186 | 0644 | editdlrm |
| shellserver.pl | 5146 | 0755 | editdlrm |
| webmin_menu_link.pl | 282 | 0644 | editdlrm |
| xterm-addon-attach.js | 1671 | 0644 | editdlrm |
| xterm-addon-fit.js | 1494 | 0644 | editdlrm |
| xterm-addon-webgl.js | 247505 | 0644 | editdlrm |
| xterm-lib.pl | 676 | 0644 | editdlrm |
| xterm.css | 4147 | 0644 | editdlrm |
| xterm.js | 489133 | 0644 | editdlrm |
/usr/share/usermin/xterm/index.cgi (8882B)
\n"; } else { print $missinglink ."
\n";
}
&ui_print_footer("/", $text{'index'});
exit;
}
}
# Get Webmin current version for links serial
my $wver = &get_webmin_version();
$wver =~ s/\.//;
# Build Xterm dependency links
my $termlinks =
{ 'css' => ["xterm.css?$wver"],
'js' => ["xterm.js?$wver",
"xterm-addon-attach.js?$wver",
"xterm-addon-fit.js?$wver",
"xterm-addon-webgl.js?$wver"] };
# Pre-process options
my $conf_size_str = $config{'size'};
my $def_cols_n = 80;
my $def_rows_n = 24;
my $xmlhr = $ENV{'HTTP_X_REQUESTED_WITH'} eq "XMLHttpRequest";
my %term_opts;
my $font_size = $config{'fontsize'} || 14;
# Parse module config
my ($conf_cols_n, $conf_rows_n) = ($conf_size_str =~ /([\d]+)X([\d]+)/i);
$conf_cols_n = int($conf_cols_n);
$conf_rows_n = int($conf_rows_n);
# Set columns and rows vars
my $env_cols = $conf_cols_n || $def_cols_n;
my $env_rows = $conf_rows_n || $def_rows_n;
# Set columns and rows environment vars only
# in fixed mode, and only for old themes
if ($conf_cols_n && $conf_rows_n && !$xmlhr) {
$ENV{'COLUMNS'} = $conf_cols_n;
$ENV{'LINES'} = $conf_rows_n;
}
# Define columns and rows
my $conf_screen_reader = $config{'screen_reader'} eq 'true' ? 'true' : 'false';
$termjs_opts{'Options'} = "{ cols: $env_cols, rows: $env_rows, ".
"screenReaderMode: $conf_screen_reader, ".
"overviewRuler: { width: 9 }, ".
"fontSize: $font_size }";
my $term_size = "
min-width: ".($conf_cols_n ? "".($conf_cols_n * 9)."px" : "calc(100vw - 22px)").";
max-width: ".($conf_cols_n ? "".($conf_cols_n * 9)."px" : "calc(100vw - 22px)").";
min-height: ".($conf_rows_n ? "".($conf_rows_n * 18)."px" : "calc(100vh - 55px)").";
max-height: ".($conf_rows_n ? "".($conf_rows_n * 18)."px" : "calc(100vh - 55px)").";";
# Tweak old themes inline
my $styles_inline = <