aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-10-14 16:19:21 +0400
committerDmitry Antipov2013-10-14 16:19:21 +0400
commit77e3b1b7095b3376dbddd22cbca4827b797767c0 (patch)
tree1e5cbc68a42c7e1b08acf36d94bc4b158d6117a0 /src/term.c
parente558436b778c0199caaff0ce40b9a279bacf640e (diff)
downloademacs-77e3b1b7095b3376dbddd22cbca4827b797767c0.tar.gz
emacs-77e3b1b7095b3376dbddd22cbca4827b797767c0.zip
* termhooks.h (FRAME_MUST_WRITE_SPACES, FRAME_LINE_INS_DEL_OK)
(FRAME_CHAR_INS_DEL_OK, FRAME_SCROLL_REGION_OK) (FRAME_SCROLL_REGION_COST, FRAME_MEMORY_BELOW_FRAME): Adjust to match the change described below. (struct terminal): Move must_write_spaces, line_ins_del_ok, char_ins_del_ok, scroll_region_ok, scroll_region_cost and memory_below_frame members to... * termchar.h (struct tty_display_info): ...here because they're relevant only on TTYs. Prefer unsigned bitfield where appropriate. * term.c (init_tty): * nsterm.m (ns_create_terminal): * w32term.c (w32_create_terminal): * xterm.c (x_create_terminal): Adjust users. * dispnew.c (line_hash_code, line_draw_cost): Pass frame arg to filter out non-TTY frames. Adjust comment. (scrolling): Adjust user. Prefer eassert for debugging check.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/term.c b/src/term.c
index 7cf0795aa7d..58e0f2abd45 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4203,9 +4203,9 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
4203 /* Since we make MagicWrap terminals look like AutoWrap, we need to have 4203 /* Since we make MagicWrap terminals look like AutoWrap, we need to have
4204 the former flag imply the latter. */ 4204 the former flag imply the latter. */
4205 AutoWrap (tty) = MagicWrap (tty) || tgetflag ("am"); 4205 AutoWrap (tty) = MagicWrap (tty) || tgetflag ("am");
4206 terminal->memory_below_frame = tgetflag ("db"); 4206 tty->memory_below_frame = tgetflag ("db");
4207 tty->TF_hazeltine = tgetflag ("hz"); 4207 tty->TF_hazeltine = tgetflag ("hz");
4208 terminal->must_write_spaces = tgetflag ("in"); 4208 tty->must_write_spaces = tgetflag ("in");
4209 tty->meta_key = tgetflag ("km") || tgetflag ("MT"); 4209 tty->meta_key = tgetflag ("km") || tgetflag ("MT");
4210 tty->TF_insmode_motion = tgetflag ("mi"); 4210 tty->TF_insmode_motion = tgetflag ("mi");
4211 tty->TF_standout_motion = tgetflag ("ms"); 4211 tty->TF_standout_motion = tgetflag ("ms");
@@ -4225,7 +4225,7 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
4225 tty->specified_window = height; 4225 tty->specified_window = height;
4226 4226
4227 FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; 4227 FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none;
4228 terminal->char_ins_del_ok = 1; 4228 tty->char_ins_del_ok = 1;
4229 baud_rate = 19200; 4229 baud_rate = 19200;
4230 } 4230 }
4231#else /* MSDOS */ 4231#else /* MSDOS */
@@ -4238,7 +4238,7 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
4238 get_tty_size (fileno (tty->input), &width, &height); 4238 get_tty_size (fileno (tty->input), &width, &height);
4239 FrameCols (tty) = width; 4239 FrameCols (tty) = width;
4240 FrameRows (tty) = height; 4240 FrameRows (tty) = height;
4241 terminal->char_ins_del_ok = 0; 4241 tty->char_ins_del_ok = 0;
4242 init_baud_rate (fileno (tty->input)); 4242 init_baud_rate (fileno (tty->input));
4243 } 4243 }
4244#endif /* MSDOS */ 4244#endif /* MSDOS */
@@ -4257,12 +4257,12 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
4257 tty->delete_in_insert_mode = 1; 4257 tty->delete_in_insert_mode = 1;
4258 4258
4259 UseTabs (tty) = 0; 4259 UseTabs (tty) = 0;
4260 terminal->scroll_region_ok = 0; 4260 tty->scroll_region_ok = 0;
4261 4261
4262 /* Seems to insert lines when it's not supposed to, messing up the 4262 /* Seems to insert lines when it's not supposed to, messing up the
4263 display. In doing a trace, it didn't seem to be called much, so I 4263 display. In doing a trace, it didn't seem to be called much, so I
4264 don't think we're losing anything by turning it off. */ 4264 don't think we're losing anything by turning it off. */
4265 terminal->line_ins_del_ok = 0; 4265 tty->line_ins_del_ok = 0;
4266 4266
4267 tty->TN_max_colors = 16; /* Must be non-zero for tty-display-color-p. */ 4267 tty->TN_max_colors = 16; /* Must be non-zero for tty-display-color-p. */
4268#endif /* DOS_NT */ 4268#endif /* DOS_NT */
@@ -4393,17 +4393,17 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
4393 4393
4394 UseTabs (tty) = tabs_safe_p (fileno (tty->input)) && TabWidth (tty) == 8; 4394 UseTabs (tty) = tabs_safe_p (fileno (tty->input)) && TabWidth (tty) == 8;
4395 4395
4396 terminal->scroll_region_ok 4396 tty->scroll_region_ok
4397 = (tty->Wcm->cm_abs 4397 = (tty->Wcm->cm_abs
4398 && (tty->TS_set_window || tty->TS_set_scroll_region || tty->TS_set_scroll_region_1)); 4398 && (tty->TS_set_window || tty->TS_set_scroll_region || tty->TS_set_scroll_region_1));
4399 4399
4400 terminal->line_ins_del_ok 4400 tty->line_ins_del_ok
4401 = (((tty->TS_ins_line || tty->TS_ins_multi_lines) 4401 = (((tty->TS_ins_line || tty->TS_ins_multi_lines)
4402 && (tty->TS_del_line || tty->TS_del_multi_lines)) 4402 && (tty->TS_del_line || tty->TS_del_multi_lines))
4403 || (terminal->scroll_region_ok 4403 || (tty->scroll_region_ok
4404 && tty->TS_fwd_scroll && tty->TS_rev_scroll)); 4404 && tty->TS_fwd_scroll && tty->TS_rev_scroll));
4405 4405
4406 terminal->char_ins_del_ok 4406 tty->char_ins_del_ok
4407 = ((tty->TS_ins_char || tty->TS_insert_mode 4407 = ((tty->TS_ins_char || tty->TS_insert_mode
4408 || tty->TS_pad_inserted_char || tty->TS_ins_multi_chars) 4408 || tty->TS_pad_inserted_char || tty->TS_ins_multi_chars)
4409 && (tty->TS_del_char || tty->TS_del_multi_chars)); 4409 && (tty->TS_del_char || tty->TS_del_multi_chars));