tui: Disable BCE by default. #7624

133ae5eeef implemented BCE (background color erase).  That's fine if
the system terminfo claims to support it; but our built-in fallback
should not assume it.

Per https://github.com/kovidgoyal/kitty/issues/160#issuecomment-346470545
terminal support for BCE seems to be (1) optional and (2) inconsistent.
So the built-in terminfos should disable it by default.

ref #4210 #4421 #7035 #7337 #7381 #7425 #7618
This commit is contained in:
Justin M. Keyes 2017-11-23 02:21:04 +01:00
parent d9b3ebfede
commit 9888a54f15
2 changed files with 16 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -194,7 +194,7 @@ static void terminfo_start(UI *ui)
const char *term = os_getenv("TERM"); const char *term = os_getenv("TERM");
data->ut = unibi_from_env(); data->ut = unibi_from_env();
if (!data->ut) { if (!data->ut) {
data->ut = load_builtin_terminfo(term); data->ut = terminfo_from_builtin(term);
} }
// None of the following work over SSH; see :help TERM . // None of the following work over SSH; see :help TERM .
const char *colorterm = os_getenv("COLORTERM"); const char *colorterm = os_getenv("COLORTERM");