mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 02:17:07 +08:00
posix shell: avoid printing non-printable characters (like Ctrl-C)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user