comparison src/term.c @ 10261:4fd304db9216

(scroll_region_cost): New variable. (calculate_costs): Put scroll region overhead in scroll_region_cost.
author Richard M. Stallman <rms@gnu.org>
date Mon, 26 Dec 1994 15:37:22 +0000
parents 3f9f77a9488d
children e14daed4a820
comparison
equal deleted inserted replaced
10260:033119853eab 10261:4fd304db9216
52 52
53 int line_ins_del_ok; /* Terminal can insert and delete lines */ 53 int line_ins_del_ok; /* Terminal can insert and delete lines */
54 int char_ins_del_ok; /* Terminal can insert and delete chars */ 54 int char_ins_del_ok; /* Terminal can insert and delete chars */
55 int scroll_region_ok; /* Terminal supports setting the 55 int scroll_region_ok; /* Terminal supports setting the
56 scroll window */ 56 scroll window */
57 int scroll_region_cost; /* Cost of setting a scroll window,
58 measured in characters */
57 int memory_below_frame; /* Terminal remembers lines 59 int memory_below_frame; /* Terminal remembers lines
58 scrolled off bottom */ 60 scrolled off bottom */
59 int fast_clear_end_of_line; /* Terminal has a `ce' string */ 61 int fast_clear_end_of_line; /* Terminal has a `ce' string */
60 62
61 /* Nonzero means no need to redraw the entire frame on resuming 63 /* Nonzero means no need to redraw the entire frame on resuming
1088 ? TS_set_scroll_region 1090 ? TS_set_scroll_region
1089 : TS_set_scroll_region_1); 1091 : TS_set_scroll_region_1);
1090 1092
1091 FRAME_COST_BAUD_RATE (frame) = baud_rate; 1093 FRAME_COST_BAUD_RATE (frame) = baud_rate;
1092 1094
1095 scroll_region_cost = string_cost (f);
1093 #ifdef HAVE_X_WINDOWS 1096 #ifdef HAVE_X_WINDOWS
1094 if (FRAME_X_P (frame)) 1097 if (FRAME_X_P (frame))
1095 { 1098 {
1096 do_line_insertion_deletion_costs (frame, 0, ".5*", 0, ".5*", 1099 do_line_insertion_deletion_costs (frame, 0, ".5*", 0, ".5*",
1097 0, 0, 1100 0, 0,
1098 x_screen_planes (frame)); 1101 x_screen_planes (frame));
1102 scroll_region_cost = 0;
1099 return; 1103 return;
1100 } 1104 }
1101 #endif 1105 #endif
1102 1106
1103 /* These variables are only used for terminal stuff. They are allocated 1107 /* These variables are only used for terminal stuff. They are allocated