add running to runntime

This commit is contained in:
chrys 2016-07-05 23:54:11 +02:00
parent 26c827ecfa
commit af17f409ec

View File

@ -9,6 +9,7 @@ import textwrap
import speech.es as es
runtime = {
'running':True,
'columns': 0,
'lines': 0,
'screenDriver': '/dev/vcsa3',
@ -25,7 +26,7 @@ runtime = {
'speechDriver': es.speech()
}
while(True):
while(runtime['running']):
# read screen
vcsa = open(runtime['screenDriver'],'rb')
runtime['newContentBytes'] = vcsa.read()