From 4d0629d30c57843a1a3f479a5be411dfdbb1768e Mon Sep 17 00:00:00 2001 From: Thad Guidry Date: Sun, 19 Sep 2021 10:28:46 -0500 Subject: [PATCH 1/2] add explicit note about typing exit in console --- cmd/geth/consolecmd_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/geth/consolecmd_test.go b/cmd/geth/consolecmd_test.go index c3f41b187c42..845ede2f9cbd 100644 --- a/cmd/geth/consolecmd_test.go +++ b/cmd/geth/consolecmd_test.go @@ -75,7 +75,7 @@ at block: 0 ({{niltime}}) datadir: {{.Datadir}} modules: {{apis}} -To exit, press ctrl-d +To exit, press ctrl-d or type exit > {{.InputLine "exit"}} `) geth.ExpectExit() @@ -149,7 +149,7 @@ at block: 0 ({{niltime}}){{if ipc}} datadir: {{datadir}}{{end}} modules: {{apis}} -To exit, press ctrl-d +To exit, press ctrl-d or type exit > {{.InputLine "exit" }} `) attach.ExpectExit() From 123eff48db9f266f92d12011465f3b01264272ab Mon Sep 17 00:00:00 2001 From: Thad Guidry Date: Sun, 19 Sep 2021 10:33:33 -0500 Subject: [PATCH 2/2] Add note about typing exit as alternative --- console/console.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/console.go b/console/console.go index ae9f28da0486..dd39300d0ac1 100644 --- a/console/console.go +++ b/console/console.go @@ -324,7 +324,7 @@ func (c *Console) Welcome() { sort.Strings(modules) message += " modules: " + strings.Join(modules, " ") + "\n" } - message += "\nTo exit, press ctrl-d" + message += "\nTo exit, press ctrl-d or type exit" fmt.Fprintln(c.printer, message) }