add initial PTY input driver

This commit is contained in:
chrys 2018-03-25 23:07:57 +02:00
parent 714ad94308
commit b9a24b2702
3 changed files with 15 additions and 2 deletions

View File

@ -76,7 +76,7 @@ Driver (screen, input):
[W] attributes [W] attributes
[X] detect colum/ lines [X] detect colum/ lines
[X] resize on colum / line change [X] resize on colum / line change
[W] make shell command configurable (or detect it) [X] make shell command configurable (or detect it)
[X] stop emulation properly [X] stop emulation properly
[] make pasteing text work again [] make pasteing text work again
https://docs.python.org/3.2/library/pty.html https://docs.python.org/3.2/library/pty.html

View File

@ -295,7 +295,7 @@ class settingsManager():
self.setOptionArgDict('general', 'debugMode', 'PRINT') self.setOptionArgDict('general', 'debugMode', 'PRINT')
if cliArgs.emulation: if cliArgs.emulation:
self.setOptionArgDict('screen', 'driver', 'ptyDriver') self.setOptionArgDict('screen', 'driver', 'ptyDriver')
self.setOptionArgDict('keyboard', 'driver', 'dummyDriver') self.setOptionArgDict('keyboard', 'driver', 'ptyDriver')
self.setOptionArgDict('general', 'debugFile', '/tmp/fenrir-pty.log') self.setOptionArgDict('general', 'debugFile', '/tmp/fenrir-pty.log')
self.setFenrirKeys(self.getSetting('general','fenrirKeys')) self.setFenrirKeys(self.getSetting('general','fenrirKeys'))
self.setScriptKeys(self.getSetting('general','scriptKeys')) self.setScriptKeys(self.getSetting('general','scriptKeys'))

View File

@ -0,0 +1,13 @@
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
import time
from fenrirscreenreader.core import debug
from fenrirscreenreader.core.inputDriver import inputDriver
class driver(inputDriver):
def __init__(self):
inputDriver.__init__(self)