diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-26 12:16:25 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-26 12:16:25 +0100 |
| commit | bdcc3d84e08a509a766a469a605a97419ec14c35 (patch) | |
| tree | 1b3a365581b37a7f0246629be6256f521daeae4e /Private/KernelKit/DebugOutput.hpp | |
| parent | 91c88797f7fa9dbb6cce12c14928a6fbd97d51b6 (diff) | |
Kernel/Bootloader: add CompilerKit/Version.hxx
- Rework BTextWriter class.
- Add BVersionString class.
- Worked on interrupts almost working!
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit/DebugOutput.hpp')
| -rw-r--r-- | Private/KernelKit/DebugOutput.hpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Private/KernelKit/DebugOutput.hpp b/Private/KernelKit/DebugOutput.hpp index 235163ac..9a3db2e8 100644 --- a/Private/KernelKit/DebugOutput.hpp +++ b/Private/KernelKit/DebugOutput.hpp @@ -13,6 +13,8 @@ #include <NewKit/OwnPtr.hpp> #include <NewKit/Stream.hpp> +#include "CompilerKit/CompilerKit.hpp" + namespace HCore { // @brief Emulates a VT100 terminal. class TerminalDevice final : public DeviceInterface<const Char *> { @@ -26,12 +28,17 @@ class TerminalDevice final : public DeviceInterface<const Char *> { /// @return string type (const char*) virtual const char *Name() const override { return ("TerminalDevice"); } - TerminalDevice &operator=(const TerminalDevice &) = default; - TerminalDevice(const TerminalDevice &) = default; + HCORE_COPY_DEFAULT(TerminalDevice); - static TerminalDevice Shared() noexcept; + static TerminalDevice &Shared() noexcept; }; +inline TerminalDevice &EndLine() { + TerminalDevice &selfTerm = TerminalDevice::Shared(); + selfTerm << "\n"; + return selfTerm; +} + namespace Detail { bool serial_init(); } |
