aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-01 08:44:15 +0000
committerRichard M. Stallman1994-11-01 08:44:15 +0000
commitcb28b9c22b831a6712b97dba6b1914dec4294d15 (patch)
tree659bc23caf64f3b1c15141b51bfd83b529182646 /src
parent57d655926a7f1fa71a27476dfb540d42a069439c (diff)
downloademacs-cb28b9c22b831a6712b97dba6b1914dec4294d15.tar.gz
emacs-cb28b9c22b831a6712b97dba6b1914dec4294d15.zip
(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')
-rw-r--r--src/term.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index 9f786d5dd35..bdb364ec691 100644
--- a/src/term.c
+++ b/src/term.c
@@ -290,6 +290,18 @@ char *tparam ();
290 290
291extern char *tgetstr (); 291extern char *tgetstr ();
292 292
293
294#ifdef WINDOWSNT
295/* We aren't X windows, but we aren't termcap either. This makes me
296 uncertain as to what value to use for frame.output_method. For
297 this file, we'll define FRAME_TERMCAP_P to be zero so that our
298 output hooks get called instead of the termcap functions. Probably
299 the best long-term solution is to define an output_windows_nt... */
300
301#undef FRAME_TERMCAP_P
302#define FRAME_TERMCAP_P(_f_) 0
303#endif /* WINDOWSNT */
304
293ring_bell () 305ring_bell ()
294{ 306{
295 if (! FRAME_TERMCAP_P (selected_frame)) 307 if (! FRAME_TERMCAP_P (selected_frame))
@@ -1374,6 +1386,42 @@ term_init (terminal_type)
1374 register char *p; 1386 register char *p;
1375 int status; 1387 int status;
1376 1388
1389#ifdef WINDOWSNT
1390 initialize_win_nt_display ();
1391
1392 Wcm_clear ();
1393 dont_calculate_costs = 0;
1394
1395 area = (char *) malloc (2044);
1396
1397 if (area == 0)
1398 abort ();
1399
1400 FrameRows = FRAME_HEIGHT (selected_frame);
1401 FrameCols = FRAME_WIDTH (selected_frame);
1402 specified_window = FRAME_HEIGHT (selected_frame);
1403
1404 delete_in_insert_mode = 1;
1405
1406 UseTabs = 0;
1407 scroll_region_ok = 0;
1408
1409 /* Seems to insert lines when it's not supposed to, messing
1410 up the display. In doing a trace, it didn't seem to be
1411 called much, so I don't think we're losing anything by
1412 turning it off. */
1413
1414 line_ins_del_ok = 0;
1415 char_ins_del_ok = 1;
1416
1417 baud_rate = 19200;
1418
1419 FRAME_CAN_HAVE_SCROLL_BARS (selected_frame) = 0;
1420 FRAME_HAS_VERTICAL_SCROLL_BARS (selected_frame) = 0;
1421
1422 return;
1423#endif /* WINDOWSNT */
1424
1377 Wcm_clear (); 1425 Wcm_clear ();
1378 dont_calculate_costs = 0; 1426 dont_calculate_costs = 0;
1379 1427