From b3873798f3275cb3da4714eff819edbc08d45518 Mon Sep 17 00:00:00 2001 From: violette Date: Fri, 2 May 2025 11:45:13 -0400 Subject: [PATCH] fix: fix apple only code --- main.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/main.c b/main.c index 6ca0cbe..eebb8f8 100644 --- a/main.c +++ b/main.c @@ -325,9 +325,7 @@ printCV(char face, struct json_object_element_s *r) void printAscii(struct json_value_s *json) { -#ifdef __APPLE__ fcntl(STDOUT_FILENO, F_SETFL, ~O_NONBLOCK); -#endif char face = chooseMainFace(); struct json_object_element_s *root = json_value_as_object(json)->start; printCV(face, root); @@ -335,9 +333,7 @@ printAscii(struct json_value_s *json) for (int k = 0; k < SCREEN_WIDTH * SCREEN_HEIGHT; ++k) printf("%s", k % SCREEN_WIDTH ? chooseColor(output[k]) : "\r\n"); printf("\r\n"); -#ifdef __APPLE__ fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK); -#endif } void @@ -537,9 +533,6 @@ main() char keyboardInput = 0; signal(SIGINT, intHandler); tcgetattr(STDIN_FILENO, &originalTerm); -#ifndef __APPLE__ - fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK); -#endif struct termios t = {}; cfmakeraw(&t);