diff --git a/files.c b/files.c index 25bccf9..45cb369 100644 --- a/files.c +++ b/files.c @@ -368,7 +368,12 @@ void download(struct user_record *user) { sqlite3 *db; sqlite3_stmt *res; int rc; - + struct termios oldit; + struct termios oldot; + if (sshBBS) { + ttySetRaw(STDIN_FILENO, &oldit); + ttySetRaw(STDOUT_FILENO, &oldot); + } for (i=0;i