comparison src/term.c @ 694:07d199fe02ed v7.0209

updated for version 7.0209
author vimboss
date Mon, 27 Feb 2006 23:58:35 +0000
parents bcd2edc4539e
children 2af8de31a3a8
comparison
equal deleted inserted replaced
693:05dc93b9c61f 694:07d199fe02ed
1559 t_colors = nr; 1559 t_colors = nr;
1560 if (t_colors > 1) 1560 if (t_colors > 1)
1561 sprintf((char *)nr_colors, "%d", t_colors); 1561 sprintf((char *)nr_colors, "%d", t_colors);
1562 else 1562 else
1563 *nr_colors = NUL; 1563 *nr_colors = NUL;
1564 set_string_option_direct((char_u *)"t_Co", -1, nr_colors, OPT_FREE); 1564 set_string_option_direct((char_u *)"t_Co", -1, nr_colors, OPT_FREE, 0);
1565 # ifdef FEAT_EVAL
1566 set_option_scriptID((char_u *)"t_Co", current_SID);
1567 # endif
1568 } 1565 }
1569 #endif 1566 #endif
1570 1567
1571 #ifdef HAVE_TGETENT 1568 #ifdef HAVE_TGETENT
1572 static char *(key_names[]) = 1569 static char *(key_names[]) =
1823 { 1820 {
1824 screen_start(); /* don't know where cursor is now */ 1821 screen_start(); /* don't know where cursor is now */
1825 out_flush(); 1822 out_flush();
1826 ui_delay(2000L, TRUE); 1823 ui_delay(2000L, TRUE);
1827 } 1824 }
1828 set_string_option_direct((char_u *)"term", -1, term, OPT_FREE); 1825 set_string_option_direct((char_u *)"term", -1, term,
1826 OPT_FREE, 0);
1829 display_errors(); 1827 display_errors();
1830 } 1828 }
1831 out_flush(); 1829 out_flush();
1832 #ifdef HAVE_TGETENT 1830 #ifdef HAVE_TGETENT
1833 if (!termcap_cleared) 1831 if (!termcap_cleared)
2501 if (term == NULL) 2499 if (term == NULL)
2502 term = mch_getenv((char_u *)"TERM"); 2500 term = mch_getenv((char_u *)"TERM");
2503 #endif 2501 #endif
2504 if (term == NULL || *term == NUL) 2502 if (term == NULL || *term == NUL)
2505 term = DEFAULT_TERM; 2503 term = DEFAULT_TERM;
2506 set_string_option_direct((char_u *)"term", -1, term, OPT_FREE); 2504 set_string_option_direct((char_u *)"term", -1, term, OPT_FREE, 0);
2507 # ifdef FEAT_EVAL
2508 set_option_scriptID((char_u *)"term", current_SID);
2509 # endif
2510 2505
2511 /* Set the default terminal name. */ 2506 /* Set the default terminal name. */
2512 set_string_default("term", term); 2507 set_string_default("term", term);
2513 set_string_default("ttytype", term); 2508 set_string_default("ttytype", term);
2514 2509