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