History

vt: bracketed paste support

This is comprised of 3 aspects: - Take note of when applications advertise bracketed paste support via "\e[?2004h" and "\e[?2004l". - Insert bracketed paste markers ("\e[200~" and "\e[201~") around pasted content in paste_selection() when bracketed paste is active. - Add TIOCL_GETBRACKETEDPASTE to return bracketed paste status so user space daemons implementing cut-and-paste functionality (e.g. gpm, BRLTTY) may know when to insert bracketed paste markers. Link: https://en.wikipedia.org/wiki/Bracketed-paste

Nicolas Pitre committed 1 year ago

Commit 80fa7a01 parent c4c7ead4 files · +44 −4Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/tiocl.h+1−0
@@ -36,5 +36,6 @@ struct tiocl_selection { · 35 unmodified lines
3636 #define TIOCL_BLANKSCREEN 14 /* keep screen blank even if a key is pressed */
3737 #define TIOCL_BLANKEDSCREEN 15 /* return which vt was blanked */
3838 #define TIOCL_GETKMSGREDIRECT 17 /* get the vt the kernel messages are restricted to */
39+#define TIOCL_GETBRACKETEDPASTE 18 /* get whether paste may be bracketed */
3940
4041 #endif /* _LINUX_TIOCL_H */