diff --git a/bbs.c b/bbs.c index 698e261..5f3dd53 100644 --- a/bbs.c +++ b/bbs.c @@ -240,7 +240,8 @@ char s_getchar() { } }*/ } while (c == '\n'); - usertimeout = 10; + usertimeout = 10; + return (char)c; } diff --git a/main.c b/main.c index 14edc27..35e15cf 100644 --- a/main.c +++ b/main.c @@ -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); }