source: npl/mediabox/lcdproc_edwin/src/tests/ctest.c @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 367 bytes
Line 
1#include <curses.h>
2
3void main()
4{
5  char string[64];
6 
7  int done=0;
8  int key=0;
9 
10
11  initscr();
12  cbreak();
13  noecho();
14  nonl();
15  intrflush(stdscr, FALSE);
16  keypad(stdscr, TRUE);
17
18
19  while(!done)
20    {
21      key=getch();
22      if(key == KEY_BACKSPACE) done=1;
23      sprintf(string, "Key: %i", key);
24     
25      mvaddstr(0,0,string);
26     
27     
28    }
29 
30}
Note: See TracBrowser for help on using the repository browser.