aboutsummaryrefslogtreecommitdiff
path: root/src/command/commands.js
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-21 17:20:58 +0200
committerAdrian Kummerlaender2015-08-21 17:20:58 +0200
commitad6773b267e2bbdfc5e049a4bc8ac8b92980270e (patch)
treed39f3d971dea6fdb6d24f0c4f86648492adeb815 /src/command/commands.js
parent75891e7c90ff8ec3533a6a1e9aac66501693d561 (diff)
downloadMetaTerm-ad6773b267e2bbdfc5e049a4bc8ac8b92980270e.tar
MetaTerm-ad6773b267e2bbdfc5e049a4bc8ac8b92980270e.tar.gz
MetaTerm-ad6773b267e2bbdfc5e049a4bc8ac8b92980270e.tar.bz2
MetaTerm-ad6773b267e2bbdfc5e049a4bc8ac8b92980270e.tar.lz
MetaTerm-ad6773b267e2bbdfc5e049a4bc8ac8b92980270e.tar.xz
MetaTerm-ad6773b267e2bbdfc5e049a4bc8ac8b92980270e.tar.zst
MetaTerm-ad6773b267e2bbdfc5e049a4bc8ac8b92980270e.zip
Add `q` command to close _MetaTerm_ in command mode
Diffstat (limited to 'src/command/commands.js')
-rw-r--r--src/command/commands.js36
1 files changed, 20 insertions, 16 deletions
diff --git a/src/command/commands.js b/src/command/commands.js
index fce509a..0855e3a 100644
--- a/src/command/commands.js
+++ b/src/command/commands.js
@@ -34,22 +34,6 @@ function exec(output, args) {
}
}
-function jump(output, index) {
- terminalList.selectItem(index);
-}
-
-function kill(output, index) {
- terminalList.get(index).reset();
-}
-
-function next() {
- terminalList.selectNext();
-}
-
-function prev() {
- terminalList.selectPrev();
-}
-
function ls(output) {
terminalList.iterate(function(item) {
if ( item.terminal !== null ) {
@@ -74,3 +58,23 @@ function set(output, args) {
}
}
}
+
+function jump(output, index) {
+ terminalList.selectItem(index);
+}
+
+function kill(output, index) {
+ terminalList.get(index).reset();
+}
+
+function next() {
+ terminalList.selectNext();
+}
+
+function prev() {
+ terminalList.selectPrev();
+}
+
+function q() {
+ Qt.quit();
+}