Go to the source code of this file.
Defines | |
#define | TEXTCOLOR |
#define | NHW_END 19 |
#define | OFF 0 |
#define | ON 1 |
#define | NONE -1 |
#define | KEY_ESC 0x1b |
#define | DIALOG_BORDER_COLOR CLR_MAGENTA |
#define | SCROLLBAR_COLOR CLR_MAGENTA |
#define | SCROLLBAR_BACK_COLOR CLR_BLACK |
#define | HIGHLIGHT_COLOR CLR_WHITE |
#define | MORECOLOR CLR_ORANGE |
#define | STAT_UP_COLOR CLR_GREEN |
#define | STAT_DOWN_COLOR CLR_RED |
#define | MESSAGE_WIN 1 |
#define | STATUS_WIN 2 |
#define | MAP_WIN 3 |
#define | NHWIN_MAX 4 |
#define | MESG_HISTORY_MAX 200 |
#define | USE_DARKGRAY |
#define | CURSES_DARK_GRAY 17 |
#define | MAP_SCROLLBARS |
Typedefs | |
typedef enum orient_type | orient |
Enumerations | |
enum | orient_type { CENTER, UP, DOWN, RIGHT, LEFT, UNDEFINED } |
Functions | |
void | curses_init_nhwindows (int *argcp, char **argv) |
void | curses_player_selection (void) |
void | curses_askname (void) |
void | curses_get_nh_event (void) |
void | curses_exit_nhwindows (const char *str) |
void | curses_suspend_nhwindows (const char *str) |
void | curses_resume_nhwindows (void) |
winid | curses_create_nhwindow (int type) |
void | curses_clear_nhwindow (winid wid) |
void | curses_display_nhwindow (winid wid, BOOLEAN_P block) |
void | curses_destroy_nhwindow (winid wid) |
void | curses_curs (winid wid, int x, int y) |
void | curses_putstr (winid wid, int attr, const char *text) |
void | curses_display_file (const char *filename, BOOLEAN_P must_exist) |
void | curses_start_menu (winid wid) |
void | curses_add_menu (winid wid, int glyph, const ANY_P *identifier, CHAR_P accelerator, CHAR_P group_accel, int attr, const char *str, BOOLEAN_P presel) |
void | curses_end_menu (winid wid, const char *prompt) |
int | curses_select_menu (winid wid, int how, MENU_ITEM_P **selected) |
void | curses_update_inventory (void) |
void | curses_mark_synch (void) |
void | curses_wait_synch (void) |
void | curses_cliparound (int x, int y) |
void | curses_print_glyph (winid wid, XCHAR_P x, XCHAR_P y, int glyph) |
void | curses_raw_print (const char *str) |
void | curses_raw_print_bold (const char *str) |
int | curses_nhgetch (void) |
int | curses_nh_poskey (int *x, int *y, int *mod) |
void | curses_nhbell (void) |
int | curses_doprev_message (void) |
char | curses_yn_function (const char *question, const char *choices, CHAR_P def) |
void | curses_getlin (const char *question, char *input) |
int | curses_get_ext_cmd (void) |
void | curses_number_pad (int state) |
void | curses_delay_output (void) |
void | curses_start_screen (void) |
void | curses_end_screen (void) |
void | curses_outrip (winid wid, int how) |
void | genl_outrip (winid tmpwin, int how) |
void | curses_preference_update (const char *pref) |
WINDOW * | curses_create_window (int width, int height, orient orientation) |
void | curses_destroy_win (WINDOW *win) |
WINDOW * | curses_get_nhwin (winid wid) |
void | curses_add_nhwin (winid wid, int height, int width, int y, int x, orient orientation, boolean border) |
void | curses_add_wid (winid wid) |
void | curses_refresh_nhwin (winid wid) |
void | curses_refresh_nethack_windows (void) |
void | curses_del_nhwin (winid wid) |
void | curses_del_wid (winid wid) |
void | curses_putch (winid wid, int x, int y, int ch, int color, int attrs) |
void | curses_get_window_size (winid wid, int *height, int *width) |
boolean | curses_window_has_border (winid wid) |
boolean | curses_window_exists (winid wid) |
int | curses_get_window_orientation (winid wid) |
void | curses_get_window_xy (winid wid, int *x, int *y) |
void | curses_puts (winid wid, int attr, const char *text) |
void | curses_clear_nhwin (winid wid) |
void | curses_draw_map (int sx, int sy, int ex, int ey) |
boolean | curses_map_borders (int *sx, int *sy, int *ex, int *ey, int ux, int uy) |
int | curses_read_char (void) |
void | curses_toggle_color_attr (WINDOW *win, int color, int attr, int onoff) |
void | curses_bail (const char *mesg) |
winid | curses_get_wid (int type) |
char * | curses_copy_of (const char *s) |
int | curses_num_lines (const char *str, int width) |
char * | curses_break_str (const char *str, int width, int line_num) |
char * | curses_str_remainder (const char *str, int width, int line_num) |
boolean | curses_is_menu (winid wid) |
boolean | curses_is_text (winid wid) |
int | curses_convert_glyph (int ch, int glyph) |
void | curses_move_cursor (winid wid, int x, int y) |
void | curses_prehousekeeping (void) |
void | curses_posthousekeeping (void) |
void | curses_view_file (const char *filename, boolean must_exist) |
void | curses_rtrim (char *str) |
int | curses_get_count (int first_digit) |
int | curses_convert_attr (int attr) |
int | curses_read_attrs (char *attrs) |
int | curses_convert_keys (int key) |
int | curses_get_mouse (int *mousex, int *mousey, int *mod) |
void | curses_line_input_dialog (const char *prompt, char *answer, int buffer) |
int | curses_character_input_dialog (const char *prompt, const char *choices, CHAR_P def) |
int | curses_ext_cmd (void) |
void | curses_create_nhmenu (winid wid) |
void | curses_add_nhmenu_item (winid wid, const ANY_P *identifier, CHAR_P accelerator, CHAR_P group_accel, int attr, const char *str, BOOLEAN_P presel) |
void | curses_finalize_nhmenu (winid wid, const char *prompt) |
int | curses_display_nhmenu (winid wid, int how, MENU_ITEM_P **_selected) |
boolean | curses_menu_exists (winid wid) |
void | curses_del_menu (winid wid) |
void | curses_update_stats (boolean redraw) |
void | curses_decrement_highlight (void) |
void | curses_create_main_windows (void) |
void | curses_init_nhcolors (void) |
void | curses_choose_character (void) |
int | curses_character_dialog (const char **choices, const char *prompt) |
void | curses_init_options (void) |
void | curses_display_splash_window (void) |
void | curses_message_win_puts (const char *message, boolean recursed) |
int | curses_more (void) |
void | curses_clear_unhighlight_message_window (void) |
void | curses_last_messages (void) |
void | curses_init_mesg_history (void) |
void | curses_prev_mesg (void) |
void | curses_count_window (const char *count_text) |
Variables | |
int | term_rows |
int | term_cols |
WINDOW * | base_term |
WINDOW * | mapwin |
WINDOW * | statuswin |
WINDOW * | messagewin |
boolean | counting |
struct window_procs | curses_procs |
#define CURSES_DARK_GRAY 17 |
#define DIALOG_BORDER_COLOR CLR_MAGENTA |
#define HIGHLIGHT_COLOR CLR_WHITE |
#define KEY_ESC 0x1b |
#define MAP_SCROLLBARS |
#define MAP_WIN 3 |
#define MESG_HISTORY_MAX 200 |
#define MESSAGE_WIN 1 |
#define MORECOLOR CLR_ORANGE |
#define NHW_END 19 |
#define NHWIN_MAX 4 |
#define NONE -1 |
#define OFF 0 |
#define ON 1 |
#define SCROLLBAR_BACK_COLOR CLR_BLACK |
#define SCROLLBAR_COLOR CLR_MAGENTA |
#define STAT_DOWN_COLOR CLR_RED |
#define STAT_UP_COLOR CLR_GREEN |
#define STATUS_WIN 2 |
#define TEXTCOLOR |
#define USE_DARKGRAY |
typedef enum orient_type orient |
enum orient_type |
void curses_add_menu | ( | winid | wid, |
int | glyph, | ||
const ANY_P * | identifier, | ||
CHAR_P | accelerator, | ||
CHAR_P | group_accel, | ||
int | attr, | ||
const char * | str, | ||
BOOLEAN_P | presel | ||
) |
void curses_add_nhmenu_item | ( | winid | wid, |
const ANY_P * | identifier, | ||
CHAR_P | accelerator, | ||
CHAR_P | group_accel, | ||
int | attr, | ||
const char * | str, | ||
BOOLEAN_P | presel | ||
) |
void curses_add_nhwin | ( | winid | wid, |
int | height, | ||
int | width, | ||
int | y, | ||
int | x, | ||
orient | orientation, | ||
boolean | border | ||
) |
void curses_add_wid | ( | winid | wid ) |
void curses_askname | ( | void | ) |
void curses_bail | ( | const char * | mesg ) |
char* curses_break_str | ( | const char * | str, |
int | width, | ||
int | line_num | ||
) |
int curses_character_dialog | ( | const char ** | choices, |
const char * | prompt | ||
) |
int curses_character_input_dialog | ( | const char * | prompt, |
const char * | choices, | ||
CHAR_P | def | ||
) |
void curses_choose_character | ( | void | ) |
void curses_clear_nhwin | ( | winid | wid ) |
void curses_clear_nhwindow | ( | winid | wid ) |
void curses_clear_unhighlight_message_window | ( | void | ) |
void curses_cliparound | ( | int | x, |
int | y | ||
) |
int curses_convert_attr | ( | int | attr ) |
int curses_convert_glyph | ( | int | ch, |
int | glyph | ||
) |
int curses_convert_keys | ( | int | key ) |
char* curses_copy_of | ( | const char * | s ) |
void curses_count_window | ( | const char * | count_text ) |
void curses_create_main_windows | ( | void | ) |
void curses_create_nhmenu | ( | winid | wid ) |
winid curses_create_nhwindow | ( | int | type ) |
WINDOW* curses_create_window | ( | int | width, |
int | height, | ||
orient | orientation | ||
) |
void curses_curs | ( | winid | wid, |
int | x, | ||
int | y | ||
) |
void curses_decrement_highlight | ( | void | ) |
void curses_del_menu | ( | winid | wid ) |
void curses_del_nhwin | ( | winid | wid ) |
void curses_del_wid | ( | winid | wid ) |
void curses_delay_output | ( | void | ) |
void curses_destroy_nhwindow | ( | winid | wid ) |
void curses_destroy_win | ( | WINDOW * | win ) |
void curses_display_file | ( | const char * | filename, |
BOOLEAN_P | must_exist | ||
) |
int curses_display_nhmenu | ( | winid | wid, |
int | how, | ||
MENU_ITEM_P ** | _selected | ||
) |
void curses_display_nhwindow | ( | winid | wid, |
BOOLEAN_P | block | ||
) |
void curses_display_splash_window | ( | void | ) |
int curses_doprev_message | ( | void | ) |
void curses_draw_map | ( | int | sx, |
int | sy, | ||
int | ex, | ||
int | ey | ||
) |
void curses_end_menu | ( | winid | wid, |
const char * | prompt | ||
) |
void curses_end_screen | ( | void | ) |
void curses_exit_nhwindows | ( | const char * | str ) |
int curses_ext_cmd | ( | void | ) |
void curses_finalize_nhmenu | ( | winid | wid, |
const char * | prompt | ||
) |
int curses_get_count | ( | int | first_digit ) |
int curses_get_ext_cmd | ( | void | ) |
int curses_get_mouse | ( | int * | mousex, |
int * | mousey, | ||
int * | mod | ||
) |
void curses_get_nh_event | ( | void | ) |
WINDOW* curses_get_nhwin | ( | winid | wid ) |
winid curses_get_wid | ( | int | type ) |
int curses_get_window_orientation | ( | winid | wid ) |
void curses_get_window_size | ( | winid | wid, |
int * | height, | ||
int * | width | ||
) |
void curses_get_window_xy | ( | winid | wid, |
int * | x, | ||
int * | y | ||
) |
void curses_getlin | ( | const char * | question, |
char * | input | ||
) |
void curses_init_mesg_history | ( | void | ) |
void curses_init_nhcolors | ( | void | ) |
void curses_init_nhwindows | ( | int * | argcp, |
char ** | argv | ||
) |
void curses_init_options | ( | void | ) |
void curses_last_messages | ( | void | ) |
void curses_line_input_dialog | ( | const char * | prompt, |
char * | answer, | ||
int | buffer | ||
) |
boolean curses_map_borders | ( | int * | sx, |
int * | sy, | ||
int * | ex, | ||
int * | ey, | ||
int | ux, | ||
int | uy | ||
) |
void curses_mark_synch | ( | void | ) |
void curses_message_win_puts | ( | const char * | message, |
boolean | recursed | ||
) |
int curses_more | ( | void | ) |
void curses_move_cursor | ( | winid | wid, |
int | x, | ||
int | y | ||
) |
int curses_nh_poskey | ( | int * | x, |
int * | y, | ||
int * | mod | ||
) |
void curses_nhbell | ( | void | ) |
int curses_nhgetch | ( | void | ) |
int curses_num_lines | ( | const char * | str, |
int | width | ||
) |
void curses_number_pad | ( | int | state ) |
void curses_outrip | ( | winid | wid, |
int | how | ||
) |
void curses_player_selection | ( | void | ) |
void curses_posthousekeeping | ( | void | ) |
void curses_preference_update | ( | const char * | pref ) |
void curses_prehousekeeping | ( | void | ) |
void curses_prev_mesg | ( | void | ) |
void curses_print_glyph | ( | winid | wid, |
XCHAR_P | x, | ||
XCHAR_P | y, | ||
int | glyph | ||
) |
void curses_putch | ( | winid | wid, |
int | x, | ||
int | y, | ||
int | ch, | ||
int | color, | ||
int | attrs | ||
) |
void curses_puts | ( | winid | wid, |
int | attr, | ||
const char * | text | ||
) |
void curses_putstr | ( | winid | wid, |
int | attr, | ||
const char * | text | ||
) |
void curses_raw_print | ( | const char * | str ) |
void curses_raw_print_bold | ( | const char * | str ) |
int curses_read_attrs | ( | char * | attrs ) |
int curses_read_char | ( | void | ) |
void curses_refresh_nethack_windows | ( | void | ) |
void curses_refresh_nhwin | ( | winid | wid ) |
void curses_resume_nhwindows | ( | void | ) |
void curses_rtrim | ( | char * | str ) |
int curses_select_menu | ( | winid | wid, |
int | how, | ||
MENU_ITEM_P ** | selected | ||
) |
void curses_start_menu | ( | winid | wid ) |
void curses_start_screen | ( | void | ) |
char* curses_str_remainder | ( | const char * | str, |
int | width, | ||
int | line_num | ||
) |
void curses_suspend_nhwindows | ( | const char * | str ) |
void curses_toggle_color_attr | ( | WINDOW * | win, |
int | color, | ||
int | attr, | ||
int | onoff | ||
) |
void curses_update_inventory | ( | void | ) |
void curses_update_stats | ( | boolean | redraw ) |
void curses_view_file | ( | const char * | filename, |
boolean | must_exist | ||
) |
void curses_wait_synch | ( | void | ) |
char curses_yn_function | ( | const char * | question, |
const char * | choices, | ||
CHAR_P | def | ||
) |
void genl_outrip | ( | winid | tmpwin, |
int | how | ||
) |
WINDOW* base_term |
struct window_procs curses_procs |
WINDOW* mapwin |
WINDOW * messagewin |
WINDOW * statuswin |
int term_cols |
int term_rows |