diff options
author | Anton Kling <anton@kling.gg> | 2024-03-19 01:41:22 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-03-19 01:41:22 +0100 |
commit | 553b43d2e563dcff74d4c86904fa3737e96d7365 (patch) | |
tree | 002b70c9d919b8a18a95bb5754c57db897b5977e /userland/terminal | |
parent | 0dccff86e50dfe1555b8bc29862dba2b972a3705 (diff) |
IRC: Add the IRC client I am working on
Diffstat (limited to 'userland/terminal')
-rw-r--r-- | userland/terminal/term.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); } } } |