Hacker News new | ask | show | jobs
by hanslub42 1191 days ago
How it all came to pass: https://invisible-island.net/xterm/xterm-paste64.html

It mentions one of my pet peeves with bracketed paste:

(Although most terminal emulators are designed to emulate xterm) ... there are no terminfo/termcap capabilities for the feature. Vim's variables assume that a termcap description might provide different values (omitting the “t_” prefix), but other editors simply use hard-coded strings

For example, the readline library just checks whether $TERM == 'dumb' and outputs the control codes if not (provided enable-bracketed-paste is set, of course) . Can anyone help me understand why there is no terminfo entry like setbp=\E[?2004h and unsetbp=\E[?2004l ?