From: Jaakko Heinonen Date: Thu, 10 Oct 2002 19:46:11 +0000 (+0000) Subject: try to work around abook_readline() misbehavior on Solaris X-Git-Tag: upstream/0.6.1~2^2~269 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=9db7ae25d79b4deeac62b3a757be789ad9dad12b;p=pkg%2Fabook.git try to work around abook_readline() misbehavior on Solaris --- diff --git a/BUGS b/BUGS index 8db2742..1ab411c 100644 --- a/BUGS +++ b/BUGS @@ -8,4 +8,5 @@ known bugs in abook aliases misc: -* cursor dissappears in some cases with abook_readline() on Solaris +* Cursor disappears in some cases with abook_readline() on Solaris. If + you have problems it is recommended to use ncurses library diff --git a/abook_rl.c b/abook_rl.c index f5d05ca..f6877f1 100644 --- a/abook_rl.c +++ b/abook_rl.c @@ -118,7 +118,9 @@ abook_readline(WINDOW *w, int y, int x, char *s, int limit, bool use_completion) if(s && *s) add_history(s); + nocbreak(); ret = readline(NULL); + cbreak(); if(rl_cancelled && ret) { free(ret);