curses run-time options
This started out as an attempt to document the curses options in the Guidebook, but I didn't actually get that far. Instead, integrate the curses options better via more consistent WC/WC2 usage. This prevents 'guicolor' from showing up as a boolean option for non-curses interface in curses+other binary. For curses itself, let 'petattr' be set/reset via 'O'. Also, accept 'Dim' as a possible pet highlight attribute since it already handles all the other ordinary attributes. I'm not sure what leftline and rightline highlighting are supposed to do. They were missing for ncurses (or maybe they're misspelled for PDcurses?) but adding them didn't produce any visible effect (using TERM=xterm-256color on OSX with default font/character set). Not addressed: 1) general confusion about compile-time vs run-time option filtering; 2) curses pet highlighting only works if 'color' option is enabled.
This commit is contained in:
@@ -45,6 +45,12 @@ extern WINDOW *mapwin, *statuswin, *messagewin; /* Main windows */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(A_LEFTLINE) && defined(A_LEFT)
|
||||
#define A_LEFTLINE A_LEFT
|
||||
#endif
|
||||
#if !defined(A_RIGHTLINE) && defined(A_RIGHT)
|
||||
#define A_RIGHTLINE A_RIGHT
|
||||
#endif
|
||||
|
||||
typedef enum orient_type
|
||||
{
|
||||
@@ -158,6 +164,7 @@ extern void curses_rtrim(char *str);
|
||||
extern int curses_get_count(int first_digit);
|
||||
extern int curses_convert_attr(int attr);
|
||||
extern int curses_read_attrs(char *attrs);
|
||||
extern char *curses_fmt_attrs(char *);
|
||||
extern int curses_convert_keys(int key);
|
||||
extern int curses_get_mouse(int *mousex, int *mousey, int *mod);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user