aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-21 02:25:37 +0000
committerRichard M. Stallman1996-09-21 02:25:37 +0000
commit1efd8636b20faf98d3a9e479eaaa4e45c8ba1356 (patch)
tree43d73a6c702cc4cae2efd209d64ccad2631a836e /src/term.c
parent1026b4001513477cbfc28f8168f35b0b65ca0d04 (diff)
downloademacs-1efd8636b20faf98d3a9e479eaaa4e45c8ba1356.tar.gz
emacs-1efd8636b20faf98d3a9e479eaaa4e45c8ba1356.zip
(term_init): Use new vertical scroll bar enumerated type.
Use new macro SET_FRAME_WIDTH.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/term.c b/src/term.c
index 351cfd2c37e..8519a49ee57 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1463,7 +1463,7 @@ term_init (terminal_type)
1463 baud_rate = 19200; 1463 baud_rate = 19200;
1464 1464
1465 FRAME_CAN_HAVE_SCROLL_BARS (selected_frame) = 0; 1465 FRAME_CAN_HAVE_SCROLL_BARS (selected_frame) = 0;
1466 FRAME_HAS_VERTICAL_SCROLL_BARS (selected_frame) = 0; 1466 FRAME_VERTICAL_SCROLL_BAR_TYPE (selected_frame) = vertical_scroll_bar_none;
1467 1467
1468 return; 1468 return;
1469#endif /* WINDOWSNT */ 1469#endif /* WINDOWSNT */
@@ -1593,10 +1593,13 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
1593 } 1593 }
1594 1594
1595 if (FRAME_WIDTH (selected_frame) <= 0) 1595 if (FRAME_WIDTH (selected_frame) <= 0)
1596 FRAME_WIDTH (selected_frame) = tgetnum ("co"); 1596 SET_FRAME_WIDTH (selected_frame, tgetnum ("co"));
1597 else
1598 /* Keep width and external_width consistent */
1599 SET_FRAME_WIDTH (selected_frame, FRAME_WIDTH (selected_frame));
1597 if (FRAME_HEIGHT (selected_frame) <= 0) 1600 if (FRAME_HEIGHT (selected_frame) <= 0)
1598 FRAME_HEIGHT (selected_frame) = tgetnum ("li"); 1601 FRAME_HEIGHT (selected_frame) = tgetnum ("li");
1599 1602
1600 if (FRAME_HEIGHT (selected_frame) < 3 1603 if (FRAME_HEIGHT (selected_frame) < 3
1601 || FRAME_WIDTH (selected_frame) < 3) 1604 || FRAME_WIDTH (selected_frame) < 3)
1602 fatal ("Screen size %dx%d is too small.\n", 1605 fatal ("Screen size %dx%d is too small.\n",
@@ -1758,7 +1761,8 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
1758 1761
1759 /* Remove width of standout marker from usable width of line */ 1762 /* Remove width of standout marker from usable width of line */
1760 if (TN_standout_width > 0) 1763 if (TN_standout_width > 0)
1761 FRAME_WIDTH (selected_frame) -= TN_standout_width; 1764 SET_FRAME_WIDTH (selected_frame,
1765 FRAME_WIDTH (selected_frame) - TN_standout_width);
1762 1766
1763 UseTabs = tabs_safe_p () && TabWidth == 8; 1767 UseTabs = tabs_safe_p () && TabWidth == 8;
1764 1768
@@ -1782,7 +1786,7 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
1782 baud_rate = 9600; 1786 baud_rate = 9600;
1783 1787
1784 FRAME_CAN_HAVE_SCROLL_BARS (selected_frame) = 0; 1788 FRAME_CAN_HAVE_SCROLL_BARS (selected_frame) = 0;
1785 FRAME_HAS_VERTICAL_SCROLL_BARS (selected_frame) = 0; 1789 FRAME_VERTICAL_SCROLL_BAR_TYPE (selected_frame) = vertical_scroll_bar_none;
1786} 1790}
1787 1791
1788/* VARARGS 1 */ 1792/* VARARGS 1 */