xterm256 color
This commit is contained in:
2
main.go
2
main.go
@@ -130,7 +130,7 @@ func handleChannel(channel ssh.Channel, requests <-chan *ssh.Request) {
|
|||||||
command = "/app/tui"
|
command = "/app/tui"
|
||||||
}
|
}
|
||||||
cmd := exec.Command(command)
|
cmd := exec.Command(command)
|
||||||
cmd.Env = []string{"PATH=/bin", "TERM=xterm"}
|
cmd.Env = []string{"PATH=/bin", "TERM=xterm-256color"}
|
||||||
cmd.Dir = "/"
|
cmd.Dir = "/"
|
||||||
var err error
|
var err error
|
||||||
ptmx, err = pty.StartWithSize(cmd, &pty.Winsize{Cols: uint16(termWidth), Rows: uint16(termHeight)})
|
ptmx, err = pty.StartWithSize(cmd, &pty.Winsize{Cols: uint16(termWidth), Rows: uint16(termHeight)})
|
||||||
|
|||||||
Reference in New Issue
Block a user