Show More
@@ -18,6 +18,7 b' __docformat__ = "restructuredtext en"' | |||||
18 | from killableprocess import Popen, PIPE |
|
18 | from killableprocess import Popen, PIPE | |
19 | from threading import Thread |
|
19 | from threading import Thread | |
20 | from time import sleep |
|
20 | from time import sleep | |
|
21 | import os | |||
21 |
|
22 | |||
22 | class PipedProcess(Thread): |
|
23 | class PipedProcess(Thread): | |
23 | """ Class that encapsulates process execution by using callbacks for |
|
24 | """ Class that encapsulates process execution by using callbacks for | |
@@ -47,7 +48,10 b' class PipedProcess(Thread):' | |||||
47 | def run(self): |
|
48 | def run(self): | |
48 | """ Start the process and hook up the callbacks. |
|
49 | """ Start the process and hook up the callbacks. | |
49 | """ |
|
50 | """ | |
|
51 | env = os.environ | |||
|
52 | env['TERM'] = 'xterm' | |||
50 | process = Popen((self.command_string + ' 2>&1', ), shell=True, |
|
53 | process = Popen((self.command_string + ' 2>&1', ), shell=True, | |
|
54 | env=env, | |||
51 | universal_newlines=True, |
|
55 | universal_newlines=True, | |
52 | stdout=PIPE, stdin=PIPE, ) |
|
56 | stdout=PIPE, stdin=PIPE, ) | |
53 | self.process = process |
|
57 | self.process = process |
General Comments 0
You need to be logged in to leave comments.
Login now