Shell: Accept '\r' as enter

This happens with some terminals and i don't want to bother with fixing
my termios :D
This commit is contained in:
Bananymous 2025-06-02 11:42:06 +03:00
parent fac742c038
commit fdcb38ac1f
1 changed files with 1 additions and 0 deletions

View File

@ -500,6 +500,7 @@ BAN::Optional<BAN::String> Input::get_input(BAN::Optional<BAN::StringView> custo
fflush(stdout); fflush(stdout);
break; break;
case '\n': case '\n':
case '\r':
{ {
BAN::String input; BAN::String input;
MUST(input.append(m_buffers[m_buffer_index])); MUST(input.append(m_buffers[m_buffer_index]));