terminal: clarify Ctrl-C options with multiclient servers

Fixes #2028
This commit is contained in:
aarzilli 2020-04-26 17:40:42 +02:00 committed by Derek Parker
parent 3e04ad0fad
commit 6102c31d6d

@ -132,14 +132,14 @@ func (t *Term) sigintGuard(ch <-chan os.Signal, multiClient bool) {
continue
}
if multiClient {
answer, err := t.line.Prompt("Would you like to [s]top the target or [q]uit this client, leaving the target running [s/q]? ")
answer, err := t.line.Prompt("Would you like to [p]ause the target (returning to Delve's prompt) or [q]uit this client (leaving the target running) [p/q]? ")
if err != nil {
fmt.Fprintf(os.Stderr, "%v", err)
continue
}
answer = strings.TrimSpace(answer)
switch answer {
case "s":
case "p":
_, err := t.client.Halt()
if err != nil {
fmt.Fprintf(os.Stderr, "%v", err)