Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurrium committed Dec 15, 2022
1 parent dd2dfcb commit 2fda903
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kilo.c
@@ -1,12 +1,18 @@
/*** includes ***/

#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>

/*** data ***/

struct termios orig_termios;

/*** terminal ***/

void die(const char *s) {
perror(s);
exit(1);
Expand All @@ -31,6 +37,8 @@ void enableRawMode() {
if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw) == -1) die("tcsetattr");
}

/*** init ***/

int main() {
enableRawMode();

Expand Down

0 comments on commit 2fda903

Please sign in to comment.