sshchat, host: Switch to new terminal clearline api

This commit is contained in:
Andrey Petrov committed 2019-03-21 15:33:18 -04:00
1 parent b4ba8226c6
commit 6acb0bf809
2 files changed
+1 -1

No files matched your search

+1
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()
-1
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)