From a9bfe7f452de711168aef64ebf8868fbb20cc7ed Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 26 Jul 2022 02:13:19 -0500 Subject: [PATCH] fix build... again! --- src/cli/cli.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index 95679600..55ac3a86 100644 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -34,8 +34,14 @@ bool FurnaceCLI::loop() { bool escape=false; bool escapeSecondStage=false; while (!cliQuit) { +#ifdef _WIN32 + int c; + c=fgetc(stdin); + if (c==EOF) break; +#else unsigned char c; if (read(STDIN_FILENO,&c,1)<=0) continue; +#endif if (escape) { if (escapeSecondStage) { switch (c) {