diff options
author | Steven Barth <steven@midlink.org> | 2008-08-31 11:16:52 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-31 11:16:52 +0000 |
commit | df52b711a78dbe8808628ae873acc1f3edefb1cf (patch) | |
tree | 00b4c145e7ab0501a6de277478b659d51e50fc92 /contrib/luacurses/test/getyx.lua | |
parent | 36c76090638e80d1cb9ad2dd060aae65976f24c8 (diff) |
Reorganise luacurses
Diffstat (limited to 'contrib/luacurses/test/getyx.lua')
-rw-r--r-- | contrib/luacurses/test/getyx.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/luacurses/test/getyx.lua b/contrib/luacurses/test/getyx.lua new file mode 100644 index 0000000000..4600236bb1 --- /dev/null +++ b/contrib/luacurses/test/getyx.lua @@ -0,0 +1,13 @@ + +require("curses"); + +curses.initscr(); +while (true) do + local s = curses.getnstr(1000); + curses.addstr(s); + curses.addstr(":" .. table.concat({curses.getyx(curses.stdscr())}, ' ') .. "\n"); + if (s == "exit") then break; end +end + +curses.endwin(); + |