2 * Text edition support code
17 #include "cons.saver.h"
20 char *default_edition_colors
=
21 "normal=lightgray,blue:"
22 "selected=black,cyan:"
24 "markselect=yellow,cyan:"
27 "reverse=black,lightgray:"
28 "dnormal=black,lightgray:"
30 "dhotnormal=yellow,lightgray:"
31 "dhotfocus=yellow,cyan:"
32 "viewunderline=brightred,blue:"
33 "menuhot=yellow,cyan:"
34 "menusel=white,black:"
35 "menuhotsel=yellow,black:"
36 "helpnormal=black,lightgray:"
37 "helpitalic=red,lightgray:"
38 "helpbold=blue,lightgray:"
39 "helplink=black,cyan:"
40 "helpslink=yellow,blue:"
43 "directory=white,blue:"
44 "executable=brightgreen,blue:"
45 "link=lightgray,blue:"
46 "stalledlink=brightred,blue:"
47 "device=brightmagenta,blue:"
50 "editnormal=lightgray,blue:"
51 "editbold=yellow,blue:"
52 "editmarked=black,cyan";
55 edition_post_exec (void)
59 /* FIXME: Missing on slang endwin? */
63 keypad (stdscr
, TRUE
);
67 if (alternate_plus_minus
)
68 application_keypad_mode ();
72 edition_pre_exec (void)
74 if (clear_before_exec
)
77 if (!(console_flag
|| xterm_flag
))
85 keypad (stdscr
, FALSE
);
88 numeric_keypad_mode ();
90 /* on xterms: maybe endwin did not leave the terminal on the shell
91 * screen page: do it now.
93 * Do not move this before endwin: in some systems rmcup includes
94 * a call to clear screen, so it will end up clearing the shell screen.
103 dlg_erase (midnight_dlg
);