try to enter tty mode

This commit is contained in:
chrys 2016-10-08 02:25:03 +02:00
parent 9b6c732678
commit a809eda860

View File

@ -4,13 +4,14 @@ import brlapi
import time
brl = brlapi.Connection()
print(brl.displaySize)
print(brl.driverName)
brl.enterTtyMode()
print('display size' + str(brl.displaySize))
print('driver name'+str(brl.driverName))
t = time.time()
while(time.time() - t <= 5):
try:
brl.writeText('this is a 5 second test')
brl.writeText(0,'this is a 5 second test')
except Exception as e:
print(e)