From 70e4d16768b4035d404ded8462968f6a051a69fc Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 24 Jul 2015 12:51:52 -0400 Subject: [PATCH] util: Sends all read input to debug output --- src/util.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index c78384262..d2d55d5a7 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -76,6 +76,7 @@ bool confirm (const std::string& question) std::string answer {""}; std::getline (std::cin, answer); + context.debug ("STDIN '" + answer + "'"); answer = std::cin.eof() ? STRING_UTIL_CONFIRM_NO : lowerCase (trim (answer)); autoComplete (answer, options, matches, 1); // Hard-coded 1. @@ -112,6 +113,7 @@ int confirm4 (const std::string& question) std::string answer {""}; std::getline (std::cin, answer); + context.debug ("STDIN '" + answer + "'"); answer = trim (answer); autoComplete (answer, options, matches, 1); // Hard-coded 1. }