build: add runuhttpd sdk target
[project/luci.git] / contrib / luacurses / test / pair.lua
1
2 require("curses");
3
4 curses.initscr();
5
6 curses.start_color();
7 curses.init_pair(1, curses.COLOR_BLUE, curses.COLOR_YELLOW);
8 curses.init_pair(2, curses.COLOR_CYAN, curses.COLOR_RED);
9
10 for i = 1, 2 do
11     local r, f, b = curses.pair_content(i);
12     curses.attrset(curses.COLOR_PAIR(i));
13     curses.addstr(f .. ", " .. b .. "\n");
14 end
15
16 curses.getch();
17 curses.endwin();
18