unbuffer stdio

This commit is contained in:
Andrew Pamment 2016-08-07 13:02:51 +10:00
parent c6b92d60e7
commit d5312f78cf
2 changed files with 3 additions and 1 deletions

3
bbs.c
View File

@ -240,7 +240,8 @@ char s_getchar() {
}
}*/
} while (c == '\n');
usertimeout = 10;
usertimeout = 10;
return (char)c;
}

1
main.c
View File

@ -556,6 +556,7 @@ void serverssh(int port) {
bbs_pid = forkpty(&fd, NULL, NULL, NULL);
if (bbs_pid == 0) {
setvbuf(stdin,NULL,_IONBF,0);
runbbs_ssh(ip);
exit(0);
}