Browse Source

make path relative (so that I don't break eb top of tree !)

tags/v0.9.3
Dan Lynch 18 years ago
parent
commit
197c0c91b2
1 changed files with 6 additions and 5 deletions
  1. 6
    5
      src/tests/curses_scr.c

+ 6
- 5
src/tests/curses_scr.c View File

1
-#include "/home/dan/cvs/extcvs/eb/src/include/curses.h"
1
+#include "../include/curses.h"
2
 #include <termios.h>
2
 #include <termios.h>
3
 #include <stddef.h>
3
 #include <stddef.h>
4
 #include <stdio.h>
4
 #include <stdio.h>
18
 	tcgetattr(fileno(stdin),&runtime);
18
 	tcgetattr(fileno(stdin),&runtime);
19
 	runtime.c_lflag &= ~(ICANON|ECHO);
19
 	runtime.c_lflag &= ~(ICANON|ECHO);
20
 	tcsetattr(fileno(stdin),TCSANOW,&runtime);
20
 	tcsetattr(fileno(stdin),TCSANOW,&runtime);
21
-	printf("%c[=%dh",ESC,MODE);
21
+	//printf("%c[=%dh",ESC,MODE);
22
 	LINES = 25; COLS = 80;
22
 	LINES = 25; COLS = 80;
23
 }
23
 }
24
 
24
 
40
 	//printf( "%c[%d;%d",ESC, 
40
 	//printf( "%c[%d;%d",ESC, 
41
 	//	cpairs[pairno][0], cpairs[pairno][1] );
41
 	//	cpairs[pairno][0], cpairs[pairno][1] );
42
 	// print rendition (character)
42
 	// print rendition (character)
43
-	printf( "%c", (char)(c & A_CHARTEXT) );
43
+	//printf("char is \"%d\"", c );
44
+	putchar( c );
44
 }
45
 }
45
 
46
 
46
 int _getc( struct _curses_screen *scr __unused ) {
47
 int _getc( struct _curses_screen *scr __unused ) {
47
-	return getc(stdin);
48
+	return getchar();
48
 }
49
 }
49
 
50
 
50
 bool _peek( struct _curses_screen *scr __unused ) {
51
 bool _peek( struct _curses_screen *scr __unused ) {
51
 	int c;
52
 	int c;
52
-	if ( ( c = getc(stdin) ) != EOF ) {
53
+	if ( ( c = getchar() ) != EOF ) {
53
 		ungetc( c, stdin );
54
 		ungetc( c, stdin );
54
 		return TRUE;
55
 		return TRUE;
55
 	} else { return FALSE; }
56
 	} else { return FALSE; }

Loading…
Cancel
Save