From 20c5fc1767436ee106156a9aabf6545e72a4b519 Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Thu, 10 Dec 2015 01:02:02 +0100 Subject: Use custom function to feed console instead of trying to be clever and capturing stdout. This fixes IO on Windows 8 and Windows 10. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 99793f3..f0172da 100644 --- a/src/main.c +++ b/src/main.c @@ -77,7 +77,7 @@ static bool BarMainGetLoginCredentials (BarSettings_t *settings, BarUiMsg (settings, MSG_QUESTION, "Password: "); BarReadlineStr (passBuf, sizeof (passBuf), rl, BAR_RL_NOECHO); /* write missing newline */ - puts (""); + BarConsolePuts(""); settings->password = strdup (passBuf); } else { //pid_t chld; -- cgit v1.2.3