mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Add screen reader optional support in Terminal module
This commit is contained in:
@@ -2,3 +2,4 @@ xterm=xterm-256color
|
||||
base_port=555
|
||||
rcfile=0
|
||||
locale=0
|
||||
screen_reader=false
|
||||
|
||||
@@ -4,3 +4,4 @@ host=Hostname for WebSocket connections,3,Automatic,32,,,Manual
|
||||
size=Terminal width and height in characters,3,Automatic,5,,,Static (80x24)
|
||||
locale=Set shell character encoding,10,0-Shell default,1-<tt>en_US.UTF-8</tt>,Custom
|
||||
rcfile=Execute initialization commands from file,10,0-Shell default,1-Module default,Custom
|
||||
screen_reader=Enable screen reader mode,1,true-Yes,false-No
|
||||
|
||||
@@ -71,7 +71,7 @@ if ($conf_cols_n && $conf_rows_n && !$xmlhr) {
|
||||
}
|
||||
|
||||
# Define columns and rows
|
||||
$termjs_opts{'Options'} = "{ cols: $env_cols, rows: $env_rows }";
|
||||
$termjs_opts{'Options'} = "{ cols: $env_cols, rows: $env_rows, screenReaderMode: $config{'screen_reader'} || false }";
|
||||
|
||||
my $term_size = "
|
||||
min-width: ".($conf_cols_n ? "".($conf_cols_n * 9)."px" : "calc(100vw - 22px)").";
|
||||
|
||||
Reference in New Issue
Block a user