From 8ecd93049f2125473cad3270928fde297bbf6f3b Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 5 Oct 2012 00:42:02 +0100 Subject: Set no blocking delay to 100ms --- src/input_win.c | 2 +- src/profanity.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/input_win.c b/src/input_win.c index 308d4046..15f095bf 100644 --- a/src/input_win.c +++ b/src/input_win.c @@ -110,7 +110,7 @@ inp_clear(void) void inp_non_block(void) { - wtimeout(inp_win, 20); + wtimeout(inp_win, 100); } void diff --git a/src/profanity.c b/src/profanity.c index 329acb70..521b277e 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -55,10 +55,12 @@ prof_run(const int disable_tls, char *log_level) GTimer *timer = g_timer_new(); gboolean cmd_result = TRUE; + char inp[INP_WIN_MAX]; + int size = 0; + while(cmd_result == TRUE) { int ch = ERR; - char inp[INP_WIN_MAX]; - int size = 0; + size = 0; while(ch != '\n') { -- cgit 1.4.1-2-gfad0