Fixed some windows issues

This commit is contained in:
2024-12-06 16:27:19 +01:00
parent fd62fb822d
commit f73ca0eaec
4 changed files with 27 additions and 13 deletions

View File

@ -3,6 +3,10 @@
#include <istream>
#include <streambuf>
#ifdef _WIN32
#include <iostream>
#endif
namespace fsh::util
{
@ -16,7 +20,7 @@ namespace fsh::util
*/
void prepTerminal();
#if defined(__unix__) || defined(__APPLE__)
#ifndef _WIN32
class CursorIStreamBuffer : public std::streambuf {
public:
@ -52,9 +56,12 @@ public:
private:
CursorIStreamBuffer buffer;
};
extern CursorIStream cin;
#else
extern std::istream& cin;
#endif