diff options
| author | DrNuget <drnuget@outlook.com> | 2025-11-02 03:48:42 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2025-11-02 03:48:42 +0200 |
| commit | 35b58a4123c0533d183aee0a7056044fd9ed52fe (patch) | |
| tree | e5974aa86f4bcbde0650f923c5d6f361b98cb7e3 | |
| parent | ab4cb5e7a4946d951b7445af165531ad7c029d88 (diff) | |
| download | brailleboi-35b58a4123c0533d183aee0a7056044fd9ed52fe.tar.gz | |
turn escape sequences iso compliant
| -rw-r--r-- | src/brailleboi.c | 8 |
1 files changed, 4 insertions, 4 deletions
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;x<buf->char_width;x++) { for (int y=0;y<buf->char_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])); } } |
