mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-18 21:43:14 +00:00
- working basic ansi termnal extension for mucurses
This commit is contained in:
parent
916f21921f
commit
f78fa3c59d
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user