Comment more
This commit is contained in:
parent
367ea28273
commit
2f80a7571e
|
@ -14,6 +14,14 @@
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <unistd.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)
|
void __attribute__((noreturn)) die(char *msg)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s (errno %d)\n", msg, errno);
|
fprintf(stderr, "%s (errno %d)\n", msg, errno);
|
||||||
|
|
Loading…
Reference in New Issue