#include #include #include int main (int argc, char *argv[]) { initscr (); raw (); noecho (); keypad (stdscr, TRUE); printw ("Type any character to see it in bold\n"); int ch = getch (); if(ch == KEY_F (1)) printw ("F1 Key pressed"); else { printw ("The pressed key is "); attron (A_BOLD); printw ("%c", ch); attroff (A_BOLD); } refresh (); getch (); endwin (); return EXIT_SUCCESS; }