Add xterm
All checks were successful
Build, Test and Push Docker Image / e2e-test (push) Successful in 9s
Build, Test and Push Docker Image / build-and-push (push) Successful in 16s

This commit is contained in:
2025-11-06 21:45:36 +01:00
parent e1ce3c3ae2
commit df7adc2237

View File

@@ -95,7 +95,7 @@ func handleConn(conn net.Conn, config *ssh.ServerConfig) {
func handleChannel(channel ssh.Channel, requests <-chan *ssh.Request) {
defer channel.Close()
var ptmx *os.File
var termWidth, termHeight uint32 = 15, 15
var termWidth, termHeight uint32 = 80, 24
for req := range requests {
switch req.Type {
case "pty-req":
@@ -130,7 +130,7 @@ func handleChannel(channel ssh.Channel, requests <-chan *ssh.Request) {
command = "/app/tui"
}
cmd := exec.Command(command)
cmd.Env = []string{"PATH=/bin"}
cmd.Env = []string{"PATH=/bin", "TERM=xterm"}
cmd.Dir = "/"
var err error
ptmx, err = pty.Start(cmd)