mirror of https://github.com/fairyglade/ly.git
have ncurses handle interrupt characters
As it was, didn't handle ^\ SIGQUIT or ^Z SIGTSTP.
This commit is contained in:
parent
5a01a6e38f
commit
1f1bcc9e76
|
@ -9,7 +9,6 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <linux/vt.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
/* ncurses */
|
||||
#include <form.h>
|
||||
/* pam */
|
||||
|
@ -46,9 +45,6 @@ int main(void)
|
|||
char* username;
|
||||
char* password;
|
||||
char* cmd;
|
||||
/* prevents CTRL+C from killing the process */
|
||||
signal(SIGINT, SIG_IGN);
|
||||
signal(SIGHUP, SIG_IGN);
|
||||
/* gets desktop entries */
|
||||
de_list = list_de();
|
||||
de_props = de_list->props;
|
||||
|
|
|
@ -30,7 +30,7 @@ void init_ncurses(FILE* desc)
|
|||
ioctl(filedesc, VT_WAITACTIVE, LY_CONSOLE_TTY);
|
||||
/* ncurses startup */
|
||||
initscr();
|
||||
cbreak();
|
||||
raw();
|
||||
noecho();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue