2021-06-27 21:25:29 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: Console.hpp
|
|
|
|
Date: 2021-6-9
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "EAnsiColor.hpp"
|
|
|
|
#include "ConsoleMessage.hpp"
|
|
|
|
|
|
|
|
namespace Aurora::Console
|
|
|
|
{
|
2021-09-06 10:58:08 +00:00
|
|
|
/// Writes a log message to the console subscribers and telemetry outputs
|
2021-06-27 21:25:29 +00:00
|
|
|
AUKN_SYM void WriteLine(const ConsoleMessage &msg);
|
2021-09-06 10:58:08 +00:00
|
|
|
|
2021-10-08 19:51:34 +00:00
|
|
|
/// Consider using the following function for asynchronous utf-8 processed line based input -
|
2021-11-05 17:34:23 +00:00
|
|
|
/// Hooks::SetCallbackAndDisableCmdProcessing(...)
|
2021-09-06 10:58:08 +00:00
|
|
|
AUKN_SYM AuUInt32 ReadStdIn(void *buffer, AuUInt32 length);
|
|
|
|
|
2021-11-05 17:34:23 +00:00
|
|
|
/// Consider using AuLog for general purpose use
|
|
|
|
AUKN_SYM AuUInt32 WriteStdOut(const void *buffer, AuUInt32 length);
|
2021-09-06 10:58:08 +00:00
|
|
|
|
2021-11-05 17:34:23 +00:00
|
|
|
/**
|
|
|
|
* Simulates a processed stdin line given a UTF8 string
|
|
|
|
*/
|
|
|
|
AUKN_SYM bool DispatchRawLine(const AuString &string);
|
|
|
|
|
2021-09-06 10:58:08 +00:00
|
|
|
AUKN_SYM void OpenLateStd();
|
|
|
|
AUKN_SYM void OpenLateGUI();
|
2021-06-27 21:25:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#include "Commands/Commands.hpp"
|
|
|
|
#include "Hooks/Hooks.hpp"
|
|
|
|
#include "Logging/Logging.hpp"
|