From 553b43d2e563dcff74d4c86904fa3737e96d7365 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 19 Mar 2024 01:41:22 +0100 Subject: IRC: Add the IRC client I am working on --- userland/terminal/term.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'userland/terminal') diff --git a/userland/terminal/term.c b/userland/terminal/term.c index 62aaa55..b734bb5 100644 --- a/userland/terminal/term.c +++ b/userland/terminal/term.c @@ -248,7 +248,12 @@ void run() { if (0 == e.ev.c) { continue; } - write(cmdfd, &e.ev.c, 1); + char c = e.ev.c; + int ctrl_down = (1 == ((e.ev.mode >> 2) & 1)); + if (ctrl_down) { + c &= 0x1f; + } + write(cmdfd, &c, 1); } } } -- cgit v1.2.3