This commit is contained in:
2025-06-01 20:39:48 +01:00
parent 027bc4e4ab
commit c8ff617871

View File

@ -262,9 +262,10 @@ const (
func initServer() {
s, err := wish.NewServer(
ssh.AllocatePty(),
wish.WithAddress(net.JoinHostPort(host, port)),
wish.WithMiddleware(
bubbletea.MiddlewareWithColorProfile(teaHandler, termenv.ANSI256),
bubbletea.Middleware(teaHandler),
activeterm.Middleware(), // Bubble Tea apps usually require a PTY.
logging.Middleware(),