-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
Server Tooling & Methods
In the current code, hitting ctrl-C in the shell behaves differently on Windows than on Linux, and in neither does it cleanly exit multi-line mode the way it did in Linux version 1.8.
1) Capture ctrl-C at the "read from keyboard" step in Windows like we do in Linux and respond the same way in both;
2) Cleanly exit multi-line mode in both Linux and Windows the way we did in 1.8;
3) Decide whether ctrl-C should ever exit the shell (it does now) or if it should just cancel the current input line (if executed at an active prompt);
4) Decide what it should do if the shell is waiting for a response from the server.
- is related to
-
SERVER-2986 Mongo CLI responds poorly to the use of CTRL-C
- Closed
-
SERVER-32777 CTRL-C in shell during op should not exit the shell
- Closed
- related to
-
SERVER-7616 Assertion error in mongo shell
- Closed