summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorDan Lynch2006-06-27 15:28:43 +0200
committerDan Lynch2006-06-27 15:28:43 +0200
commit197c0c91b2df0617aeb00bad8f79a2bf48413fbc (patch)
treefcbf93d5a2cf50408637cfbc846e0dbb4f57c254 /src/tests
parentincluded contents of input.{c,h} in kb.c (diff)
downloadipxe-197c0c91b2df0617aeb00bad8f79a2bf48413fbc.tar.gz
ipxe-197c0c91b2df0617aeb00bad8f79a2bf48413fbc.tar.xz
ipxe-197c0c91b2df0617aeb00bad8f79a2bf48413fbc.zip
make path relative (so that I don't break eb top of tree !)
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/curses_scr.c11
1 files 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 <termios.h>
#include <stddef.h>
#include <stdio.h>
@@ -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; }