Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4460

Improve ctrl-C handling in the 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.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            tad Tad Marshall
            Votes:
            14 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: