From a752e91b22514113d57efd4da60b1920ebf9f6c9 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 11 Sep 2016 17:27:37 -0400 Subject: [PATCH] still broken, but closer to move cursor to bottom. --- config/keyboard/test.conf | 2 +- src/fenrir-package/commands/commands/review_bottom.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/keyboard/test.conf b/config/keyboard/test.conf index 7cd2cd96..2d22e33b 100644 --- a/config/keyboard/test.conf +++ b/config/keyboard/test.conf @@ -1,6 +1,6 @@ 1-KEY_LEFTCTRL=shut_up 1-FENRIR,1-KEY_RIGHTCTRL=shut_up -1-FENRIR,1-KEY_KPENTER=review_BOTTOM +1-FENRIR,1-KEY_KPENTER=review_bottom 1-FENRIR,1-KEY_KPPLUS=review_top 1-FENRIR,1-KEY_KP8=curr_line 1-FENRIR,1-KEY_KP7=prev_line diff --git a/src/fenrir-package/commands/commands/review_bottom.py b/src/fenrir-package/commands/commands/review_bottom.py index dc2d7560..04b14b55 100644 --- a/src/fenrir-package/commands/commands/review_bottom.py +++ b/src/fenrir-package/commands/commands/review_bottom.py @@ -1,11 +1,10 @@ #!/bin/python -from utils import char_utils class command(): def __init__(self): pass def run(self, environment): - environment['screenData']['newCursorReview'] = {'x':environment [screenData][columns],'y':0} + environment['screenData']['newCursorReview'] = {'x':0,'y':environment[screenData][lines]} environment['runtime']['outputManager'].presentText(environment, "Bottom", interrupt=True) return environment