From 35b58a4123c0533d183aee0a7056044fd9ed52fe Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sun, 2 Nov 2025 03:48:42 +0200 Subject: turn escape sequences iso compliant --- src/brailleboi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/brailleboi.c') diff --git a/src/brailleboi.c b/src/brailleboi.c index 53f7a01..83cb1bf 100644 --- a/src/brailleboi.c +++ b/src/brailleboi.c @@ -8,7 +8,7 @@ int brailleInit(int width, int height, image_buffer* buf) { setlocale(LC_ALL, ""); - wprintf(L"\e[?25l"); + wprintf(L"\033[?25l"); buf->width = width; buf->height = height; buf->char_width = (width+1)/2; @@ -19,7 +19,7 @@ int brailleInit(int width, int height, image_buffer* buf) int brailleStop(image_buffer* buf) { - wprintf(L"\e[?25h"); + wprintf(L"\033[?25h"); free(buf->contents); return 0; } @@ -49,10 +49,10 @@ int braillePlot(int x, int y, image_buffer* buf) void brailleUpdateScreen(image_buffer* buf) { - wprintf(L"\e[2J"); + wprintf(L"\033[2J"); for (int x=0;xchar_width;x++) { for (int y=0;ychar_height;y++) { - wprintf(L"\e[%d;%dH", y+1, x+1); + wprintf(L"\033[%d;%dH", y+1, x+1); braillePrint(brailleReorganizeBits(buf->contents[y * buf->char_width + x])); } } -- cgit v1.2.3