#include <windows.h>
Go to the source code of this file.
Defines | |
#define | general_failure 1 |
#define | WIN_BASE_RES 128 |
#define | WIN_BASE_KIND 128 |
#define | CHAR_ENTER ((char)3) |
#define | CHAR_BELL ((char)7) |
#define | CHAR_BS ((char)8) |
#define | CHAR_LF ((char)10) |
#define | CHAR_CR ((char)13) |
#define | CHAR_ESC ((char)27) |
#define | CHAR_BLANK ((char)32) |
#define | CHAR_DELETE ((char)127) |
#define | EXTENDED_SUPPORT 0 |
#define | CLIP_RECT_ONLY 1 |
#define | TA_MOVE_EACH_CHAR 1L |
#define | TA_ALWAYS_REFRESH 2L |
#define | TA_WRAP_AROUND 4L |
#define | TA_OVERSTRIKE 8L |
#define | TA_INHIBIT_VERT_SCROLL 16L |
#define | TA_RGB_TO_TTY(r) |
#define | TA_BLINKING_CURSOR 1L |
#define | TA_ECHO_INPUT 2L |
#define | TA_RAW_INPUT 4L |
#define | TA_RAW_OUTPUT 8L |
#define | TA_NL_ADD_CR 16L |
#define | TA_CR_ADD_NL 32L |
#define | TA_NONBLOCKING_IO 64L |
#define | TA_ATTRIB_FUNC(x) ((long)(x)) |
#define | TTY_EOF -1 |
Typedefs | |
typedef enum tty_attrib | tty_attrib |
Enumerations | |
enum | tty_attrib { TTY_ATTRIB_FLAGS } |
Functions | |
short | create_tty (WindowPtr *window, short resource_id, Boolean in_color) |
short | init_tty_number (WindowPtr window, short font_number, short font_size, short x_size, short y_size) |
short | destroy_tty (WindowPtr window) |
short | set_tty_font_name (winid window_type, char *name) |
short | force_tty_coordinate_system_recalc (WindowPtr window) |
short | get_tty_metrics (WindowPtr window, short *x_size, short *y_size, short *x_size_pixels, short *y_size_pixels, short *font_number, short *font_size, short *char_width, short *row_height) |
short | move_tty_cursor (WindowPtr window, short x_pos, short y_pos) |
short | update_tty (WindowPtr window) |
short | add_tty_char (WindowPtr window, short character) |
short | add_tty_string (WindowPtr window, const char *string) |
short | get_tty_attrib (WindowPtr window, tty_attrib attrib, long *value) |
short | set_tty_attrib (WindowPtr window, tty_attrib attrib, long value) |
short | scroll_tty (WindowPtr window, short delta_x, short delta_y) |
short | clear_tty (WindowPtr window) |
short | blink_cursor (WindowPtr window, long when) |
short | image_tty (EventRecord *theEvent, WindowPtr window) |
short | clear_tty_window (WindowPtr window, short from_row, short from_col, short to_row, short to_col) |
short | get_invalid_region (WindowPtr window, Rect *inval_rect) |
short | set_invalid_region (WindowPtr window, Rect *inval_rect) |
void | tty_nhbell () |
Variables | |
char | game_active |
#define CHAR_BELL ((char)7) |
#define CHAR_BLANK ((char)32) |
#define CHAR_BS ((char)8) |
#define CHAR_CR ((char)13) |
#define CHAR_DELETE ((char)127) |
#define CHAR_ENTER ((char)3) |
#define CHAR_ESC ((char)27) |
#define CHAR_LF ((char)10) |
#define CLIP_RECT_ONLY 1 |
#define EXTENDED_SUPPORT 0 |
#define general_failure 1 |
#define TA_ALWAYS_REFRESH 2L |
#define TA_ATTRIB_FUNC | ( | x ) | ((long)(x)) |
#define TA_BLINKING_CURSOR 1L |
#define TA_CR_ADD_NL 32L |
#define TA_ECHO_INPUT 2L |
#define TA_INHIBIT_VERT_SCROLL 16L |
#define TA_MOVE_EACH_CHAR 1L |
#define TA_NL_ADD_CR 16L |
#define TA_NONBLOCKING_IO 64L |
#define TA_OVERSTRIKE 8L |
#define TA_RAW_INPUT 4L |
#define TA_RAW_OUTPUT 8L |
#define TA_RGB_TO_TTY | ( | r ) |
((((long)((r).red>>8)&0xff)<<16)+\
(((long)((r).green>>8)&0xff)<<8)+((long)((r).blue>>8)&0xff))
#define TA_WRAP_AROUND 4L |
#define TTY_EOF -1 |
#define WIN_BASE_KIND 128 |
#define WIN_BASE_RES 128 |
typedef enum tty_attrib tty_attrib |
enum tty_attrib |
short add_tty_char | ( | WindowPtr | window, |
short | character | ||
) |
short add_tty_string | ( | WindowPtr | window, |
const char * | string | ||
) |
short blink_cursor | ( | WindowPtr | window, |
long | when | ||
) |
short clear_tty | ( | WindowPtr | window ) |
short clear_tty_window | ( | WindowPtr | window, |
short | from_row, | ||
short | from_col, | ||
short | to_row, | ||
short | to_col | ||
) |
short create_tty | ( | WindowPtr * | window, |
short | resource_id, | ||
Boolean | in_color | ||
) |
short destroy_tty | ( | WindowPtr | window ) |
short force_tty_coordinate_system_recalc | ( | WindowPtr | window ) |
short get_invalid_region | ( | WindowPtr | window, |
Rect * | inval_rect | ||
) |
short get_tty_attrib | ( | WindowPtr | window, |
tty_attrib | attrib, | ||
long * | value | ||
) |
short get_tty_metrics | ( | WindowPtr | window, |
short * | x_size, | ||
short * | y_size, | ||
short * | x_size_pixels, | ||
short * | y_size_pixels, | ||
short * | font_number, | ||
short * | font_size, | ||
short * | char_width, | ||
short * | row_height | ||
) |
short image_tty | ( | EventRecord * | theEvent, |
WindowPtr | window | ||
) |
short init_tty_number | ( | WindowPtr | window, |
short | font_number, | ||
short | font_size, | ||
short | x_size, | ||
short | y_size | ||
) |
short move_tty_cursor | ( | WindowPtr | window, |
short | x_pos, | ||
short | y_pos | ||
) |
short scroll_tty | ( | WindowPtr | window, |
short | delta_x, | ||
short | delta_y | ||
) |
short set_invalid_region | ( | WindowPtr | window, |
Rect * | inval_rect | ||
) |
short set_tty_attrib | ( | WindowPtr | window, |
tty_attrib | attrib, | ||
long | value | ||
) |
short set_tty_font_name | ( | winid | window_type, |
char * | name | ||
) |
void tty_nhbell | ( | ) |
short update_tty | ( | WindowPtr | window ) |
char game_active |