Mercurial > grim > libgnt
view test/key.c @ 1334:567948b95e50
Add some missing function docs.
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> |
---|---|
date | Mon, 13 May 2019 23:23:32 -0400 |
parents | 0578429294e6 |
children |
line wrap: on
line source
#include <ncurses.h> int main() { int ch; initscr(); noecho(); cbreak(); refresh(); WINDOW *win = newpad(20, 30); box(win, 0, 0); prefresh(win, 0, 0, 0, 0, 19, 29); doupdate(); while ((ch = getch())) { printw("%d ", ch); refresh(); } endwin(); return 0; }