sshchat, host: Switch to new terminal clearline api

This commit is contained in:
Andrey Petrov 2019-03-21 15:28:59 -04:00
parent b4ba8226c6
commit 6acb0bf809
2 changed files with 1 additions and 1 deletions

View File

@ -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()

View File

@ -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)