From c82251169f798434dbe9d58fa9dbf9f06b5f089b Mon Sep 17 00:00:00 2001 From: realrasengan Date: Tue, 31 Mar 2026 19:04:53 -0700 Subject: [PATCH] revert: use NewEmulator with scrollback (NoScrollback breaks mosh rendering) --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index d000145..fc10a35 100644 --- a/server.go +++ b/server.go @@ -150,7 +150,7 @@ func (s *Server) Serve() error { Cols: uint16(s.cols), }) - s.emu = vt.NewEmulatorNoScrollback(s.cols, s.rows) + s.emu = vt.NewEmulator(s.cols, s.rows) s.curVisible.Store(true) s.emu.SetCallbacks(vt.Callbacks{ CursorVisibility: func(visible bool) { s.curVisible.Store(visible) }, @@ -199,7 +199,7 @@ func (s *Server) Done() <-chan struct{} { func (s *Server) ServeRW(rw io.ReadWriteCloser, resize func(cols, rows uint16)) error { close(s.started) - s.emu = vt.NewEmulatorNoScrollback(s.cols, s.rows) + s.emu = vt.NewEmulator(s.cols, s.rows) s.curVisible.Store(true) s.emu.SetCallbacks(vt.Callbacks{ CursorVisibility: func(visible bool) { s.curVisible.Store(visible) },