- echo(); // We want to have echo
- curs_set(1); // We want to see the cursor again
- endwin(); // Back to normal
+ else if(key == KEY_UP || key == '\10') {
+ if(line > 0) {
+ line--;
+ }
+ }
+
+ else if(key == KEY_DOWN || key == '\ e') {
+ line++;
+ }
+
+ build_display(&screen_line, &line, nb_lines, lines, regexp);
+ } while(key != '\n' && key != KEY_ENTER && key != '\a');
+
+ echo();
+ curs_set(1);
+ endwin();