Kernel: TTY now stores foreground process pid
this will be process pgid when we have process groups
This commit is contained in:
@@ -23,6 +23,9 @@ namespace Kernel
|
||||
uint32_t height() const { return m_height; }
|
||||
uint32_t width() const { return m_width; }
|
||||
|
||||
void set_foreground_process(pid_t pgid) { m_foreground_process = pgid; }
|
||||
pid_t foreground_process() const { return m_foreground_process; }
|
||||
|
||||
// for kprint
|
||||
static void putchar_current(uint8_t ch);
|
||||
static bool is_initialized();
|
||||
@@ -94,6 +97,8 @@ namespace Kernel
|
||||
TerminalDriver::Color m_foreground { TerminalColor::BRIGHT_WHITE };
|
||||
TerminalDriver::Color m_background { TerminalColor::BLACK };
|
||||
|
||||
pid_t m_foreground_process { 0 };
|
||||
|
||||
termios m_termios;
|
||||
|
||||
struct Buffer
|
||||
|
||||
Reference in New Issue
Block a user