update message for offset
This commit is contained in:
parent
f145c37eea
commit
ae9219333a
@ -108,7 +108,7 @@ class outputManager():
|
|||||||
self.env['output']['nextFlush'] = time.time() + 5.0
|
self.env['output']['nextFlush'] = time.time() + 5.0
|
||||||
self.env['output']['messageText'] = text
|
self.env['output']['messageText'] = text
|
||||||
|
|
||||||
self.env['runtime']['brailleDriver'].writeText(text[:size[0]])
|
self.env['runtime']['brailleDriver'].writeText(self.env['output']['messageText'] [:size[0]])
|
||||||
else:
|
else:
|
||||||
if self.env['output']['nextFlush'] < time.time():
|
if self.env['output']['nextFlush'] < time.time():
|
||||||
if self.env['output']['messageText'] != '':
|
if self.env['output']['messageText'] != '':
|
||||||
@ -117,6 +117,8 @@ class outputManager():
|
|||||||
x, y, currLine = \
|
x, y, currLine = \
|
||||||
line_utils.getCurrentLine(cursor['x'], cursor['y'], self.env['screenData']['newContentText'])
|
line_utils.getCurrentLine(cursor['x'], cursor['y'], self.env['screenData']['newContentText'])
|
||||||
self.env['runtime']['brailleDriver'].writeText(currLine[:size[0]])
|
self.env['runtime']['brailleDriver'].writeText(currLine[:size[0]])
|
||||||
|
else:
|
||||||
|
self.env['runtime']['brailleDriver'].writeText(self.env['output']['messageText'] [:size[0]])
|
||||||
|
|
||||||
def interruptOutput(self):
|
def interruptOutput(self):
|
||||||
self.env['runtime']['speechDriver'].cancel()
|
self.env['runtime']['speechDriver'].cancel()
|
||||||
|
Loading…
Reference in New Issue
Block a user