comparison src/term.c @ 64773:aebbf7125281

(set_terminal_modes): If no TS_termcap_modes string, output newlines to scroll the old screen contents off the screen.
author Richard M. Stallman <rms@gnu.org>
date Sun, 07 Aug 2005 17:35:09 +0000
parents a0d1312ede66
children 462eb3df5c58
comparison
equal deleted inserted replaced
64772:060177e931f8 64773:aebbf7125281
447 void 447 void
448 set_terminal_modes () 448 set_terminal_modes ()
449 { 449 {
450 if (FRAME_TERMCAP_P (XFRAME (selected_frame))) 450 if (FRAME_TERMCAP_P (XFRAME (selected_frame)))
451 { 451 {
452 OUTPUT_IF (TS_termcap_modes); 452 if (TS_termcap_modes)
453 OUTPUT (TS_termcap_modes);
454 else
455 {
456 /* Output enough newlines to scroll all the old screen contents
457 off the screen, so it won't be overwritten and lost. */
458 int i;
459 for (i = 0; i < FRAME_LINES (XFRAME (selected_frame)); i++)
460 putchar ('\n');
461 }
462
453 OUTPUT_IF (TS_cursor_visible); 463 OUTPUT_IF (TS_cursor_visible);
454 OUTPUT_IF (TS_keypad_mode); 464 OUTPUT_IF (TS_keypad_mode);
455 losecursor (); 465 losecursor ();
456 } 466 }
457 else 467 else