9 #if defined(EHS_OS_WINDOWS)
10 typedef void* ConsoleHdl;
11 #elif defined(EHS_OS_LINUX)
12 typedef int ConsoleHdl;
18 static ConsoleHdl hdlOut;
19 static ConsoleHdl hdlIn;
21 #if defined(EHS_OS_WINDOWS)
22 static bool isConsole;
35 static bool CanRead();
37 static bool CanWrite();
43 static void Write_32(
const Str_32& str,
const bool newLine =
true);
48 static void Write_16(
const Str_16& str,
const bool newLine =
true);
54 static void Write_8(
const Str_8& str,
const bool newLine =
true);
59 static Str_32 Read_32(
const UInt_64 bufferSize = 1024);
63 static Str_16 Read_16(
const UInt_64 bufferSize = 1024);
68 static Str_8 Read_8(
const UInt_64 bufferSize = 1024);
76 static void SetTitle_32(
const Str_32& title);
80 static void SetTitle_16(
const Str_16& title);
85 static void SetTitle_8(
const Str_8& title);
90 static Str_32 GetTitle_32();
94 static Str_16 GetTitle_16();
99 static Str_8 GetTitle_8();
103 static Vector<Str_32> GetArgs_32(
const UInt_64 bufferSize = 1024);
107 static Vector<Str_16> GetArgs_16(
const UInt_64 bufferSize = 1024);
111 static Vector<Str_8> GetArgs_8(
const UInt_64 bufferSize = 1024);