Add a display server and graphical user interface #38

Merged
apio merged 103 commits from display-server into main 2023-09-20 18:49:21 +00:00
Showing only changes of commit 0cb21c2e90 - Show all commits

View File

@ -135,14 +135,9 @@ Result<ui::EventResult> TerminalWidget::handle_key_event(const ui::KeyEventReque
{
if (!(m_settings.c_lflag & NOFLSH)) m_line_buffer.clear();
// FIXME: Send SIGINT.
/*if (m_foreground_process_group.has_value())
{
Scheduler::for_each_in_process_group(m_foreground_process_group.value(), [](Thread* thread) {
thread->send_signal(SIGINT);
return true;
});
}*/
pid_t group = tcgetpgrp(m_pty);
TRY(os::Process::kill(-group, SIGINT));
is_special_character = true;
}
@ -150,14 +145,9 @@ Result<ui::EventResult> TerminalWidget::handle_key_event(const ui::KeyEventReque
{
if (!(m_settings.c_lflag & NOFLSH)) m_line_buffer.clear();
// FIXME: Send SIGINT.
/*if (m_foreground_process_group.has_value())
{
Scheduler::for_each_in_process_group(m_foreground_process_group.value(), [](Thread* thread) {
thread->send_signal(SIGQUIT);
return true;
});
}*/
pid_t group = tcgetpgrp(m_pty);
TRY(os::Process::kill(-group, SIGQUIT));
is_special_character = true;
}
}
@ -598,5 +588,5 @@ void TerminalWidget::put_code_point(wchar_t c)
void TerminalWidget::quit()
{
kill(m_child_pid, SIGHUP);
kill(-tcgetpgrp(m_pty), SIGHUP);
}