summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-02 05:08:57 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-02 05:10:08 +0100
commit2e329d4d55fa9a296a5c27fa3d306840167d25c5 (patch)
treed2b5a1b4e6221b439952f65c36d84654c1025dbb
parent82a7c12e8338288ccb40d213fcc9e15d102aa968 (diff)
fix ANSI code in update_current() - thanks mwmsl!
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 8e1b8bc..e81f037 100644
--- a/screen.c
+++ b/screen.c
@@ -146,7 +146,7 @@ void draw_xy(int x, int y, char c){
void update_current(){
if (silent)
return;
- printf("\033[%d'%df",y+1,x+1);
+ printf("\033[%d;%df",y+1,x+1);
putchar(screen.l[y].s[x]);
fflush(stdout);
}