summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Hoelz <rob@hoelz.ro>2014-02-13 17:51:07 +0100
committerRob Hoelz <rob@hoelz.ro>2014-02-13 17:51:07 +0100
commit2a984267c8abc1435901bf713037fd799a3bf726 (patch)
treeb53a5d594b06707f8eb8071fc3270af2f3498eed
parent4722640180eacad2e350106728bc04d1bd6c1966 (diff)
downloadlua-term-2a984267c8abc1435901bf713037fd799a3bf726.tar.gz
lua-term-2a984267c8abc1435901bf713037fd799a3bf726.tar.bz2
lua-term-2a984267c8abc1435901bf713037fd799a3bf726.zip
Fix parse error on 5.2
Better yet would be an alias for the 'goto' function, but that can be added later.
-rw-r--r--term/cursor.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/term/cursor.lua b/term/cursor.lua
index ebd81ed..b7d09cd 100644
--- a/term/cursor.lua
+++ b/term/cursor.lua
@@ -21,11 +21,11 @@
21local term = require 'term.core' 21local term = require 'term.core'
22 22
23return { 23return {
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',
27 goright = term.maketermfunc '%d;C', 27 goright = term.maketermfunc '%d;C',
28 goleft = term.maketermfunc '%d;D', 28 goleft = term.maketermfunc '%d;D',
29 save = term.maketermfunc 's', 29 save = term.maketermfunc 's',
30 restore = term.maketermfunc 'u', 30 restore = term.maketermfunc 'u',
31} 31}