Merge github.com:vysheng/tg
This commit is contained in:
commit
cf6cb90230
@ -43,7 +43,7 @@ On gentoo:
|
|||||||
|
|
||||||
On Fedora:
|
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:
|
On Archlinux:
|
||||||
|
|
||||||
@ -78,12 +78,7 @@ The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/rea
|
|||||||
|
|
||||||
If using [Homebrew](http://brew.sh/):
|
If using [Homebrew](http://brew.sh/):
|
||||||
|
|
||||||
brew install libconfig
|
brew install libconfig readline lua python libevent jansson
|
||||||
brew install readline
|
|
||||||
brew install lua
|
|
||||||
brew install python
|
|
||||||
brew install libevent
|
|
||||||
brew install jansson
|
|
||||||
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include"
|
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"
|
export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.3.8/lib"
|
||||||
./configure && make
|
./configure && make
|
||||||
|
@ -560,7 +560,10 @@ void set_prompt (const char *s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void update_prompt (void) {
|
void update_prompt (void) {
|
||||||
if (readline_disabled) { return; }
|
if (readline_disabled) {
|
||||||
|
fflush (stdout);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (read_one_string) { return; }
|
if (read_one_string) { return; }
|
||||||
print_start ();
|
print_start ();
|
||||||
set_prompt (get_default_prompt ());
|
set_prompt (get_default_prompt ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user