reorganising and screen clearing and whatnot
This commit is contained in:
11
terminal.c
11
terminal.c
@@ -5,6 +5,9 @@
|
||||
#include "util.h"
|
||||
|
||||
|
||||
#define ESCSEQ "\x1b["
|
||||
|
||||
|
||||
static struct termios entry_term;
|
||||
|
||||
|
||||
@@ -68,3 +71,11 @@ setup_terminal()
|
||||
atexit(disable_termraw);
|
||||
enable_termraw();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
display_clear()
|
||||
{
|
||||
write(STDOUT_FILENO, ESCSEQ "2J", 4);
|
||||
write(STDOUT_FILENO, ESCSEQ "H", 3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user