add -e flag
This commit is contained in:
parent
d2cc7192b3
commit
333ac59cc6
@ -40,6 +40,7 @@ class fenrirManager():
|
|||||||
parser.add_argument('-o', '--options', metavar='SECTION#SETTING=VALUE,..', default='', help='Overwrite options in given settings file')
|
parser.add_argument('-o', '--options', metavar='SECTION#SETTING=VALUE,..', default='', help='Overwrite options in given settings file')
|
||||||
parser.add_argument('-d', '--debug', action='store_true', help='Turns on Debugmode')
|
parser.add_argument('-d', '--debug', action='store_true', help='Turns on Debugmode')
|
||||||
parser.add_argument('-p', '--print', action='store_true', help='Print debug messages on screen')
|
parser.add_argument('-p', '--print', action='store_true', help='Print debug messages on screen')
|
||||||
|
parser.add_argument('-e', '--emulation', action='store_true', help='Use PTY emulation')
|
||||||
try:
|
try:
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -292,7 +292,11 @@ class settingsManager():
|
|||||||
self.setOptionArgDict('general', 'debugLevel', 3)
|
self.setOptionArgDict('general', 'debugLevel', 3)
|
||||||
if cliArgs.print:
|
if cliArgs.print:
|
||||||
self.setOptionArgDict('general', 'debugLevel', 3)
|
self.setOptionArgDict('general', 'debugLevel', 3)
|
||||||
self.setOptionArgDict('general', 'debugMode', 'PRINT')
|
self.setOptionArgDict('general', 'debugMode', 'PRINT')
|
||||||
|
if cliArgs.emulation:
|
||||||
|
self.setOptionArgDict('screen', 'driver', 'ptyDriver')
|
||||||
|
self.setOptionArgDict('keyboard', 'driver', 'dummyDriver')
|
||||||
|
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'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user