applications/luci-multiwan: use new uci disable option instead of disabling the init...
[project/luci.git] / contrib / luacurses / test / getyx.lua
1
2 require("curses");
3
4 curses.initscr();
5 while (true) do
6     local s = curses.getnstr(1000);
7     curses.addstr(s);
8     curses.addstr(":" .. table.concat({curses.getyx(curses.stdscr())}, ' ') .. "\n");
9     if (s == "exit") then break; end
10 end
11
12 curses.endwin();
13