From 2a984267c8abc1435901bf713037fd799a3bf726 Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Thu, 13 Feb 2014 17:51:07 +0100 Subject: Fix parse error on 5.2 Better yet would be an alias for the 'goto' function, but that can be added later. --- term/cursor.lua | 14 +++++++------- 1 file 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 @@ local term = require 'term.core' return { - goto = term.maketermfunc '%d;%dH', - goup = term.maketermfunc '%d;A', - godown = term.maketermfunc '%d;B', - goright = term.maketermfunc '%d;C', - goleft = term.maketermfunc '%d;D', - save = term.maketermfunc 's', - restore = term.maketermfunc 'u', + ['goto'] = term.maketermfunc '%d;%dH', + goup = term.maketermfunc '%d;A', + godown = term.maketermfunc '%d;B', + goright = term.maketermfunc '%d;C', + goleft = term.maketermfunc '%d;D', + save = term.maketermfunc 's', + restore = term.maketermfunc 'u', } -- cgit v1.2.3-55-g6feb