diff options
Diffstat (limited to 'term')
-rw-r--r-- | term/cursor.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/term/cursor.lua b/term/cursor.lua index b7d09cd..e8480a9 100644 --- a/term/cursor.lua +++ b/term/cursor.lua | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | local term = require 'term.core' | 21 | local term = require 'term.core' |
22 | 22 | ||
23 | return { | 23 | local cursor = { |
24 | ['goto'] = term.maketermfunc '%d;%dH', | 24 | ['goto'] = term.maketermfunc '%d;%dH', |
25 | goup = term.maketermfunc '%d;A', | 25 | goup = term.maketermfunc '%d;A', |
26 | godown = term.maketermfunc '%d;B', | 26 | godown = term.maketermfunc '%d;B', |
@@ -29,3 +29,7 @@ return { | |||
29 | save = term.maketermfunc 's', | 29 | save = term.maketermfunc 's', |
30 | restore = term.maketermfunc 'u', | 30 | restore = term.maketermfunc 'u', |
31 | } | 31 | } |
32 | |||
33 | cursor.jump = cursor['goto'] | ||
34 | |||
35 | return cursor | ||