blob: f269800613f36ac71d0c80311ac6e43f61c9b30f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require("curses");
curses.initscr();
curses.start_color();
curses.init_pair(1, curses.COLOR_BLUE, curses.COLOR_YELLOW);
curses.init_pair(2, curses.COLOR_CYAN, curses.COLOR_RED);
for i = 1, 2 do
local r, f, b = curses.pair_content(i);
curses.attrset(curses.COLOR_PAIR(i));
curses.addstr(f .. ", " .. b .. "\n");
end
curses.getch();
curses.endwin();
|