fix ANSI code in update_current() - thanks mwmsl! - gramscii - A simple editor for ASCII box-and-arrow charts
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2e329d4d55fa9a296a5c27fa3d306840167d25c5
(DIR) parent 82a7c12e8338288ccb40d213fcc9e15d102aa968
(HTM) Author: KatolaZ <katolaz@freaknet.org>
Date: Fri, 2 Aug 2019 05:08:57 +0100
fix ANSI code in update_current() - thanks mwmsl!
Diffstat:
M screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git 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);
}