diff options
Diffstat (limited to 'qml/commands.js')
-rw-r--r-- | qml/commands.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/qml/commands.js b/qml/commands.js new file mode 100644 index 0000000..ee13a1b --- /dev/null +++ b/qml/commands.js @@ -0,0 +1,19 @@ +function execute(command) { + var args = command.split(' '); + var func = args[0]; + args.shift(); + + eval(func + '(' + JSON.stringify(args) + ')'); +} + +function exec(args) { + eval(args.join(' ')); +} + +function next() { + terminalList.selectNext(); +} + +function prev() { + terminalList.selectPrev(); +} |