Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1efd8636
Commit
1efd8636
authored
Sep 21, 1996
by
Richard M. Stallman
Browse files
(term_init): Use new vertical scroll bar enumerated type.
Use new macro SET_FRAME_WIDTH.
parent
1026b400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/term.c
src/term.c
+9
-5
No files found.
src/term.c
View file @
1efd8636
...
...
@@ -1463,7 +1463,7 @@ term_init (terminal_type)
baud_rate
=
19200
;
FRAME_CAN_HAVE_SCROLL_BARS
(
selected_frame
)
=
0
;
FRAME_
HAS_
VERTICAL_SCROLL_BAR
S
(
selected_frame
)
=
0
;
FRAME_VERTICAL_SCROLL_BAR
_TYPE
(
selected_frame
)
=
vertical_scroll_bar_none
;
return
;
#endif
/* WINDOWSNT */
...
...
@@ -1593,10 +1593,13 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
}
if
(
FRAME_WIDTH
(
selected_frame
)
<=
0
)
FRAME_WIDTH
(
selected_frame
)
=
tgetnum
(
"co"
);
SET_FRAME_WIDTH
(
selected_frame
,
tgetnum
(
"co"
));
else
/* Keep width and external_width consistent */
SET_FRAME_WIDTH
(
selected_frame
,
FRAME_WIDTH
(
selected_frame
));
if
(
FRAME_HEIGHT
(
selected_frame
)
<=
0
)
FRAME_HEIGHT
(
selected_frame
)
=
tgetnum
(
"li"
);
if
(
FRAME_HEIGHT
(
selected_frame
)
<
3
||
FRAME_WIDTH
(
selected_frame
)
<
3
)
fatal
(
"Screen size %dx%d is too small.
\n
"
,
...
...
@@ -1758,7 +1761,8 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
/* Remove width of standout marker from usable width of line */
if
(
TN_standout_width
>
0
)
FRAME_WIDTH
(
selected_frame
)
-=
TN_standout_width
;
SET_FRAME_WIDTH
(
selected_frame
,
FRAME_WIDTH
(
selected_frame
)
-
TN_standout_width
);
UseTabs
=
tabs_safe_p
()
&&
TabWidth
==
8
;
...
...
@@ -1782,7 +1786,7 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
baud_rate
=
9600
;
FRAME_CAN_HAVE_SCROLL_BARS
(
selected_frame
)
=
0
;
FRAME_
HAS_
VERTICAL_SCROLL_BAR
S
(
selected_frame
)
=
0
;
FRAME_VERTICAL_SCROLL_BAR
_TYPE
(
selected_frame
)
=
vertical_scroll_bar_none
;
}
/* VARARGS 1 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment