From 9a76830ca8571d250778e1df0e2bede02109e5a3 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sun, 21 Apr 2013 17:31:11 +0200 Subject: [PATCH] iohelpers: correctly ask questions on stderr --- src/iohelpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iohelpers.h b/src/iohelpers.h index 7789d94..19b08b6 100644 --- a/src/iohelpers.h +++ b/src/iohelpers.h @@ -34,7 +34,7 @@ #define erreol std::cerr << std::endl #define progerr(x) std::cerr << argv[0] << ": " << x << std::endl -#define ask_for_yes(ok,x) do {std::cout << x << " (y/n): "; \ +#define ask_for_yes(ok,x) do {std::cerr << x << " (y/n): "; \ std::string answer; std::cin >> answer; \ ok=(answer=="y");} while(0)