]> git.deb.at Git - pkg/abook.git/commitdiff
try to work around abook_readline() misbehavior on Solaris
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Thu, 10 Oct 2002 19:46:11 +0000 (19:46 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Thu, 10 Oct 2002 19:46:11 +0000 (19:46 +0000)
BUGS
abook_rl.c

diff --git a/BUGS b/BUGS
index 8db2742cc6786e3e31e85831c11276b4d5968f5e..1ab411cc24f9a1c65d195a649b3beb1fcc15d4aa 100644 (file)
--- 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
index f5d05ca69662ced96589f565702da2d8a77191ed..f6877f10625b1ebd75c37692f0d0e019c8fd7d40 100644 (file)
@@ -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);