diff options
author | tom <tom@ground-control> | 2015-11-25 16:05:41 -0600 |
---|---|---|
committer | tom <tom@ground-control> | 2015-11-25 16:05:41 -0600 |
commit | 260589abf40d3a0d02c5c472467858cc4c151e6a (patch) | |
tree | 86a96732d89a3a373aa846617fb0ea7f4a334800 /src/main.cpp | |
parent | 0fb714b1a642361eebadf7d74333c20f861354d2 (diff) |
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 75847a2..1588dbd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,7 +20,7 @@ int main() while(true) { char c = getch(); - Location l = cursor.getLocation(); + l = cursor.getLocation(); if (c == 'h') l.y = l.y-1; else if (c == 'l') @@ -32,7 +32,9 @@ int main() else if (c == 'q') break; else if (c == 'p') - paused = !paused; + paused = !paused; + else if (c == 'o') + L.order(l); cursor.move(l); if (!paused) |