#include #include #include #include #include using namespace std; int main() { initscr();//creates stdscr. important step use_default_colors();//this apparently tells it to use default terminal colors whenever there is no color attribute applied printw("Hello World\n"); printw("Please enter a string: "); refresh(); char *arr = new char[1024]; getstr(arr); printw("Wow I didn't think you'd type in THAT. You entered: "); printw(arr); start_color(); init_pair(1,COLOR_RED, COLOR_BLUE); attron(COLOR_PAIR(1)); printw("\nThe quick brown fox jumps over the lazy dog\n"); attroff(COLOR_PAIR(1)); mvprintw(17, 7, "BRUUUUUUUUH"); move(12,13); attron(A_STANDOUT | A_UNDERLINE); mvprintw(15, 3, ""); attroff(A_STANDOUT | A_UNDERLINE); mvaddch(4,3, '@'); refresh(); getch(); endwin(); }