Commit d5a84e9b authored by Adam Wujek's avatar Adam Wujek 💬

shell: add 10 as a newline

It looks like in spec-vuart newline is somehow translated from 10 to 13
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 95803d11
......@@ -37,6 +37,7 @@
#define KEY_LEFT (ESCAPE_FLAG | 68)
#define KEY_RIGHT (ESCAPE_FLAG | 67)
#define KEY_ENTER (13)
#define KEY_ENTER10 (10)
#define KEY_ESCAPE (27)
#define KEY_BACKSPACE (127)
#define KEY_DELETE (126)
......@@ -200,6 +201,7 @@ int shell_interactive()
break;
case KEY_ENTER:
case KEY_ENTER10:
pp_printf("\n");
state = SH_EXEC;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment