flm01/openwrt/package/luci/contrib/luacurses/test/getnstr.lua

13 lines
165 B
Lua
Raw Normal View History

require("curses");
curses.initscr();
curses.keypad(curses.stdscr(), true);
s = curses.mvgetnstr(10, 10, 10);
curses.addstr(s);
curses.getch();
curses.endwin();