Kernel: Add bareboness possibility to set termios

This commit is contained in:
Bananymous
2023-05-16 19:22:10 +03:00
parent 82dcec9576
commit 1658e925f2
8 changed files with 198 additions and 2 deletions

View File

@@ -59,6 +59,8 @@ namespace Kernel
BAN::ErrorOr<BAN::String> working_directory() const;
BAN::ErrorOr<void> set_working_directory(BAN::StringView);
TTY& tty() { ASSERT(m_tty); return *m_tty; }
BAN::ErrorOr<void*> allocate(size_t);
void free(void*);

View File

@@ -10,6 +10,8 @@
#define SYS_FREE 8
#define SYS_SEEK 9
#define SYS_TELL 10
#define SYS_GET_TERMIOS 11
#define SYS_SET_TERMIOS 12
#include <kernel/Attributes.h>
#include <stdint.h>

View File

@@ -8,7 +8,6 @@
#include <kernel/Terminal/termios.h>
#include <kernel/Semaphore.h>
namespace Kernel
{
@@ -17,7 +16,8 @@ namespace Kernel
public:
TTY(TerminalDriver*);
void set_termios(const termios& termios) { m_termios = termios; }
void set_termios(const termios& termios) { m_termios = termios; }
termios get_termios() const { return m_termios; }
void set_font(const Kernel::Font&);
uint32_t height() const { return m_height; }