Interpret 8 as 127 (#510)

This resolves:
https://github.com/ArthurSonzogni/FTXUI/issues/508

Apparently, this is a common issue:
https://www.cs.colostate.edu/~mcrob/toolbox/unix/keyboard.html
This commit is contained in:
Arthur Sonzogni (slow/sick)
2022-11-17 22:16:25 +01:00
committed by GitHub
parent 1689802349
commit 2c5681ee20
2 changed files with 5 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ const std::map<std::string, std::string> g_uniformize = {{
// See https://github.com/ArthurSonzogni/FTXUI/issues/337
// Here, we uniformize the new line character to `\n`.
{"\r", "\n"},
// See: https://github.com/ArthurSonzogni/FTXUI/issues/508
{std::string({8}), std::string({127})},
}};
TerminalInputParser::TerminalInputParser(Sender<Task> out)