From 67163a93a8d5e2dcf10e0e9d288d600faf16a189 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Fri, 29 Mar 2019 17:26:18 -0400 Subject: [PATCH] sshchat: term.Write on empty lines to fix prompt reset bug --- host.go | 1 + 1 file changed, 1 insertion(+) diff --git a/host.go b/host.go index cd25337..a5d12d9 100644 --- a/host.go +++ b/host.go @@ -158,6 +158,7 @@ func (h *Host) Connect(term *sshd.Terminal) { } if line == "" { // Silently ignore empty lines. + term.Write([]byte{}) continue }