start inherit more drivers
This commit is contained in:
parent
6b3a89a837
commit
bf7b74b878
@ -28,10 +28,11 @@ from fcntl import ioctl
|
|||||||
from struct import unpack_from, unpack, pack
|
from struct import unpack_from, unpack, pack
|
||||||
from core import debug
|
from core import debug
|
||||||
from core.eventData import fenrirEventType
|
from core.eventData import fenrirEventType
|
||||||
|
from core.screenDriver import screenDriver
|
||||||
|
|
||||||
|
class driver(screenDriver):
|
||||||
class driver():
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
screenDriver.__init__(self)
|
||||||
self.vcsaDevicePath = '/dev/vcsa'
|
self.vcsaDevicePath = '/dev/vcsa'
|
||||||
self.ListSessions = None
|
self.ListSessions = None
|
||||||
self.charmap = {}
|
self.charmap = {}
|
||||||
@ -41,8 +42,6 @@ class driver():
|
|||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
self.env['runtime']['processManager'].addCustomEventThread(self.updateWatchdog)
|
self.env['runtime']['processManager'].addCustomEventThread(self.updateWatchdog)
|
||||||
def shutdown(self):
|
|
||||||
pass
|
|
||||||
def getCurrScreen(self):
|
def getCurrScreen(self):
|
||||||
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
|
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
|
||||||
try:
|
try:
|
||||||
|
@ -28,10 +28,11 @@ from fcntl import ioctl
|
|||||||
from struct import unpack_from, unpack, pack
|
from struct import unpack_from, unpack, pack
|
||||||
from core import debug
|
from core import debug
|
||||||
from core.eventData import fenrirEventType
|
from core.eventData import fenrirEventType
|
||||||
|
from core.screenDriver import screenDriver
|
||||||
|
|
||||||
|
class driver(screenDriver):
|
||||||
class driver():
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
screenDriver.__init__(self)
|
||||||
self.vcsaDevicePath = '/dev/vcsa'
|
self.vcsaDevicePath = '/dev/vcsa'
|
||||||
self.ListSessions = None
|
self.ListSessions = None
|
||||||
self.charmap = {}
|
self.charmap = {}
|
||||||
@ -41,8 +42,6 @@ class driver():
|
|||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
self.env['runtime']['processManager'].addCustomEventThread(self.updateWatchdog)
|
self.env['runtime']['processManager'].addCustomEventThread(self.updateWatchdog)
|
||||||
def shutdown(self):
|
|
||||||
pass
|
|
||||||
def getCurrScreen(self):
|
def getCurrScreen(self):
|
||||||
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
|
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user