Skip to content

Commit

Permalink
Metrics UI: Tell Windows users how to stop zcashd
Browse files Browse the repository at this point in the history
Ctrl+C is not configured for Windows, as it does not work (yet):
microsoft/vscode#9347
microsoft/terminal#57
  • Loading branch information
str4d committed May 24, 2018
1 parent d308a42 commit a317ede
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,13 @@ void ThreadShowMetricsScreen()

if (isScreen) {
// Explain how to exit
std::cout << "[" << _("Press Ctrl+C to exit") << "] [" << _("Set 'showmetrics=0' to hide") << "]" << std::endl;
std::cout << "[";
#ifdef WIN32
std::cout << _("'zcash-cli.exe stop' to exit");
#else
std::cout << _("Press Ctrl+C to exit");
#endif
std::cout << "] [" << _("Set 'showmetrics=0' to hide") << "]" << std::endl;
} else {
// Print delineator
std::cout << "----------------------------------------" << std::endl;
Expand Down

0 comments on commit a317ede

Please sign in to comment.