add demo, load ignore screen again
This commit is contained in:
parent
ccda45357b
commit
346cb78d56
24
play zone/pya.py
Executable file
24
play zone/pya.py
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/python3
|
||||||
|
import sys, os
|
||||||
|
import pty
|
||||||
|
|
||||||
|
mode = 'wb'
|
||||||
|
shell = '/bin/bash'
|
||||||
|
if 'SHELL' in os.environ:
|
||||||
|
shell = os.environ['SHELL']
|
||||||
|
|
||||||
|
filename = '/home/chrys/mytypescript.txt'
|
||||||
|
|
||||||
|
script = open(filename, mode)
|
||||||
|
|
||||||
|
def read(fd):
|
||||||
|
data = os.read(fd, 1024)
|
||||||
|
script.write(data)
|
||||||
|
return data
|
||||||
|
|
||||||
|
def write(fd):
|
||||||
|
data = os.read(fd, 1024)
|
||||||
|
return data
|
||||||
|
|
||||||
|
pty.spawn(shell, read, write)
|
||||||
|
|
@ -25,6 +25,7 @@ class screenManager():
|
|||||||
self.env['runtime']['screenDriver'].getCurrScreen()
|
self.env['runtime']['screenDriver'].getCurrScreen()
|
||||||
self.env['screenData']['oldApplication'] = self.env['screenData']['newApplication']
|
self.env['screenData']['oldApplication'] = self.env['screenData']['newApplication']
|
||||||
if self.isScreenChange():
|
if self.isScreenChange():
|
||||||
|
self.autoIgnoreScreens = self.env['runtime']['screenDriver'].getIgnoreScreens()
|
||||||
self.changeBrailleScreen()
|
self.changeBrailleScreen()
|
||||||
if not self.isSuspendingScreen(self.env['screenData']['newTTY']):
|
if not self.isSuspendingScreen(self.env['screenData']['newTTY']):
|
||||||
self.env['runtime']['screenDriver'].update(trigger)
|
self.env['runtime']['screenDriver'].update(trigger)
|
||||||
|
Loading…
Reference in New Issue
Block a user