From 197c0c91b2df0617aeb00bad8f79a2bf48413fbc Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Tue, 27 Jun 2006 13:28:43 +0000 Subject: [PATCH] make path relative (so that I don't break eb top of tree !) --- src/tests/curses_scr.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tests/curses_scr.c b/src/tests/curses_scr.c index b328113a..292e534f 100644 --- a/src/tests/curses_scr.c +++ b/src/tests/curses_scr.c @@ -1,4 +1,4 @@ -#include "/home/dan/cvs/extcvs/eb/src/include/curses.h" +#include "../include/curses.h" #include #include #include @@ -18,7 +18,7 @@ void _init_screen( struct _curses_screen *scr __unused ) { tcgetattr(fileno(stdin),&runtime); runtime.c_lflag &= ~(ICANON|ECHO); tcsetattr(fileno(stdin),TCSANOW,&runtime); - printf("%c[=%dh",ESC,MODE); + //printf("%c[=%dh",ESC,MODE); LINES = 25; COLS = 80; } @@ -40,16 +40,17 @@ void _putc( struct _curses_screen *scr __unused, chtype c ) { //printf( "%c[%d;%d",ESC, // cpairs[pairno][0], cpairs[pairno][1] ); // print rendition (character) - printf( "%c", (char)(c & A_CHARTEXT) ); + //printf("char is \"%d\"", c ); + putchar( c ); } int _getc( struct _curses_screen *scr __unused ) { - return getc(stdin); + return getchar(); } bool _peek( struct _curses_screen *scr __unused ) { int c; - if ( ( c = getc(stdin) ) != EOF ) { + if ( ( c = getchar() ) != EOF ) { ungetc( c, stdin ); return TRUE; } else { return FALSE; }