/* * Show text with different attributes. * * Most functions are from "mylib" library, though some are from "ncurses" * library (and "man 3x foobar" gives more info on foobar()). */ #include #include #include #include #include "mylib.h" int main(void) { ncurses_start(); add_to_row(stdscr, 2); show_with_attrib(stdscr, A_STANDOUT, "A_STANDOUT"); add_to_row(stdscr, 2); show_with_attrib(stdscr, A_UNDERLINE, "A_UNDERLINE"); add_to_row(stdscr, 2); show_with_attrib(stdscr, A_BOLD, "A_BOLD"); add_to_row(stdscr, 2); show_with_attrib(stdscr, A_REVERSE, "A_REVERSE"); add_to_row(stdscr, 2); show_with_attrib(stdscr, A_BLINK, "A_BLINK"); add_to_row(stdscr, 2); refresh(); any_key_to_exit(stdscr); ncurses_end(); return EXIT_SUCCESS; }