Terminal: Use pseudo terminal instead of pipes

Terminal can now send signals from keyboard (ctrl+c) to programs running
in the terminal!
This commit is contained in:
2024-08-11 01:01:05 +03:00
parent 4d1b32f770
commit 9e79ef2a91
2 changed files with 34 additions and 42 deletions

View File

@@ -16,7 +16,7 @@ private:
void handle_csi(char ch);
void handle_sgr();
void putchar(uint8_t ch);
bool read_shell(int fd);
bool read_shell();
void on_key_event(LibGUI::EventPacket::KeyEvent);
@@ -31,9 +31,7 @@ private:
struct ShellInfo
{
int in;
int out;
int err;
int pts_master;
pid_t pid;
};