diff options
Diffstat (limited to 'src/termchar.h')
| -rw-r--r-- | src/termchar.h | 48 |
1 files changed, 12 insertions, 36 deletions
diff --git a/src/termchar.h b/src/termchar.h index 8135ac723e5..ac652640b17 100644 --- a/src/termchar.h +++ b/src/termchar.h | |||
| @@ -34,18 +34,18 @@ struct tty_output | |||
| 34 | struct tty_display_info | 34 | struct tty_display_info |
| 35 | { | 35 | { |
| 36 | struct tty_display_info *next; /* Chain of all tty devices. */ | 36 | struct tty_display_info *next; /* Chain of all tty devices. */ |
| 37 | 37 | ||
| 38 | char *name; /* The name of the device file or 0 if | 38 | char *name; /* The name of the device file or 0 if |
| 39 | stdin/stdout. */ | 39 | stdin/stdout. */ |
| 40 | char *type; /* The type of the tty. */ | 40 | char *type; /* The type of the tty. */ |
| 41 | 41 | ||
| 42 | /* Input/output */ | 42 | /* Input/output */ |
| 43 | 43 | ||
| 44 | FILE *input; /* The stream to be used for terminal input. | 44 | FILE *input; /* The stream to be used for terminal input. |
| 45 | NULL if the terminal is suspended. */ | 45 | NULL if the terminal is suspended. */ |
| 46 | FILE *output; /* The stream to be used for terminal output. | 46 | FILE *output; /* The stream to be used for terminal output. |
| 47 | NULL if the terminal is suspended. */ | 47 | NULL if the terminal is suspended. */ |
| 48 | 48 | ||
| 49 | FILE *termscript; /* If nonzero, send all terminal output | 49 | FILE *termscript; /* If nonzero, send all terminal output |
| 50 | characters to this stream also. */ | 50 | characters to this stream also. */ |
| 51 | 51 | ||
| @@ -65,38 +65,14 @@ struct tty_display_info | |||
| 65 | /* Redisplay. */ | 65 | /* Redisplay. */ |
| 66 | 66 | ||
| 67 | Lisp_Object top_frame; /* The topmost frame on this tty. */ | 67 | Lisp_Object top_frame; /* The topmost frame on this tty. */ |
| 68 | 68 | ||
| 69 | /* The previous frame we displayed on this tty. */ | 69 | /* The previous frame we displayed on this tty. */ |
| 70 | struct frame *previous_frame; | 70 | struct frame *previous_frame; |
| 71 | int previous_color_mode; | 71 | int previous_color_mode; |
| 72 | 72 | ||
| 73 | #ifdef MSDOS | 73 | /* Information about the range of text currently shown in |
| 74 | /* These variables describe the range of text currently shown in its | 74 | mouse-face. */ |
| 75 | mouse-face, together with the window they apply to. As long as | 75 | Mouse_HLInfo mouse_highlight; |
| 76 | the mouse stays within this range, we need not redraw anything on | ||
| 77 | its account. Rows and columns are glyph matrix positions in | ||
| 78 | MOUSE_FACE_WINDOW. */ | ||
| 79 | int mouse_face_beg_row, mouse_face_beg_col; | ||
| 80 | int mouse_face_end_row, mouse_face_end_col; | ||
| 81 | int mouse_face_past_end; | ||
| 82 | Lisp_Object mouse_face_window; | ||
| 83 | int mouse_face_face_id; | ||
| 84 | |||
| 85 | /* 1 if a mouse motion event came and we didn't handle it right away because | ||
| 86 | gc was in progress. */ | ||
| 87 | int mouse_face_deferred_gc; | ||
| 88 | |||
| 89 | /* FRAME and X, Y position of mouse when last checked for | ||
| 90 | highlighting. X and Y can be negative or out of range for the frame. */ | ||
| 91 | struct frame *mouse_face_mouse_frame; | ||
| 92 | int mouse_face_mouse_x, mouse_face_mouse_y; | ||
| 93 | |||
| 94 | /* Nonzero means defer mouse-motion highlighting. */ | ||
| 95 | int mouse_face_defer; | ||
| 96 | |||
| 97 | /* Nonzero means that the mouse highlight should not be shown. */ | ||
| 98 | int mouse_face_hidden; | ||
| 99 | #endif /* !MSDOS */ | ||
| 100 | 76 | ||
| 101 | /* Buffer used internally by termcap (see tgetent in the Termcap | 77 | /* Buffer used internally by termcap (see tgetent in the Termcap |
| 102 | manual). Only init_tty and delete_tty should change this. */ | 78 | manual). Only init_tty and delete_tty should change this. */ |
| @@ -190,12 +166,12 @@ struct tty_display_info | |||
| 190 | int RPov; /* # chars to start a TS_repeat */ | 166 | int RPov; /* # chars to start a TS_repeat */ |
| 191 | 167 | ||
| 192 | int delete_in_insert_mode; /* delete mode == insert mode */ | 168 | int delete_in_insert_mode; /* delete mode == insert mode */ |
| 193 | 169 | ||
| 194 | int se_is_so; /* 1 if same string both enters and leaves | 170 | int se_is_so; /* 1 if same string both enters and leaves |
| 195 | standout mode */ | 171 | standout mode */ |
| 196 | 172 | ||
| 197 | int costs_set; /* Nonzero if costs have been calculated. */ | 173 | int costs_set; /* Nonzero if costs have been calculated. */ |
| 198 | 174 | ||
| 199 | int insert_mode; /* Nonzero when in insert mode. */ | 175 | int insert_mode; /* Nonzero when in insert mode. */ |
| 200 | int standout_mode; /* Nonzero when in standout mode. */ | 176 | int standout_mode; /* Nonzero when in standout mode. */ |
| 201 | 177 | ||
| @@ -214,7 +190,7 @@ struct tty_display_info | |||
| 214 | lines from those operations. */ | 190 | lines from those operations. */ |
| 215 | 191 | ||
| 216 | int specified_window; | 192 | int specified_window; |
| 217 | 193 | ||
| 218 | /* Flag used in tty_show/hide_cursor. */ | 194 | /* Flag used in tty_show/hide_cursor. */ |
| 219 | 195 | ||
| 220 | int cursor_hidden; | 196 | int cursor_hidden; |