diff options
author | James Booth <boothj5@gmail.com> | 2012-10-05 00:42:02 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-10-05 00:42:02 +0100 |
commit | 8ecd93049f2125473cad3270928fde297bbf6f3b (patch) | |
tree | 06c8e7ef74b494940965cbaef2a8a579af57cd56 | |
parent | a6467e17c7bd7be398c2f096190f7aaee9ffe76b (diff) | |
download | profani-tty-8ecd93049f2125473cad3270928fde297bbf6f3b.tar.gz |
Set no blocking delay to 100ms
-rw-r--r-- | src/input_win.c | 2 | ||||
-rw-r--r-- | 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') { |