[SERVER-4460] Improve ctrl-C handling in the shell Created: 08/Dec/11 Updated: 06/Dec/22 Resolved: 19/Nov/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Tad Marshall | Assignee: | Backlog - Server Tooling and Methods (STM) (Inactive) |
| Resolution: | Won't Fix | Votes: | 14 |
| Labels: | move-stm, platforms-re-triaged, polish | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Server Tooling & Methods
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
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; |
| Comments |
| Comment by Kelsey Schubert [ 05/Apr/21 ] |
|
Hi tukusejssirs@protonmail.com, For an improved UX, please check out our new shell, which is currently in beta. I've started using this new shell and appreciate the improvements we've made (pressing Ctrl+C once does not exit) and hope that you do too! Best, |
| Comment by Tukusej’s Sirs [ 30/Mar/21 ] |
|
I hope this issue is fixed soon. I am a MongoDB newbie and a long-time Linux user. I hate that every time I press Ctrl+C, it quits Mongo Shell. It makes me nervous and makes me try MongoDB no more. From UX point of view, this issue should be classified as severe UX bug. You should at least make it configurable. |
| Comment by Glenn Maynard [ 26/Mar/12 ] |
|
^C should start a new prompt, but it should never quit the shell; see GDB and Postgresql, for example. You should be able to press ^C to cancel input or a running operation, without worrying that you might accidentally terminate the shell. |
| Comment by auto [ 08/Dec/11 ] |
|
Author: {u'login': u'', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: Repair the incorrect edit I made in "code cleanup" by moving the space |
| Comment by auto [ 08/Dec/11 ] |
|
Author: {u'login': u'', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: Repair the incorrect edit I made in "code cleanup" by moving the space |