Mercurial > vim
comparison src/term.c @ 9536:b2aada04d84e v7.4.2048
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 16 14:47:36 2016 +0200
patch 7.4.2048
Problem: There is still code and help for unsupported systems.
Solution: Remove the code and text. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Jul 2016 15:00:07 +0200 |
parents | 69ed2c9d34a6 |
children | 201773c00b96 |
comparison
equal
deleted
inserted
replaced
9535:eb813d0c8346 | 9536:b2aada04d84e |
---|---|
393 {K_DOWN, "\033[B"}, | 393 {K_DOWN, "\033[B"}, |
394 {K_LEFT, "\033[D"}, | 394 {K_LEFT, "\033[D"}, |
395 {K_RIGHT, "\033[C"}, | 395 {K_RIGHT, "\033[C"}, |
396 # endif | 396 # endif |
397 | 397 |
398 # if defined(UNIX) || defined(ALL_BUILTIN_TCAPS) || defined(SOME_BUILTIN_TCAPS) || defined(__EMX__) | 398 # if defined(UNIX) || defined(ALL_BUILTIN_TCAPS) || defined(SOME_BUILTIN_TCAPS) |
399 /* | 399 /* |
400 * standard ANSI terminal, default for unix | 400 * standard ANSI terminal, default for unix |
401 */ | 401 */ |
402 {(int)KS_NAME, "ansi"}, | 402 {(int)KS_NAME, "ansi"}, |
403 {(int)KS_CE, IF_EB("\033[K", ESC_STR "[K")}, | 403 {(int)KS_CE, IF_EB("\033[K", ESC_STR "[K")}, |
429 # else | 429 # else |
430 {(int)KS_CRI, IF_EB("\033[%dC", ESC_STR "[%dC")}, | 430 {(int)KS_CRI, IF_EB("\033[%dC", ESC_STR "[%dC")}, |
431 # endif | 431 # endif |
432 # endif | 432 # endif |
433 | 433 |
434 # if defined(ALL_BUILTIN_TCAPS) || defined(__EMX__) | 434 # if defined(ALL_BUILTIN_TCAPS) |
435 /* | 435 /* |
436 * These codes are valid when nansi.sys or equivalent has been installed. | 436 * These codes are valid when nansi.sys or equivalent has been installed. |
437 * Function keys on a PC are preceded with a NUL. These are converted into | 437 * Function keys on a PC are preceded with a NUL. These are converted into |
438 * K_NUL '\316' in mch_inchar(), because we cannot handle NULs in key codes. | 438 * K_NUL '\316' in mch_inchar(), because we cannot handle NULs in key codes. |
439 * CTRL-arrow is used instead of SHIFT-arrow. | 439 * CTRL-arrow is used instead of SHIFT-arrow. |
440 */ | 440 */ |
441 #ifdef __EMX__ | |
442 {(int)KS_NAME, "os2ansi"}, | |
443 #else | |
444 {(int)KS_NAME, "pcansi"}, | 441 {(int)KS_NAME, "pcansi"}, |
445 {(int)KS_DL, "\033[M"}, | 442 {(int)KS_DL, "\033[M"}, |
446 {(int)KS_AL, "\033[L"}, | 443 {(int)KS_AL, "\033[L"}, |
447 #endif | |
448 {(int)KS_CE, "\033[K"}, | 444 {(int)KS_CE, "\033[K"}, |
449 {(int)KS_CL, "\033[2J"}, | 445 {(int)KS_CL, "\033[2J"}, |
450 {(int)KS_ME, "\033[0m"}, | 446 {(int)KS_ME, "\033[0m"}, |
451 {(int)KS_MR, "\033[5m"}, /* reverse: black on lightgrey */ | 447 {(int)KS_MR, "\033[5m"}, /* reverse: black on lightgrey */ |
452 {(int)KS_MD, "\033[1m"}, /* bold: white text */ | 448 {(int)KS_MD, "\033[1m"}, /* bold: white text */ |
514 {K_END, "\316O"}, | 510 {K_END, "\316O"}, |
515 {K_PAGEDOWN, "\316Q"}, | 511 {K_PAGEDOWN, "\316Q"}, |
516 {K_PAGEUP, "\316I"}, | 512 {K_PAGEUP, "\316I"}, |
517 # endif | 513 # endif |
518 | 514 |
519 # if defined(WIN3264) || defined(ALL_BUILTIN_TCAPS) || defined(__EMX__) | 515 # if defined(WIN3264) || defined(ALL_BUILTIN_TCAPS) |
520 /* | 516 /* |
521 * These codes are valid for the Win32 Console . The entries that start with | 517 * These codes are valid for the Win32 Console . The entries that start with |
522 * ESC | are translated into console calls in os_win32.c. The function keys | 518 * ESC | are translated into console calls in os_win32.c. The function keys |
523 * are also translated in os_win32.c. | 519 * are also translated in os_win32.c. |
524 */ | 520 */ |
791 {(int)KS_CL, IF_EB("\033H\033J", ESC_STR "H" ESC_STR_nc "J")}, | 787 {(int)KS_CL, IF_EB("\033H\033J", ESC_STR "H" ESC_STR_nc "J")}, |
792 {(int)KS_MS, "y"}, | 788 {(int)KS_MS, "y"}, |
793 # endif | 789 # endif |
794 # endif | 790 # endif |
795 | 791 |
796 # if defined(UNIX) || defined(ALL_BUILTIN_TCAPS) || defined(SOME_BUILTIN_TCAPS) || defined(__EMX__) | 792 # if defined(UNIX) || defined(ALL_BUILTIN_TCAPS) || defined(SOME_BUILTIN_TCAPS) |
797 {(int)KS_NAME, "xterm"}, | 793 {(int)KS_NAME, "xterm"}, |
798 {(int)KS_CE, IF_EB("\033[K", ESC_STR "[K")}, | 794 {(int)KS_CE, IF_EB("\033[K", ESC_STR "[K")}, |
799 {(int)KS_AL, IF_EB("\033[L", ESC_STR "[L")}, | 795 {(int)KS_AL, IF_EB("\033[L", ESC_STR "[L")}, |
800 # ifdef TERMINFO | 796 # ifdef TERMINFO |
801 {(int)KS_CAL, IF_EB("\033[%p1%dL", ESC_STR "[%p1%dL")}, | 797 {(int)KS_CAL, IF_EB("\033[%p1%dL", ESC_STR "[%p1%dL")}, |
1310 | 1306 |
1311 #ifdef __MINT__ | 1307 #ifdef __MINT__ |
1312 # define DEFAULT_TERM (char_u *)"vt52" | 1308 # define DEFAULT_TERM (char_u *)"vt52" |
1313 #endif | 1309 #endif |
1314 | 1310 |
1315 #ifdef __EMX__ | |
1316 # define DEFAULT_TERM (char_u *)"os2ansi" | |
1317 #endif | |
1318 | |
1319 #ifdef VMS | 1311 #ifdef VMS |
1320 # define DEFAULT_TERM (char_u *)"vt320" | 1312 # define DEFAULT_TERM (char_u *)"vt320" |
1321 #endif | 1313 #endif |
1322 | 1314 |
1323 #ifdef __BEOS__ | 1315 #ifdef __BEOS__ |
2092 p = NULL; | 2084 p = NULL; |
2093 return (char_u *)p; | 2085 return (char_u *)p; |
2094 } | 2086 } |
2095 #endif /* HAVE_TGETENT */ | 2087 #endif /* HAVE_TGETENT */ |
2096 | 2088 |
2097 #if defined(HAVE_TGETENT) && (defined(UNIX) || defined(__EMX__) || defined(VMS) || defined(MACOS_X)) | 2089 #if defined(HAVE_TGETENT) && (defined(UNIX) || defined(VMS) || defined(MACOS_X)) |
2098 /* | 2090 /* |
2099 * Get Columns and Rows from the termcap. Used after a window signal if the | 2091 * Get Columns and Rows from the termcap. Used after a window signal if the |
2100 * ioctl() fails. It doesn't make sense to call tgetent each time if the "co" | 2092 * ioctl() fails. It doesn't make sense to call tgetent each time if the "co" |
2101 * and "li" entries never change. But on some systems this works. | 2093 * and "li" entries never change. But on some systems this works. |
2102 * Errors while getting the entries are ignored. | 2094 * Errors while getting the entries are ignored. |
2396 } | 2388 } |
2397 | 2389 |
2398 /* | 2390 /* |
2399 * the number of calls to ui_write is reduced by using the buffer "out_buf" | 2391 * the number of calls to ui_write is reduced by using the buffer "out_buf" |
2400 */ | 2392 */ |
2401 #ifdef DOS16 | 2393 #define OUT_SIZE 2047 |
2402 # define OUT_SIZE 255 /* only have 640K total... */ | |
2403 #else | |
2404 # define OUT_SIZE 2047 | |
2405 #endif | |
2406 /* Add one to allow mch_write() in os_win32.c to append a NUL */ | 2394 /* Add one to allow mch_write() in os_win32.c to append a NUL */ |
2407 static char_u out_buf[OUT_SIZE + 1]; | 2395 static char_u out_buf[OUT_SIZE + 1]; |
2408 static int out_pos = 0; /* number of chars in out_buf */ | 2396 static int out_pos = 0; /* number of chars in out_buf */ |
2409 | 2397 |
2410 /* | 2398 /* |