mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: cannot backspace in terminal
This commit is contained in:
1 parent
fb863ba030
commit
21ff710f83
1 file changed
+1
-1
@@ -16,7 +16,7 @@ func newTerminal(token string) (*terminal, error) {
|
||||
// Start a new shell in the home directory
|
||||
cmd := exec.Command("/usr/bin/zsh")
|
||||
cmd.Dir = os.Getenv("HOME")
|
||||
cmd.Env = append(os.Environ(), "ZDOTDIR=/etc/zsh", "TOKEN="+token)
|
||||
cmd.Env = append(os.Environ(), "ZDOTDIR=/etc/zsh", "TOKEN="+token, "TERM=xterm-256color")
|
||||
ptmx, err := pty.Start(cmd)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user