From 4f2aa7d436bb50cef3f9a551f79fa03ea275ab77 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Tue, 17 Apr 2001 00:46:47 +0000 Subject: POUEEEEEEEEEEEEEET --- lib/terminal.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/terminal.c') diff --git a/lib/terminal.c b/lib/terminal.c index ace1302..adc2a49 100644 --- a/lib/terminal.c +++ b/lib/terminal.c @@ -9,7 +9,8 @@ FILE *input; struct termios initial_settings, new_settings; -void initterm(void) { +void initterm(void) +{ tcgetattr(fileno(input), &initial_settings); new_settings = initial_settings; new_settings.c_lflag &= ~ICANON; @@ -24,11 +25,13 @@ void initterm(void) { } -void clearterm(void) { +void clearterm(void) +{ tcsetattr(fileno(input), TCSANOW, &initial_settings); } -void openterm(void) { +void openterm(void) +{ if (!(input = fopen("/dev/tty", "r"))) { exception(1, _("could not open terminal")); } -- cgit v1.2.3