The funny thing is that termcap and vi were not created for a DEC terminal.
They were created specifically for the Lear Siegler ADM-3A, which predates the VT100. The work was done entirely by Bill Joy, who later joined Sun Microsystems.
How would you check if a incoming escape sequence is the F1 key pressed by the user?
Re:ANSI escape codes (2019)
by otabdeveloper4 on Thursday February 04, 2021 @12:27AM
(#26022912)
Just assume your the terminal is a vt220, a.k.a. xterm.
There is no reason to use terminfo or libncurses in 2021.