From 1b5edcabec0ce8931c581884b25606b92ac72885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 9 Jun 2016 11:08:04 +0200 Subject: [PATCH] posix shell: avoid printing non-printable characters (like Ctrl-C) --- src/platforms/posix/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/platforms/posix/main.cpp b/src/platforms/posix/main.cpp index 4d6791fdf4..fb5b7fe751 100644 --- a/src/platforms/posix/main.cpp +++ b/src/platforms/posix/main.cpp @@ -373,8 +373,10 @@ int main(int argc, char **argv) } default: // any other input - cout << c; - mystr += c; + if (c > 3) { + cout << c; + mystr += c; + } break; } }