From 9db7ae25d79b4deeac62b3a757be789ad9dad12b Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Thu, 10 Oct 2002 19:46:11 +0000 Subject: [PATCH] try to work around abook_readline() misbehavior on Solaris --- BUGS | 3 ++- abook_rl.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.2