From a4cf4bd31443837947713088409b68956830942e Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Tue, 28 Feb 2017 14:29:12 +0900 Subject: [PATCH] Increase the width of RequestPty --- scan/executil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan/executil.go b/scan/executil.go index 46736436..e4b0c4c5 100644 --- a/scan/executil.go +++ b/scan/executil.go @@ -222,7 +222,7 @@ func sshExecNative(c conf.ServerInfo, cmd string, sudo bool) (result execResult) ssh.TTY_OP_ISPEED: 14400, // input speed = 14.4kbaud ssh.TTY_OP_OSPEED: 14400, // output speed = 14.4kbaud } - if err = session.RequestPty("xterm", 400, 256, modes); err != nil { + if err = session.RequestPty("xterm", 400, 1000, modes); err != nil { result.Error = fmt.Errorf( "Failed to request for pseudo terminal. servername: %s, err: %s", c.ServerName, err)