http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
916f219
)
- working basic ansi termnal extension for mucurses
author
Dan Lynch
<danjlynch@users.sourceforge.net>
Tue, 27 Jun 2006 17:11:57 +0000
(17:11 +0000)
committer
Dan Lynch
<danjlynch@users.sourceforge.net>
Tue, 27 Jun 2006 17:11:57 +0000
(17:11 +0000)
src/tests/curses_scr.c
patch
|
blob
|
history
diff --git
a/src/tests/curses_scr.c
b/src/tests/curses_scr.c
index
292e534
..
6c29897
100644
(file)
--- a/
src/tests/curses_scr.c
+++ b/
src/tests/curses_scr.c
@@
-23,9
+23,9
@@
void _init_screen( struct _curses_screen *scr __unused ) {
}
void _exit_screen( struct _curses_screen *scr __unused ) {
+ printf("%c[1;1H",ESC);
+ printf("%c[2J",ESC);
tcsetattr(fileno(stdin),TCSANOW,&original);
- printf("%c[0",ESC);
- printf("%c[u",ESC);
}
void _movetoyx( struct _curses_screen *scr __unused, unsigned int y, unsigned int x ) {
@@
-42,6
+42,7
@@
void _putc( struct _curses_screen *scr __unused, chtype c ) {
// print rendition (character)
//printf("char is \"%d\"", c );
putchar( c );
+ fflush(stdout); // There must be a better way to do this...
}
int _getc( struct _curses_screen *scr __unused ) {