AuroraRuntime/Source/Console/ConsoleStd/ConsoleStd.hpp

38 lines
885 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: ConsoleStd.hpp
Date: 2021-6-8
Author: Reece
***/
#pragma once
namespace Aurora::Console::ConsoleStd
{
void Init();
void Pump();
void Exit();
void Flush();
void Start();
AuSPtr<AuLoop::ILoopSource> GetLoopSource();
AuSPtr<AuLoop::ILoopSource> GetLoopSourceConTTY();
AuUInt32 WriteStdOutBlocking2(const void *data, AuUInt32 length);
void Lock();
void Unlock();
AuUInt32 ReadStdIn(void *data, AuUInt32 length);
AuUInt32 WriteStdOut(const void *data, AuUInt32 length);
void WriteStdOut(AuUInt8 level, const ConsoleMessage &msg, const AuString &formatted);
inline bool gSupportsColorOutput { true };
AuLoop::ILSEvent* GetConTTYEvent();
#if defined(AURORA_IS_MODERNNT_DERIVED)
void ProcessCanonical(HANDLE h);
#endif
}