created some class constants

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-03-06 13:30:22 +00:00
parent bfd99cab5d
commit 36272c3f08
1 changed files with 5 additions and 3 deletions

View File

@ -9,6 +9,8 @@ class XTermBuffer(Buffer, XTerm):
btype = 'term'
modename = 'pipe'
termtype = 'xterm'
delay = 0.1
bufsize = 8192
def __init__(self, app, cmd, args, name=None):
XTerm.__init__(self)
Buffer.__init__(self)
@ -131,11 +133,11 @@ class XTermBuffer(Buffer, XTerm):
if pid:
break
if self._towrite:
ifd, ofd, efd = select.select([fd], [fd], [fd], 0.01)
ifd, ofd, efd = select.select([fd], [fd], [fd], self.delay)
else:
ifd, ofd, efd = select.select([fd], [], [fd], 0.01)
ifd, ofd, efd = select.select([fd], [], [fd], self.delay)
if ifd:
data = os.read(ifd[0], 1024)
data = os.read(ifd[0], self.bufsize)
self.term_receive(data)
self.application.need_draw = True
if ofd: