aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-11-02 03:48:42 +0200
committerDrNuget <drnuget@outlook.com>2025-11-02 03:48:42 +0200
commit35b58a4123c0533d183aee0a7056044fd9ed52fe (patch)
treee5974aa86f4bcbde0650f923c5d6f361b98cb7e3 /src
parentab4cb5e7a4946d951b7445af165531ad7c029d88 (diff)
downloadbrailleboi-35b58a4123c0533d183aee0a7056044fd9ed52fe.tar.gz
turn escape sequences iso compliant
Diffstat (limited to 'src')
-rw-r--r--src/brailleboi.c8
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]));
}
}