fix term environ
This commit is contained in:
parent
49e2e4f3a3
commit
de92aa33b2
@ -125,6 +125,11 @@ class driver(screenDriver):
|
|||||||
argv = shlex.split(command)
|
argv = shlex.split(command)
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
#values are VT100,xterm-256color,linux
|
#values are VT100,xterm-256color,linux
|
||||||
|
try:
|
||||||
|
eterm = env["TERM"]
|
||||||
|
if eterm == '':
|
||||||
|
env["TERM"] = 'linux'
|
||||||
|
except:
|
||||||
env["TERM"] = 'linux'
|
env["TERM"] = 'linux'
|
||||||
os.execvpe(argv[0], argv, env)
|
os.execvpe(argv[0], argv, env)
|
||||||
# File-like object for I/O with the child process aka command.
|
# File-like object for I/O with the child process aka command.
|
||||||
|
Loading…
Reference in New Issue
Block a user