Merge branch 'master' into bleed

This commit is contained in:
chrys 2018-06-08 20:45:58 +02:00
commit 6b288b1060
5 changed files with 16 additions and 5 deletions

View File

@ -39,7 +39,7 @@ This software is licensed under the LGPL v3.
3. "dummyDriver" just a dummy
# Speech Drivers:
1. "genericDriver" (default) sound driver for sound as subprocess:
1. "genericDriver" (default) speech driver for sound as subprocess:
- espeak or espeak-ng
2. "espeakDriver" speech driver for Espeak or Espeak-NG:
- python-espeak

View File

@ -6,8 +6,8 @@ from shutil import copyfile
from setuptools import find_packages
from setuptools import setup
fenrirVersion = '1.8'
packageVersion = 'post1'
fenrirVersion = '1.9'
packageVersion = 'post2'
# handle flags for package manager like yaourt and pacaur.
forceSettings = False
@ -90,7 +90,6 @@ setup(
"evdev",
"daemonize",
"dbus-python",
"pyenchant",
"pyudev",
"setuptools",
"pexpect",

View File

@ -22,6 +22,9 @@ class command():
return
if self.env['runtime']['cursorManager'].isCursorVerticalMove():
return
if self.env['screen']['newCursor']['x'] == == self.env['runtime']['screenManager'].getColums() - 1 and\
self.env['screen']['newCursor']['y'] == self.env['runtime']['screenManager'].getRows() - 1):
return
if self.env['runtime']['inputManager'].getShortcutType() in ['KEY']:
if not (self.env['runtime']['inputManager'].getLastDeepestInput() in [['KEY_UP'],['KEY_DOWN']]):
return

View File

@ -15,6 +15,12 @@ class screenManager():
self.prevScreenIgnored = False
self.prevScreenText = ''
self.currScreenText = ''
self.colums = None
self.rows = None
def getRows(self):
return self.rows
def getColumns(self):
return self.colums
def initialize(self, environment):
self.env = environment
self.env['runtime']['settingsManager'].loadDriver(\
@ -97,6 +103,8 @@ class screenManager():
# get metadata like cursor or screensize
self.env['screen']['lines'] = int( eventData['lines'])
self.env['screen']['columns'] = int( eventData['columns'])
self.colums = int( eventData['columns'])
self.rows = int( eventData['lines'])
self.env['screen']['newCursor']['x'] = int( eventData['textCursor']['x'])
self.env['screen']['newCursor']['y'] = int( eventData['textCursor']['y'])
self.env['screen']['newTTY'] = eventData['screen']

View File

@ -106,6 +106,7 @@ class driver(screenDriver):
tty = open('/sys/devices/virtual/tty/tty0/active','r')
currScreen = str(tty.read()[3:-1])
oldScreen = currScreen
self.updateCharMap(currScreen)
watchdog = select.epoll()
watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR)
watchdog.register(tty, select.POLLPRI | select.POLLERR)
@ -127,6 +128,7 @@ class driver(screenDriver):
watchdog.register(vcsa[ currScreen ], select.POLLPRI | select.POLLERR)
except:
pass
self.updateCharMap(currScreen)
oldScreen = currScreen
try:
vcsa[currScreen].seek(0)
@ -157,7 +159,6 @@ class driver(screenDriver):
def createScreenEventData(self, screen, content):
self.updateCharMap(screen)
eventData = {
'bytes': content,
'lines': int( content[0]),