From 96f6c00ecc1d1bfd8be22d6a178f83922684fbf9 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 19 Feb 2019 13:21:19 +0800 Subject: [PATCH] update --- plugins/webssh/js/webssh.js | 4 ++-- route/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/webssh/js/webssh.js b/plugins/webssh/js/webssh.js index 0585575b3..2f7ada3a7 100755 --- a/plugins/webssh/js/webssh.js +++ b/plugins/webssh/js/webssh.js @@ -1,6 +1,6 @@ function web_shell2() { - var termCols = 65; - var termRows = 18; + var termCols = 68; + var termRows = 21; var sendTotal = 0; if(!socket)socket = io.connect(); var term = new Terminal({ cols: termCols, rows: termRows, screenKeys: true, useStyle: true}); diff --git a/route/__init__.py b/route/__init__.py index 89016c185..286a542ba 100755 --- a/route/__init__.py +++ b/route/__init__.py @@ -238,7 +238,7 @@ def connect_ssh(): except: return False ssh.connect('127.0.0.1', public.getSSHPort()) - shell = ssh.invoke_shell(term='xterm', width=65, height=18) + shell = ssh.invoke_shell(term='xterm', width=68, height=21) shell.setblocking(0) return True