diff --git a/host.go b/host.go index e14bb7c..cd25337 100644 --- a/host.go +++ b/host.go @@ -90,6 +90,7 @@ func (h *Host) isOp(conn sshd.Connection) bool { // Connect a specific Terminal to this host and its room. func (h *Host) Connect(term *sshd.Terminal) { + term.SetEnterClear(true) // We provide our own echo rendering id := NewIdentity(term.Conn) user := message.NewUserScreen(id, term) cfg := user.Config() diff --git a/sshd/terminal.go b/sshd/terminal.go index 2dd25ae..472b5c1 100644 --- a/sshd/terminal.go +++ b/sshd/terminal.go @@ -81,7 +81,6 @@ func NewTerminal(conn *ssh.ServerConn, ch ssh.NewChannel) (*Terminal, error) { done: make(chan struct{}), } - term.Terminal.ClearLine = true go term.listen(requests)