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
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -36,5 +36,6 @@ struct tiocl_selection { · 35 unmodified lines | |||
| 36 | #define TIOCL_BLANKSCREEN 14 /* keep screen blank even if a key is pressed */ | 36 | #define TIOCL_BLANKSCREEN 14 /* keep screen blank even if a key is pressed */ |
| 37 | #define TIOCL_BLANKEDSCREEN 15 /* return which vt was blanked */ | 37 | #define TIOCL_BLANKEDSCREEN 15 /* return which vt was blanked */ |
| 38 | #define TIOCL_GETKMSGREDIRECT 17 /* get the vt the kernel messages are restricted to */ | 38 | #define TIOCL_GETKMSGREDIRECT 17 /* get the vt the kernel messages are restricted to */ |
| 39 | #define TIOCL_GETBRACKETEDPASTE 18 /* get whether paste may be bracketed */ | ||
| 39 | 40 | ||
| 40 | #endif /* _LINUX_TIOCL_H */ | 41 | #endif /* _LINUX_TIOCL_H */ |