parent
e23578d82c
commit
c610327c9a
|
@ -548,13 +548,11 @@ class PipeBuffer(Buffer):
|
||||||
else:
|
else:
|
||||||
self._name = '*Pipe*'
|
self._name = '*Pipe*'
|
||||||
|
|
||||||
self.term = self.terms[term]()
|
|
||||||
|
|
||||||
self._pid, self._pty = pty.fork()
|
self._pid, self._pty = pty.fork()
|
||||||
if self._pid == 0:
|
if self._pid == 0:
|
||||||
# child process
|
|
||||||
os.execve(cmd, [cmd] + args, {'TERM': self.term.name})
|
os.execve(cmd, [cmd] + args, {'TERM': self.term.name})
|
||||||
|
|
||||||
|
self.term = self.terms[term]()
|
||||||
self._lock = threading.Lock()
|
self._lock = threading.Lock()
|
||||||
self._towrite = ''
|
self._towrite = ''
|
||||||
self._done = False
|
self._done = False
|
||||||
|
@ -606,7 +604,6 @@ class PipeBuffer(Buffer):
|
||||||
if ifd:
|
if ifd:
|
||||||
data = os.read(ifd[0], 1024)
|
data = os.read(ifd[0], 1024)
|
||||||
end = self.get_buffer_end()
|
end = self.get_buffer_end()
|
||||||
#data = self._filter_output(data)
|
|
||||||
data = self.term.filter(data)
|
data = self.term.filter(data)
|
||||||
self.insert_string(end, data, force=True, act=ACT_NONE)
|
self.insert_string(end, data, force=True, act=ACT_NONE)
|
||||||
if ofd:
|
if ofd:
|
||||||
|
|
Loading…
Reference in New Issue