diff options
Diffstat (limited to 'dselect/basecmds.cc')
-rw-r--r-- | dselect/basecmds.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/dselect/basecmds.cc b/dselect/basecmds.cc index 85d2d7f96..e113fbbe6 100644 --- a/dselect/basecmds.cc +++ b/dselect/basecmds.cc @@ -21,14 +21,14 @@ #include <stdio.h> #include <string.h> -#include <ncurses.h> +#include <curses.h> #include <assert.h> #include <signal.h> extern "C" { -#include "config.h" -#include "dpkg.h" -#include "dpkg-db.h" +#include <config.h> +#include <dpkg.h> +#include <dpkg-db.h> } #include "dselect.h" #include "helpmsgs.h" @@ -97,11 +97,12 @@ void baselist::kd_searchagain() { void baselist::kd_search() { werase(querywin); mvwaddstr(querywin,0,0, "Search for ? "); - echo(); + echo(); /* fixme: ncurses documentation or implementation */ /* fixme: make / RET do `search again' and / DEL to abort */ if (wgetnstr(querywin,searchstring,sizeof(searchstring)-1) == ERR) searchstring[0]= 0; - noecho(); + raise(SIGWINCH); /* fixme: ncurses and xterm arrow keys */ + noecho(); /* fixme: ncurses */ if (whatinfo_height) { touchwin(whatinfowin); refreshinfo(); } else if (info_height) { touchwin(infopad); refreshinfo(); } else if (thisstate_height) redrawthisstate(); |