Comment more

This commit is contained in:
Radon Rosborough 2023-01-04 20:45:18 -07:00
parent 367ea28273
commit 2f80a7571e
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@
#include <termios.h>
#include <unistd.h>
// 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);