We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ae5fb7 + bc1fa68 commit a6c5d62Copy full SHA for a6c5d62
Interpreter/interpreter.cpp
@@ -1,6 +1,10 @@
1
#include "interpreter.h"
2
+
3
4
#include <iostream>
5
+#if defined(__APPLE__) || defined(__unix__)
6
#include <ncurses.h>
7
+#endif
8
9
std::string fileName = "Output.txt";
10
std::ofstream cursesBuffer(fileName);
main.cpp
@@ -321,8 +321,14 @@ int main() {
321
// Display results
322
interpreterOutput.flush();
323
interpreterOutput.close();
324
325
+ #if defined(__APPLE__) || defined(__unix__)
326
displayMessage("Results printed to Output.txt\n\n"
327
"Press any key to quit. . .");
328
+ #else
329
+ displayMessage("Results printed to Output.txt\n\n");
330
+ #endif
331
332
333
waitForInput(); // Wait for user to press a key before exiting
334
0 commit comments