console: add note about typing exit to exit #23602 (#1532)

* add explicit note about typing exit in console

* Add note about typing exit as alternative

Co-authored-by: Thad Guidry <thadguidry@gmail.com>
This commit is contained in:
Daniel Liu 2025-10-08 12:22:52 +08:00 committed by GitHub
parent 271687e463
commit 5e9db6066d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ at block: 0 ({{niltime}})
datadir: {{.Datadir}}
modules: {{apis}}
To exit, press ctrl-d
To exit, press ctrl-d or type exit
> {{.InputLine "exit"}}
`)
XDC.ExpectExit()
@ -156,7 +156,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()

View file

@ -320,7 +320,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)
}