diff --git a/main b/main index b2214a2..b267987 100755 Binary files a/main and b/main differ diff --git a/main.c b/main.c index e938eb4..f6b288f 100644 --- a/main.c +++ b/main.c @@ -3,7 +3,20 @@ int main(char argc,char**argv) { initscr(); - printw("Hello World!"); + raw(); + keypad(stdscr,TRUE); + noecho(); + + printw("Type any character:"); + int ch=getch(); + + if (ch==KEY_F(1)) { + printw("F1 Key pressed!"); + } else { + attron(A_BOLD); + printw("%c",ch); + attroff(A_BOLD); + } refresh(); getch();