2 * Text edition support code
9 #error This file is for text-mode editions only.
20 #include "cons.saver.h"
23 char *default_edition_colors
=
24 "normal=lightgray,blue:"
25 "selected=black,cyan:"
27 "markselect=yellow,cyan:"
30 "reverse=black,lightgray:"
31 "dnormal=black,lightgray:"
33 "dhotnormal=yellow,lightgray:"
34 "dhotfocus=yellow,cyan:"
35 "viewunderline=brightred,blue:"
36 "menuhot=yellow,cyan:"
37 "menusel=white,black:"
38 "menuhotsel=yellow,black:"
39 "helpnormal=black,lightgray:"
40 "helpitalic=red,lightgray:"
41 "helpbold=blue,lightgray:"
42 "helplink=black,cyan:"
43 "helpslink=yellow,blue:"
46 "directory=white,blue:"
47 "executable=brightgreen,blue:"
48 "link=lightgray,blue:"
49 "stalledlink=brightred,blue:"
50 "device=brightmagenta,blue:"
53 "editnormal=lightgray,blue:"
54 "editbold=yellow,blue:"
55 "editmarked=black,cyan";
58 edition_post_exec (void)
62 /* FIXME: Missing on slang endwin? */
66 keypad (stdscr
, TRUE
);
71 if (alternate_plus_minus
)
72 application_keypad_mode ();
76 edition_pre_exec (void)
78 if (clear_before_exec
)
81 if (!(console_flag
|| xterm_flag
))
90 keypad (stdscr
, FALSE
);
93 numeric_keypad_mode ();
95 /* on xterms: maybe endwin did not leave the terminal on the shell
96 * screen page: do it now.
98 * Do not move this before endwin: in some systems rmcup includes
99 * a call to clear screen, so it will end up clearing the sheel screen.
101 if (!status_using_ncurses
){
110 dlg_erase (midnight_dlg
);