:: commit 0304683c0fab34b611cbc66e15299dc965ea9782

pitust <piotr@stelmaszek.com> — 2024-01-11 18:43

parents: 9e19370689

readline: handle ASCII newline the same as a carriage return

diff --git a/common/lib/readline.c b/common/lib/readline.c
index 1a03d9dc..dd5f2599 100644
--- a/common/lib/readline.c
+++ b/common/lib/readline.c
@@ -73,6 +73,7 @@ int getchar_internal(uint8_t scancode, uint8_t ascii, uint32_t shift_state) {
 #endif
     }
     switch (ascii) {
+        case '\n':
         case '\r':
             return '\n';
         case '\b':
tab: 248 wrap: offon