diff options
author | Jonathan de Boyne Pollard <postmaster@localhost> | 2017-05-22 21:07:23 +0100 |
---|---|---|
committer | Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> | 2017-06-03 18:53:27 +0100 |
commit | 5e5914655ba546c424a13d768469c21b444b8883 (patch) | |
tree | 3b6093657cbd73fef23b212f2c7af15a1e2a216a | |
parent | 7821eef258eac66905c4490bbd2f0e98d29ff226 (diff) | |
download | rneovim-5e5914655ba546c424a13d768469c21b444b8883.tar.gz rneovim-5e5914655ba546c424a13d768469c21b444b8883.tar.bz2 rneovim-5e5914655ba546c424a13d768469c21b444b8883.zip |
tui: document fix_terminfo()'s several tasks
-rw-r--r-- | src/nvim/tui/tui.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 93ad022470..83198ee33c 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1052,6 +1052,14 @@ static TermType detect_term(const char *term, const char *colorterm) return kTermUnknown; } +/// This has three tasks. +/// 1. On termcap-only systems, it reads $TERM and fills in all of the things +/// that unibilium (which uses terminfo) will not have. +/// 2. It fills in extra capabilities that unibilium and terminfo do not know +/// anything about, such as bracketed paste control. Some of these are +/// (wrongly) assumed to be universal. Others are dependent from $TERM . +/// 3. It fills in capabilities that might have been missing from the termcap +/// entry that we nonetheless need, which are also worked out from $TERM . static void fix_terminfo(TUIData *data) { unibi_term *ut = data->ut; |