diff options
Diffstat (limited to 'counter.tlv')
-rw-r--r-- | counter.tlv | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/counter.tlv b/counter.tlv index d8b396f..566314e 100644 --- a/counter.tlv +++ b/counter.tlv @@ -1,7 +1,14 @@ teliva_program = { - window = [==[window = curses.stdscr()]==], - n = [==[n = 0]==], - render = [==[ + { + window = [==[ +window = curses.stdscr()]==], + }, + { + n = [==[ +n = 0]==], + }, + { + render = [==[ function render(window) window:clear() window:attron(curses.A_BOLD) @@ -12,15 +19,22 @@ function render(window) window:attroff(curses.A_BOLD) curses.refresh() end]==], - menu = [==[menu = {Enter="increment"}]==], - update = [==[ + }, + { + menu = [==[ +menu = {Enter="increment"}]==], + }, + { + update = [==[ function update(window) local key = curses.getch() if key == 10 then n = n+1 end end]==], - main = [==[ + }, + { + main = [==[ function main() for i=1,7 do curses.init_pair(i, 0, i) @@ -31,4 +45,5 @@ function main() update(window) end end]==], + }, } |