From d3ffa5b2a3fcb3a722770aabb8e17506b0d66ddc Mon Sep 17 00:00:00 2001 From: Ilya Kovalenko Date: Sat, 27 Jun 2015 14:56:05 +0700 Subject: [PATCH 1/3] Unnecessary brew installs Brew can do it inline. --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 1ecbfa0..e1e3a51 100644 --- a/README.md +++ b/README.md @@ -78,12 +78,7 @@ The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/rea If using [Homebrew](http://brew.sh/): - brew install libconfig - brew install readline - brew install lua - brew install python - brew install libevent - brew install jansson + brew install libconfig readline lua python libevent jansson export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include" export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.3.8/lib" ./configure && make From 708b2ee432fe264093b0160abadc8f1ad4971fb5 Mon Sep 17 00:00:00 2001 From: JLarky Date: Mon, 29 Jun 2015 19:52:17 -0700 Subject: [PATCH 2/3] do fflush instead of readline when readline is disabled. - fixes issue when output is getting buffered and is not sent until message is received or program has stopped - I used this answer http://stackoverflow.com/a/1716621/74167 for solution --- interface.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface.c b/interface.c index ed6b58c..ea5f4a1 100644 --- a/interface.c +++ b/interface.c @@ -560,7 +560,10 @@ void set_prompt (const char *s) { } void update_prompt (void) { - if (readline_disabled) { return; } + if (readline_disabled) { + fflush (stdout); + return; + } if (read_one_string) { return; } print_start (); set_prompt (get_default_prompt ()); From ba51b8e0790ecacbf4b7d503916806d5ef69ef8d Mon Sep 17 00:00:00 2001 From: Samuel Date: Thu, 2 Jul 2015 10:11:20 +0200 Subject: [PATCH 3/3] Updates Fedora install guide Replaces `yum` with `dnf`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ecbfa0..bdb5569 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ On gentoo: On Fedora: - sudo yum install lua-devel openssl-devel libconfig-devel readline-devel libevent-devel libjansson-devel python-devel + sudo dnf install lua-devel openssl-devel libconfig-devel readline-devel libevent-devel libjansson-devel python-devel On Archlinux: