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 escape=false;
|
||||||
bool escapeSecondStage=false;
|
bool escapeSecondStage=false;
|
||||||
while (!cliQuit) {
|
while (!cliQuit) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
int c;
|
||||||
|
c=fgetc(stdin);
|
||||||
|
if (c==EOF) break;
|
||||||
|
#else
|
||||||
unsigned char c;
|
unsigned char c;
|
||||||
if (read(STDIN_FILENO,&c,1)<=0) continue;
|
if (read(STDIN_FILENO,&c,1)<=0) continue;
|
||||||
|
#endif
|
||||||
if (escape) {
|
if (escape) {
|
||||||
if (escapeSecondStage) {
|
if (escapeSecondStage) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
|
Loading…
Reference in a new issue