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