tui: expose terminal type in 'term' option

Since "builtin" terminfo definitions were implemented (7cbf52db1b),
the decisions made by tui.c and terminfo.c are more relevant. Exposing
that decision in the 'term' option helps with troubleshooting.

Also: remove code that allowed setting t_Co. `:set t_Co=…` has never
worked; the highlight_spec test asserting that nvim_set_option('t_Co')
_does_ work makes no sense, and should not have worked.
This commit is contained in:
Justin M. Keyes
2017-11-26 23:15:17 +01:00
parent a043899ba2
commit 944e3c0619
7 changed files with 148 additions and 46 deletions

View File

@@ -14,8 +14,6 @@ describe('colorscheme compatibility', function()
it('t_Co is set to 256 by default', function()
eq('256', eval('&t_Co'))
request('nvim_set_option', 't_Co', '88')
eq('88', eval('&t_Co'))
end)
end)