From 2f80a7571e8d8ae50b309769f66763c8611a93ef Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Wed, 4 Jan 2023 20:45:18 -0700 Subject: [PATCH] Comment more --- system/src/riju-pty.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system/src/riju-pty.c b/system/src/riju-pty.c index 8dc4059..0db7231 100644 --- a/system/src/riju-pty.c +++ b/system/src/riju-pty.c @@ -14,6 +14,14 @@ #include #include +// This implementation is largely cribbed from +// https://viewsourcecode.org/snaptoken/kilo/02.enteringRawMode.html +// +// Known issue: tty attached to stdin is not configured quite right, +// and entering a line of more than 80 characters causes buggy +// wraparound. This does not affect output sent to stdout from the +// subprocess. + void __attribute__((noreturn)) die(char *msg) { fprintf(stderr, "%s (errno %d)\n", msg, errno);