From 6ad8c64c31d94ac74ffac29c2c85b4d20f9f99de Mon Sep 17 00:00:00 2001 From: iliajie Date: Mon, 24 Oct 2022 18:30:29 +0300 Subject: [PATCH] Drop rows and columns as terminal will fit the container automatically --- xterm/config | 2 -- xterm/config.info | 2 -- xterm/index.cgi | 8 +------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/xterm/config b/xterm/config index b151cf868..a14fe8590 100644 --- a/xterm/config +++ b/xterm/config @@ -1,3 +1 @@ base_port=555 -cols=80 -rows=24 diff --git a/xterm/config.info b/xterm/config.info index 1f6de73af..0de5470ff 100644 --- a/xterm/config.info +++ b/xterm/config.info @@ -1,3 +1 @@ base_port=Base port number for Websockets connections,0,5 -cols=Terminal width in characters,0,5 -rows=Terminal height in characters,0,5 diff --git a/xterm/index.cgi b/xterm/index.cgi index 65c5ce574..4c2cca9a0 100644 --- a/xterm/index.cgi +++ b/xterm/index.cgi @@ -61,15 +61,9 @@ print &ui_table_row(undef, "
", 2); print &ui_table_end(); print "\n"; my $url = "wss://".$ENV{'HTTP_HOST'}.$wspath; -my $rows = $config{'rows'} || 24; -my $cols = $config{'cols'} || 80; print < -var term = new Terminal({ - rows: $rows, - cols: $cols, - }); -term.open(document.getElementById('terminal')); +var term = new Terminal(); var socket = new WebSocket('$url', 'binary'); var attachAddon = new AttachAddon.AttachAddon(socket); term.loadAddon(attachAddon);