--- lbbs/src/screen.c 2025/05/10 15:23:42 1.44 +++ lbbs/src/screen.c 2025/05/11 11:33:44 1.45 @@ -119,11 +119,11 @@ static int _str_input(char *buffer, int igetch(1); // Cleanup remaining '\n' in the buffer break; } - else if (c == KEY_TIMEOUT) + else if (c == KEY_TIMEOUT || c == KEY_NULL) // timeout or broken pipe { return -1; } - else if (c == KEY_NULL || c == LF) + else if (c == LF || c == '\0') { continue; }