cnorm / t_ve terminal question

14 views
Skip to first unread message

mckel...@gmail.com

unread,
May 3, 2021, 10:46:41 AM5/3/21
to vim_dev
Hi,

If my terminal has -

civis=\E[?25l,
cnorm=\E[?12l\E[?25h
cvvis=\E[?12;25h

Then in vim I see -

t_vi=^[[?25l      
t_VS=^[[?12l      
t_vs=^[[?12h    
t_ve=^[[?25h      

But if my terminal has -

civis=\E[?25l,
cnorm=\E[34h\E[?25h
cvvis=\E[34l

Then in vim I see -

t_vi=^[[?25l
t_VS= 
t_vs=^[[34l
t_ve=^[[34h^[[?25h

It does not seem that vim is parsing the cnorm the same way ?
I would have thought t_VS would be ^[[34h and t_ve be ^[[?25h ?
Anyone know why its parsed/calculated differently ?
I can force t_ve  but just want to understand.

thx for all things vim,
-m

Bram Moolenaar

unread,
May 3, 2021, 2:42:32 PM5/3/21
to vim...@googlegroups.com, mckel...@gmail.com
termlib/termcap works with two namespaces: the longer form and the two
letter form. Vim uses the two letter form. Inside the library these
are translated into the longer form, if needed.

Vim fetches "ve", "vi", "vs" and "VS", I'm not sure how these map to the
longer form.

--
hundred-and-one symptoms of being an internet addict:
225. You sign up for free subscriptions for all the computer magazines

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

mckel...@gmail.com

unread,
May 3, 2021, 2:54:48 PM5/3/21
to vim_dev
Hi,

ok, thank you Bram for explaining this!

take care,
-m

Reply all
Reply to author
Forward
0 new messages