fix build... again!

This commit is contained in:
tildearrow 2022-07-26 02:13:19 -05:00
parent 280592cf33
commit a9bfe7f452
1 changed files with 6 additions and 0 deletions

View File

@ -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) {