forked from Bananymous/banan-os
update main #1
|
@ -833,6 +833,8 @@ int main(int argc, char** argv)
|
|||
if (signal(SIGINT, [](int) {}) == SIG_ERR)
|
||||
perror("signal");
|
||||
|
||||
tcgetattr(0, &old_termios);
|
||||
|
||||
{
|
||||
FILE* fp = fopen("/etc/hostname", "r");
|
||||
if (fp != NULL)
|
||||
|
@ -876,8 +878,6 @@ int main(int argc, char** argv)
|
|||
|
||||
source_shellrc();
|
||||
|
||||
tcgetattr(0, &old_termios);
|
||||
|
||||
new_termios = old_termios;
|
||||
new_termios.c_lflag &= ~(ECHO | ICANON);
|
||||
tcsetattr(0, TCSANOW, &new_termios);
|
||||
|
|
Loading…
Reference in New Issue