next_char
Todo find next char
This commit is contained in:
parent
6e49c6603f
commit
92a0e71a23
19
src/fenrir-package/commands/commands/next_char
Normal file
19
src/fenrir-package/commands/commands/next_char
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/python
|
||||||
|
|
||||||
|
class command():
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
def run(self, environment):
|
||||||
|
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
|
||||||
|
if environment['screenData']['newCursorReview']['y'] == -1:
|
||||||
|
environment['screenData']['newCursorReview'] = environment['screenData']['newCursor'].copy()
|
||||||
|
wrappedLines = environment['screenData']['newContentText'].split('\n')
|
||||||
|
if wrappedLines[environment['screenData']['newCursorReview']['y']][environment['screenData']['newCursorReview']['x']].strip(" \t\n") == '':
|
||||||
|
environment['runtime']['outputManager'].presentText(environment, "blank")
|
||||||
|
else:
|
||||||
|
environment['runtime']['outputManager'].presentText(environment, wrappedLines[environment['screenData']['newCursorReview']['y']][environment['screenData']['newCursorReview']['x']])
|
||||||
|
return environment
|
||||||
|
def setCallback(self, callback):
|
||||||
|
pass
|
||||||
|
def shutdown(self):
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user