comparison src/term.c @ 9797:05d9072c5a38

(term_init) [WINDOWSNT]: Do some Windows-specific initialization, then skip the rest of the code. (FRAME_TERMCAP_P) [WINDOWSNT]: Always return 0.
author Richard M. Stallman <rms@gnu.org>
date Tue, 01 Nov 1994 08:44:15 +0000
parents 4e0d87055e0c
children 3f9f77a9488d
comparison
equal deleted inserted replaced
9796:de7579c71881 9797:05d9072c5a38
288 288
289 char *tparam (); 289 char *tparam ();
290 290
291 extern char *tgetstr (); 291 extern 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
293 ring_bell () 305 ring_bell ()
294 { 306 {
295 if (! FRAME_TERMCAP_P (selected_frame)) 307 if (! FRAME_TERMCAP_P (selected_frame))
296 { 308 {
297 (*ring_bell_hook) (); 309 (*ring_bell_hook) ();
1372 char **address = &area; 1384 char **address = &area;
1373 char buffer[2044]; 1385 char buffer[2044];
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
1380 status = tgetent (buffer, terminal_type); 1428 status = tgetent (buffer, terminal_type);
1381 if (status < 0) 1429 if (status < 0)