This commit is contained in:
2025-06-01 20:58:20 +01:00
parent 4dd52e045f
commit 6a03835c22

View File

@ -4,6 +4,7 @@ import (
"context"
"errors"
"flag"
"fmt"
"net"
"os"
"os/signal"
@ -262,12 +263,16 @@ const (
func initServer() {
s, err := wish.NewServer(
wish.WithAddress(net.JoinHostPort(host, port)),
wish.WithHostKeyPath(".ssh/id_ed25519"),
wish.WithMiddleware(
bubbletea.Middleware(teaHandler),
activeterm.Middleware(), // Bubble Tea apps usually require a PTY.
logging.Middleware(),
),
)
fmt.Println(os.Getenv("TERM"))
if err != nil {
log.Error("Could not start server", "error", err)
}