21 using std::string_view;
22 using std::unique_ptr;
29 unique_ptr<Console::Logger> Console::logger;
31 void Console::setLogger(
Logger* logger) {
38 SetConsoleOutputCP(65001);
88 while (cin.eof() ==
false && getline(cin, line)) {
96 vector<string> result;
98 while (cin.eof() ==
false && getline(cin, line)) {
100 result.push_back(line);
static void printLine()
Print newline to console.
static void initialize()
Initialize.
static const string readAll()
Read all input from console into string.
static MINITSCRIPT_STATIC_DLL_IMPEXT unique_ptr< Logger > logger
static const vector< string > readAllAsArray()
Read all input from console into string vector.
static void print(const string_view &str)
Print given string without trainling newline to console.
static const string readLine()
Read line from console.