name line begin/end commands more consistent

This commit is contained in:
chrys 2016-10-02 16:25:53 +02:00
parent c6d6587d82
commit 3eb5fb0f47
5 changed files with 56 additions and 6 deletions

View File

@ -5,8 +5,8 @@ KEY_FENRIR,KEY_KP7=review_top
KEY_KP8=review_curr_line
KEY_KP7=review_prev_line
KEY_KP9=review_next_line
#=review_end_of_line
#=review_begin_of_line
#=review_line_end
#=review_line_begin
#=present_first_line
#=present_last_line
KEY_KP5=review_curr_word

View File

@ -5,8 +5,8 @@ KEY_FENRIR,KEY_SHIFT,KEY_U=review_top
KEY_FENRIR,KEY_I=review_curr_line
KEY_FENRIR,KEY_U=review_prev_line
KEY_FENRIR,KEY_O=review_next_line
#=review_end_of_line
#=review_begin_of_line
#=review_line_end
#=review_line_begin
#=present_first_line
#=present_last_line
KEY_FENRIR,KEY_K=review_curr_word

View File

@ -5,8 +5,8 @@ KEY_FENRIR,KEY_KP7=review_top
KEY_KP8=review_curr_line
KEY_KP7=review_prev_line
KEY_KP9=review_next_line
#=review_end_of_line
KEY_FENRIR,KEY_KP6=review_begin_of_line
#=review_line_end
#=review_line_begin
#=present_first_line
#=present_last_line
KEY_KP5=review_curr_word

View File

@ -0,0 +1,25 @@
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
def getDescription(self):
return 'displays the position of the review cursor'
def run(self):
cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor()
self.env['runtime']['cursorManager'].setReviewCursorPosition(0 ,cursorPos['y'])
self.env['runtime']['outputManager'].presentText("begin of line", interrupt=True)
def setCallback(self, callback):
pass

View File

@ -0,0 +1,25 @@
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
def getDescription(self):
return 'displays the position of the review cursor'
def run(self):
cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor()
self.env['runtime']['cursorManager'].setReviewCursorPosition(self.env['screenData']['columns']-1 ,cursorPos['y'])
self.env['runtime']['outputManager'].presentText("end of line", interrupt=True)
def setCallback(self, callback):
pass