From 2456eb80aed6755ec583629d9808fd74fa93786c Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 18 Apr 2018 03:46:43 +0100 Subject: [PATCH] Metrics UI: Tell Windows users how to stop zcashd Ctrl+C is not configured for Windows, as it does not work (yet): https://github.com/Microsoft/vscode/issues/9347 https://github.com/Microsoft/console/issues/57 --- src/metrics.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/metrics.cpp b/src/metrics.cpp index 6dede3929..5887048ad 100644 --- a/src/metrics.cpp +++ b/src/metrics.cpp @@ -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;