From 346cb78d566a8388157e624a4a351930074f55f1 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 16 Jan 2017 23:04:29 +0100 Subject: [PATCH] add demo, load ignore screen again --- play zone/pya.py | 24 ++++++++++++++++++++++++ src/fenrir/core/screenManager.py | 1 + 2 files changed, 25 insertions(+) create mode 100755 play zone/pya.py diff --git a/play zone/pya.py b/play zone/pya.py new file mode 100755 index 00000000..f72d85e6 --- /dev/null +++ b/play zone/pya.py @@ -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) + diff --git a/src/fenrir/core/screenManager.py b/src/fenrir/core/screenManager.py index e0fad83b..1da02598 100644 --- a/src/fenrir/core/screenManager.py +++ b/src/fenrir/core/screenManager.py @@ -25,6 +25,7 @@ class screenManager(): self.env['runtime']['screenDriver'].getCurrScreen() self.env['screenData']['oldApplication'] = self.env['screenData']['newApplication'] if self.isScreenChange(): + self.autoIgnoreScreens = self.env['runtime']['screenDriver'].getIgnoreScreens() self.changeBrailleScreen() if not self.isSuspendingScreen(self.env['screenData']['newTTY']): self.env['runtime']['screenDriver'].update(trigger)