Merge branch 'master' into bleed
This commit is contained in:
commit
6b288b1060
@ -39,7 +39,7 @@ This software is licensed under the LGPL v3.
|
|||||||
3. "dummyDriver" just a dummy
|
3. "dummyDriver" just a dummy
|
||||||
|
|
||||||
# Speech Drivers:
|
# Speech Drivers:
|
||||||
1. "genericDriver" (default) sound driver for sound as subprocess:
|
1. "genericDriver" (default) speech driver for sound as subprocess:
|
||||||
- espeak or espeak-ng
|
- espeak or espeak-ng
|
||||||
2. "espeakDriver" speech driver for Espeak or Espeak-NG:
|
2. "espeakDriver" speech driver for Espeak or Espeak-NG:
|
||||||
- python-espeak
|
- python-espeak
|
||||||
|
5
setup.py
5
setup.py
@ -6,8 +6,8 @@ from shutil import copyfile
|
|||||||
from setuptools import find_packages
|
from setuptools import find_packages
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
fenrirVersion = '1.8'
|
fenrirVersion = '1.9'
|
||||||
packageVersion = 'post1'
|
packageVersion = 'post2'
|
||||||
|
|
||||||
# handle flags for package manager like yaourt and pacaur.
|
# handle flags for package manager like yaourt and pacaur.
|
||||||
forceSettings = False
|
forceSettings = False
|
||||||
@ -90,7 +90,6 @@ setup(
|
|||||||
"evdev",
|
"evdev",
|
||||||
"daemonize",
|
"daemonize",
|
||||||
"dbus-python",
|
"dbus-python",
|
||||||
"pyenchant",
|
|
||||||
"pyudev",
|
"pyudev",
|
||||||
"setuptools",
|
"setuptools",
|
||||||
"pexpect",
|
"pexpect",
|
||||||
|
@ -22,6 +22,9 @@ class command():
|
|||||||
return
|
return
|
||||||
if self.env['runtime']['cursorManager'].isCursorVerticalMove():
|
if self.env['runtime']['cursorManager'].isCursorVerticalMove():
|
||||||
return
|
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 self.env['runtime']['inputManager'].getShortcutType() in ['KEY']:
|
||||||
if not (self.env['runtime']['inputManager'].getLastDeepestInput() in [['KEY_UP'],['KEY_DOWN']]):
|
if not (self.env['runtime']['inputManager'].getLastDeepestInput() in [['KEY_UP'],['KEY_DOWN']]):
|
||||||
return
|
return
|
||||||
|
@ -15,6 +15,12 @@ class screenManager():
|
|||||||
self.prevScreenIgnored = False
|
self.prevScreenIgnored = False
|
||||||
self.prevScreenText = ''
|
self.prevScreenText = ''
|
||||||
self.currScreenText = ''
|
self.currScreenText = ''
|
||||||
|
self.colums = None
|
||||||
|
self.rows = None
|
||||||
|
def getRows(self):
|
||||||
|
return self.rows
|
||||||
|
def getColumns(self):
|
||||||
|
return self.colums
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
self.env['runtime']['settingsManager'].loadDriver(\
|
self.env['runtime']['settingsManager'].loadDriver(\
|
||||||
@ -97,6 +103,8 @@ class screenManager():
|
|||||||
# get metadata like cursor or screensize
|
# get metadata like cursor or screensize
|
||||||
self.env['screen']['lines'] = int( eventData['lines'])
|
self.env['screen']['lines'] = int( eventData['lines'])
|
||||||
self.env['screen']['columns'] = int( eventData['columns'])
|
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']['x'] = int( eventData['textCursor']['x'])
|
||||||
self.env['screen']['newCursor']['y'] = int( eventData['textCursor']['y'])
|
self.env['screen']['newCursor']['y'] = int( eventData['textCursor']['y'])
|
||||||
self.env['screen']['newTTY'] = eventData['screen']
|
self.env['screen']['newTTY'] = eventData['screen']
|
||||||
|
@ -106,6 +106,7 @@ class driver(screenDriver):
|
|||||||
tty = open('/sys/devices/virtual/tty/tty0/active','r')
|
tty = open('/sys/devices/virtual/tty/tty0/active','r')
|
||||||
currScreen = str(tty.read()[3:-1])
|
currScreen = str(tty.read()[3:-1])
|
||||||
oldScreen = currScreen
|
oldScreen = currScreen
|
||||||
|
self.updateCharMap(currScreen)
|
||||||
watchdog = select.epoll()
|
watchdog = select.epoll()
|
||||||
watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR)
|
watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR)
|
||||||
watchdog.register(tty, 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)
|
watchdog.register(vcsa[ currScreen ], select.POLLPRI | select.POLLERR)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
self.updateCharMap(currScreen)
|
||||||
oldScreen = currScreen
|
oldScreen = currScreen
|
||||||
try:
|
try:
|
||||||
vcsa[currScreen].seek(0)
|
vcsa[currScreen].seek(0)
|
||||||
@ -157,7 +159,6 @@ class driver(screenDriver):
|
|||||||
|
|
||||||
|
|
||||||
def createScreenEventData(self, screen, content):
|
def createScreenEventData(self, screen, content):
|
||||||
self.updateCharMap(screen)
|
|
||||||
eventData = {
|
eventData = {
|
||||||
'bytes': content,
|
'bytes': content,
|
||||||
'lines': int( content[0]),
|
'lines': int( content[0]),
|
||||||
|
Loading…
Reference in New Issue
Block a user