Skip to content

Commit 0f5d2f1

Browse files
committed
windows compat
1 parent 86218df commit 0f5d2f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MIDAS/src/hilsim/stream/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,18 @@ int main(int argc, char** argv) {
284284
// }
285285
}
286286
break;
287+
case '\r':
288+
// discard
289+
break;
287290
case '\n':
288291
// discard
289292
break;
290293
default:
291294
std::cerr << "Invalid command " << cmd << std::endl;
292295
}
293296

297+
298+
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\r');
294299
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
295300
}
296301

0 commit comments

Comments
 (0)