mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-12 23:27:17 +03:00
sshchat, host: Switch to new terminal clearline api
This commit is contained in:
parent
b4ba8226c6
commit
6acb0bf809
1
host.go
1
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()
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user