:github_url: https://github.com/nyx-org/gaia .. _program_listing_file_dev_console_fbconsole.hpp: Program Listing for File fbconsole.hpp ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``dev/console/fbconsole.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "flanterm.h" #include "lib/charon.hpp" #include "posix/tty.hpp" #include namespace Gaia::Dev { class FbConsole : public Service { public: explicit FbConsole(Charon charon); void start(Service *provider) override; void puts(const char *s); void puts(const char *s, size_t n); void log_output(char c); void input(unsigned char c); void clear(); void create_dev(); const char *class_name() override { return "FbConsole"; } const char *name() override { return "FbConsole"; } Posix::TTY *tty; private: flanterm_context *ctx; CharonFramebuffer fb; bool enable_log; friend class FbOps; }; FbConsole *system_console(); } // namespace Gaia::Dev