From ab4cb5e7a4946d951b7445af165531ad7c029d88 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sun, 2 Nov 2025 03:47:12 +0200 Subject: add escape sequences for cursor hiding, clearing screen when doing screen update --- src/brailleboi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/brailleboi.c') diff --git a/src/brailleboi.c b/src/brailleboi.c index d1f14c6..53f7a01 100644 --- a/src/brailleboi.c +++ b/src/brailleboi.c @@ -8,6 +8,7 @@ int brailleInit(int width, int height, image_buffer* buf) { setlocale(LC_ALL, ""); + wprintf(L"\e[?25l"); buf->width = width; buf->height = height; buf->char_width = (width+1)/2; @@ -18,6 +19,7 @@ int brailleInit(int width, int height, image_buffer* buf) int brailleStop(image_buffer* buf) { + wprintf(L"\e[?25h"); free(buf->contents); return 0; } @@ -47,6 +49,7 @@ int braillePlot(int x, int y, image_buffer* buf) void brailleUpdateScreen(image_buffer* buf) { + wprintf(L"\e[2J"); for (int x=0;xchar_width;x++) { for (int y=0;ychar_height;y++) { wprintf(L"\e[%d;%dH", y+1, x+1); -- cgit v1.2.3