add initial PTY input driver
This commit is contained in:
parent
714ad94308
commit
b9a24b2702
@ -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
|
||||||
|
@ -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'))
|
||||||
|
13
src/fenrirscreenreader/inputDriver/ptyDriver.py
Normal file
13
src/fenrirscreenreader/inputDriver/ptyDriver.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user