HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
console.hpp
1// Copyright Take Vos 2020-2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include <string_view>
8#include <iostream>
9#include <format>
10
11namespace tt {
12
15void console_start() noexcept;
16
24void console_output(std::string_view text, std::ostream &output=std::cout) noexcept;
25
32template<typename... Args>
33void print(char const *fmt, Args const &... args) noexcept
34{
35 console_output(std::format(fmt, args...));
36}
37
38}
STL namespace.