diff --git a/curses.c b/curses.c new file mode 100644 index 0000000..6480b0e --- /dev/null +++ b/curses.c @@ -0,0 +1,23 @@ +#include + +int main() +{ + initscr(); + noecho(); + cbreak(); + nodelay(stdscr, TRUE); + + int ch = ERR; + while (ch == ERR) + { + ch = getch(); + //addch('.'); + } + + addch(ch); + //refresh(); + + nodelay(stdscr, FALSE); + getch(); + endwin(); +}