Add screen reader optional support in Terminal module

This commit is contained in:
iliajie
2023-07-19 00:07:55 +03:00
parent 8d392af6d3
commit 9135fa916b
3 changed files with 3 additions and 1 deletions

View File

@@ -2,3 +2,4 @@ xterm=xterm-256color
base_port=555
rcfile=0
locale=0
screen_reader=false

View File

@@ -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&#45;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

View File

@@ -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)").";