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);