mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-11-22 03:07:01 +03:00
sshchat, host: Switch to new terminal clearline api
This commit is contained in:
1 parent
b4ba8226c6
commit
6acb0bf809
2 files changed
+1
-1
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user