diff options
author | Fredrik Fornwall <fredrik@fornwall.net> | 2014-07-29 22:55:49 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-08-07 01:37:18 -0400 |
commit | e6edfa961726abd251cd8daf9558d40d553f3d1d (patch) | |
tree | f8f3df538fd7e4255b7cdc33bad62632d7be9bee | |
parent | 3599a834d5b731d3b24767e3645b39290042b60c (diff) | |
download | rneovim-e6edfa961726abd251cd8daf9558d40d553f3d1d.tar.gz rneovim-e6edfa961726abd251cd8daf9558d40d553f3d1d.tar.bz2 rneovim-e6edfa961726abd251cd8daf9558d40d553f3d1d.zip |
Drop SGI IRIS support. #1006
-rw-r--r-- | runtime/doc/options.txt | 14 | ||||
-rw-r--r-- | runtime/doc/os_vms.txt | 1 | ||||
-rw-r--r-- | runtime/doc/term.txt | 3 | ||||
-rw-r--r-- | src/nvim/os_unix.c | 10 | ||||
-rw-r--r-- | src/nvim/term.c | 115 |
5 files changed, 10 insertions, 133 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 2af731e790..3fdb3f38b5 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -3988,9 +3988,8 @@ A jump table for the options with a short description can be found at |Q_op|. currently being edited. Only the last part of the name is used. Overridden by the 'iconstring' option. Only works if the terminal supports setting window icons (currently - only X11 GUI and terminals with a non-empty 't_IS' option - these are - Unix xterm and iris-ansi by default, where 't_IS' is taken from the - builtin termcap). + only X11 GUI and terminals with a non-empty 't_IS' option - this is + Unix xterm by default, where 't_IS' is taken from the builtin termcap). When Vim was compiled with HAVE_X11 defined, the original icon will be restored if possible |X11|. See |X11-icon| for changing the icon on X11. @@ -7359,8 +7358,8 @@ A jump table for the options with a short description can be found at |Q_op|. - VIM the server name |v:servername| or "VIM" Only works if the terminal supports setting window titles (currently Amiga console, Win32 console, all GUI versions and - terminals with a non- empty 't_ts' option - these are Unix xterm and - iris-ansi by default, where 't_ts' is taken from the builtin termcap). + terminals with a non- empty 't_ts' option - this is Unix xterm + by default, where 't_ts' is taken from the builtin termcap). *X11* When Vim was compiled with HAVE_X11 defined, the original title will be restored if possible. The output of ":version" will include "+X11" @@ -7492,9 +7491,8 @@ A jump table for the options with a short description can be found at |Q_op|. *'ttyfast'* *'tf'* *'nottyfast'* *'notf'* 'ttyfast' 'tf' boolean (default off, on when 'term' is xterm, hpterm, - sun-cmd, screen, rxvt, dtterm or - iris-ansi; also on when running Vim in - a DOS console) + sun-cmd, screen, rxvt or dtterm; also + on when running Vim in a DOS console) global {not in Vi} Indicates a fast terminal connection. More characters will be sent to diff --git a/runtime/doc/os_vms.txt b/runtime/doc/os_vms.txt index 03b11ba87e..82f8ae8b5b 100644 --- a/runtime/doc/os_vms.txt +++ b/runtime/doc/os_vms.txt @@ -437,7 +437,6 @@ Terminal entry not found in termcap builtin_pcansi builtin_win32 builtin_xterm - builtin_iris-ansi builtin_debug builtin_dumb defaulting to 'vt320' diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt index d2dd547061..de32857bb9 100644 --- a/runtime/doc/term.txt +++ b/runtime/doc/term.txt @@ -453,8 +453,7 @@ allows title setting via sending strings. They are sent before and after the title string, respectively. Similar 't_IS' and 't_IE' are used to set the icon text. These are Vim-internal extensions of the Unix termcap, so they cannot be obtained from an external termcap. However, the builtin termcap -contains suitable entries for xterm and iris-ansi, so you don't need to set -them here. +contains suitable entries for xterm, so you don't need to set them here. *hpterm* If inversion or other highlighting does not work correctly, try setting the 't_xs' option to a non-empty string. This makes the 't_ce' code be used to diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index 9e7940bc2a..4809f0c38c 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -307,14 +307,6 @@ int use_xterm_mouse(void) return 0; } -int vim_is_iris(char_u *name) -{ - if (name == NULL) - return FALSE; - return STRNICMP(name, "iris-ansi", 9) == 0 - || STRCMP(name, "builtin_iris-ansi") == 0; -} - int vim_is_vt300(char_u *name) { if (name == NULL) @@ -333,7 +325,7 @@ int vim_is_fastterm(char_u *name) { if (name == NULL) return FALSE; - if (vim_is_xterm(name) || vim_is_vt300(name) || vim_is_iris(name)) + if (vim_is_xterm(name) || vim_is_vt300(name)) return TRUE; return STRNICMP(name, "hpterm", 6) == 0 || STRNICMP(name, "sun-cmd", 7) == 0 diff --git a/src/nvim/term.c b/src/nvim/term.c index 98db1fb9fa..24e8e03402 100644 --- a/src/nvim/term.c +++ b/src/nvim/term.c @@ -807,115 +807,6 @@ static struct builtin_term builtin_termcaps[] = {TERMCAP2KEY('F', 'R'), IF_EB("\033[58;*~", ESC_STR "[58;*~")}, /* F37 */ # endif -# if defined(UNIX) || defined(ALL_BUILTIN_TCAPS) - /* - * iris-ansi for Silicon Graphics machines. - */ - {(int)KS_NAME, "iris-ansi"}, - {(int)KS_CE, "\033[K"}, - {(int)KS_CD, "\033[J"}, - {(int)KS_AL, "\033[L"}, -# ifdef TERMINFO - {(int)KS_CAL, "\033[%p1%dL"}, -# else - {(int)KS_CAL, "\033[%dL"}, -# endif - {(int)KS_DL, "\033[M"}, -# ifdef TERMINFO - {(int)KS_CDL, "\033[%p1%dM"}, -# else - {(int)KS_CDL, "\033[%dM"}, -# endif - {(int)KS_CL, "\033[H\033[2J"}, - {(int)KS_VE, "\033[9/y\033[12/y"}, /* These aren't documented */ - {(int)KS_VS, "\033[10/y\033[=1h\033[=2l"}, /* These aren't documented */ - {(int)KS_TI, "\033[=6h"}, - {(int)KS_TE, "\033[=6l"}, - {(int)KS_SE, "\033[21;27m"}, - {(int)KS_SO, "\033[1;7m"}, - {(int)KS_ME, "\033[m"}, - {(int)KS_MR, "\033[7m"}, - {(int)KS_MD, "\033[1m"}, - {(int)KS_CCO, "8"}, /* allow 8 colors */ - {(int)KS_CZH, "\033[3m"}, /* italic mode on */ - {(int)KS_CZR, "\033[23m"}, /* italic mode off */ - {(int)KS_US, "\033[4m"}, /* underline on */ - {(int)KS_UE, "\033[24m"}, /* underline off */ -# ifdef TERMINFO - {(int)KS_CAB, "\033[4%p1%dm"}, /* set background color (ANSI) */ - {(int)KS_CAF, "\033[3%p1%dm"}, /* set foreground color (ANSI) */ - {(int)KS_CSB, "\033[102;%p1%dm"}, /* set screen background color */ - {(int)KS_CSF, "\033[101;%p1%dm"}, /* set screen foreground color */ -# else - {(int)KS_CAB, "\033[4%dm"}, /* set background color (ANSI) */ - {(int)KS_CAF, "\033[3%dm"}, /* set foreground color (ANSI) */ - {(int)KS_CSB, "\033[102;%dm"}, /* set screen background color */ - {(int)KS_CSF, "\033[101;%dm"}, /* set screen foreground color */ -# endif - {(int)KS_MS, "y"}, /* guessed */ - {(int)KS_UT, "y"}, /* guessed */ - {(int)KS_LE, "\b"}, -# ifdef TERMINFO - {(int)KS_CM, "\033[%i%p1%d;%p2%dH"}, -# else - {(int)KS_CM, "\033[%i%d;%dH"}, -# endif - {(int)KS_SR, "\033M"}, -# ifdef TERMINFO - {(int)KS_CRI, "\033[%p1%dC"}, -# else - {(int)KS_CRI, "\033[%dC"}, -# endif - {(int)KS_CIS, "\033P3.y"}, - {(int)KS_CIE, "\234"}, /* ST "String Terminator" */ - {(int)KS_TS, "\033P1.y"}, - {(int)KS_FS, "\234"}, /* ST "String Terminator" */ -# ifdef TERMINFO - {(int)KS_CWS, "\033[203;%p1%d;%p2%d/y"}, - {(int)KS_CWP, "\033[205;%p1%d;%p2%d/y"}, -# else - {(int)KS_CWS, "\033[203;%d;%d/y"}, - {(int)KS_CWP, "\033[205;%d;%d/y"}, -# endif - {K_UP, "\033[A"}, - {K_DOWN, "\033[B"}, - {K_LEFT, "\033[D"}, - {K_RIGHT, "\033[C"}, - {K_S_UP, "\033[161q"}, - {K_S_DOWN, "\033[164q"}, - {K_S_LEFT, "\033[158q"}, - {K_S_RIGHT, "\033[167q"}, - {K_F1, "\033[001q"}, - {K_F2, "\033[002q"}, - {K_F3, "\033[003q"}, - {K_F4, "\033[004q"}, - {K_F5, "\033[005q"}, - {K_F6, "\033[006q"}, - {K_F7, "\033[007q"}, - {K_F8, "\033[008q"}, - {K_F9, "\033[009q"}, - {K_F10, "\033[010q"}, - {K_F11, "\033[011q"}, - {K_F12, "\033[012q"}, - {K_S_F1, "\033[013q"}, - {K_S_F2, "\033[014q"}, - {K_S_F3, "\033[015q"}, - {K_S_F4, "\033[016q"}, - {K_S_F5, "\033[017q"}, - {K_S_F6, "\033[018q"}, - {K_S_F7, "\033[019q"}, - {K_S_F8, "\033[020q"}, - {K_S_F9, "\033[021q"}, - {K_S_F10, "\033[022q"}, - {K_S_F11, "\033[023q"}, - {K_S_F12, "\033[024q"}, - {K_INS, "\033[139q"}, - {K_HOME, "\033[H"}, - {K_END, "\033[146q"}, - {K_PAGEUP, "\033[150q"}, - {K_PAGEDOWN, "\033[154q"}, -# endif - # if defined(DEBUG) || defined(ALL_BUILTIN_TCAPS) /* * for debugging @@ -1148,9 +1039,7 @@ static struct builtin_term *find_builtin_term(char_u *term) while (p->bt_string != NULL) { if (p->bt_entry == (int)KS_NAME) { #ifdef UNIX - if (STRCMP(p->bt_string, "iris-ansi") == 0 && vim_is_iris(term)) - return p; - else if (STRCMP(p->bt_string, "xterm") == 0 && vim_is_xterm(term)) + if (STRCMP(p->bt_string, "xterm") == 0 && vim_is_xterm(term)) return p; else #endif @@ -1557,7 +1446,7 @@ int set_termname(char_u *term) #if defined(UNIX) /* - * 'ttyfast' is default on for xterm, iris-ansi and a few others. + * 'ttyfast' is default on for xterm and a few others. */ if (vim_is_fastterm(term)) p_tf = TRUE; |