test
This commit is contained in:
5
main.go
5
main.go
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user