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:
parent
fac742c038
commit
fdcb38ac1f
|
@ -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]));
|
||||||
|
|
Loading…
Reference in New Issue