zephinzer / cloudshell

Xterm.js with a Go backend meant for use in containers
MIT License
133 stars 40 forks source link

no TERM environment #1

Open dkruyt opened 3 years ago

dkruyt commented 3 years ago

Great project, like it is in go, so easy portable...

But I find there is a issue , there is no TERM environment set.

 40f72c8c915f:/$ echo $TERM
dumb

So some application will fail, need to set TERM manual. export TERM=xterm-256color

But this should be done when opening the shell, from the go binairy.

something like this? cmd.Env = append(os.Environ(), "TERM=xterm-256color")