Arthur Sonzogni 2022-12-19 20:00:03 +01:00 committed by GitHub
parent 0542227ba7
commit a52b959f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@
namespace ftxui { namespace ftxui {
// NOLINTNEXTLINE // NOLINTNEXTLINE
const std::map<std::string, std::string> g_uniformize = {{ const std::map<std::string, std::string> g_uniformize = {
// Microsoft's terminal uses a different new line character for the return // Microsoft's terminal uses a different new line character for the return
// key. This also happens with linux with the `bind` command: // key. This also happens with linux with the `bind` command:
// See https://github.com/ArthurSonzogni/FTXUI/issues/337 // See https://github.com/ArthurSonzogni/FTXUI/issues/337
@ -21,7 +21,7 @@ const std::map<std::string, std::string> g_uniformize = {{
{"\r", "\n"}, {"\r", "\n"},
// See: https://github.com/ArthurSonzogni/FTXUI/issues/508 // See: https://github.com/ArthurSonzogni/FTXUI/issues/508
{std::string({8}), std::string({127})}, {std::string({8}), std::string({127})},
}}; };
TerminalInputParser::TerminalInputParser(Sender<Task> out) TerminalInputParser::TerminalInputParser(Sender<Task> out)
: out_(std::move(out)) {} : out_(std::move(out)) {}