aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-11-01 08:44:15 +0000
committerRichard M. Stallman <[email protected]>1994-11-01 08:44:15 +0000
commitcb28b9c22b831a6712b97dba6b1914dec4294d15 (patch)
tree659bc23caf64f3b1c15141b51bfd83b529182646 /src/term.c
parent57d655926a7f1fa71a27476dfb540d42a069439c (diff)
(term_init) [WINDOWSNT]: Do some Windows-specific
initialization, then skip the rest of the code. (FRAME_TERMCAP_P) [WINDOWSNT]: Always return 0.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index 9f786d5dd3..bdb364ec69 100644
--- a/src/term.c
+++ b/src/term.c
@@ -290,6 +290,18 @@ char *tparam ();
extern char *tgetstr ();
+
+#ifdef WINDOWSNT
+/* We aren't X windows, but we aren't termcap either. This makes me
+ uncertain as to what value to use for frame.output_method. For
+ this file, we'll define FRAME_TERMCAP_P to be zero so that our
+ output hooks get called instead of the termcap functions. Probably
+ the best long-term solution is to define an output_windows_nt... */
+
+#undef FRAME_TERMCAP_P
+#define FRAME_TERMCAP_P(_f_) 0
+#endif /* WINDOWSNT */
+
ring_bell ()
{
if (! FRAME_TERMCAP_P (selected_frame))
@@ -1374,6 +1386,42 @@ term_init (terminal_type)
register char *p;
int status;
+#ifdef WINDOWSNT
+ initialize_win_nt_display ();
+
+ Wcm_clear ();
+ dont_calculate_costs = 0;
+
+ area = (char *) malloc (2044);
+
+ if (area == 0)
+ abort ();
+
+ FrameRows = FRAME_HEIGHT (selected_frame);
+ FrameCols = FRAME_WIDTH (selected_frame);
+ specified_window = FRAME_HEIGHT (selected_frame);
+
+ delete_in_insert_mode = 1;
+
+ UseTabs = 0;
+ scroll_region_ok = 0;
+
+ /* Seems to insert lines when it's not supposed to, messing
+ up the display. In doing a trace, it didn't seem to be
+ called much, so I don't think we're losing anything by
+ turning it off. */
+
+ line_ins_del_ok = 0;
+ char_ins_del_ok = 1;
+
+ baud_rate = 19200;
+
+ FRAME_CAN_HAVE_SCROLL_BARS (selected_frame) = 0;
+ FRAME_HAS_VERTICAL_SCROLL_BARS (selected_frame) = 0;
+
+ return;
+#endif /* WINDOWSNT */
+
Wcm_clear ();
dont_calculate_costs = 0;