TUI: support TERM=nsterm (#9244)

`:help $TERM` recommends TERM=nsterm for Terminal.app but we did not
actually support it.

NB: We don't include a builtin term for Terminal.app, presumably because
nsterm is commonly available on most systems (`infocmp nsterm`).
This commit is contained in:
Justin M. Keyes 2018-11-18 19:58:41 +01:00 committed by GitHub
parent 344dd2757a
commit 463d28cc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1466,7 +1466,9 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
#if 0 // We don't need to identify this specifically, for now.
bool roxterm = !!os_getenv("ROXTERM_ID");
#endif
bool xterm = terminfo_is_term_family(term, "xterm");
bool xterm = terminfo_is_term_family(term, "xterm")
// Treat Terminal.app as generic xterm-like, for now.
|| terminfo_is_term_family(term, "nsterm");
bool kitty = terminfo_is_term_family(term, "xterm-kitty");
bool linuxvt = terminfo_is_term_family(term, "linux");
bool rxvt = terminfo_is_term_family(term, "rxvt");