projects
/
ansitris
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test timing and input handling
[ansitris]
/
src
/
ansi.c
diff --git
a/src/ansi.c
b/src/ansi.c
index
ac5185f
..
07ae749
100644
(file)
--- a/
src/ansi.c
+++ b/
src/ansi.c
@@
-63,6
+63,12
@@
void ansi_setcursor(int row, int col)
printf("\033[%d;%dH", row + 1, col + 1);
}
+void ansi_cursor(int show)
+{
+ printf("\033[?25%c", show ? 'h' : 'l');
+ fflush(stdout);
+}
+
void ansi_ibmchar(unsigned char c, unsigned char attr)
{
char cmd[32];