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 /src/profanity.c | |
parent | a6467e17c7bd7be398c2f096190f7aaee9ffe76b (diff) | |
download | profani-tty-8ecd93049f2125473cad3270928fde297bbf6f3b.tar.gz |
Set no blocking delay to 100ms
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 6 |
1 files changed, 4 insertions, 2 deletions
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') { |