mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
fix build... again!
This commit is contained in:
parent
280592cf33
commit
a9bfe7f452
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue