sshchat: term.Write on empty lines to fix prompt reset bug

This commit is contained in:
Andrey Petrov 2019-03-29 17:26:18 -04:00
parent 479a391d55
commit 67163a93a8
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ func (h *Host) Connect(term *sshd.Terminal) {
}
if line == "" {
// Silently ignore empty lines.
term.Write([]byte{})
continue
}