From 4c84faddfaf065aff726c6cbd4a6690625affe9c Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Wed, 24 Jan 2024 13:23:02 -0600 Subject: [PATCH] vaxis: implement bracketed paste Signed-off-by: Tim Culverhouse --- README.md | 2 +- src/ctlseqs.zig | 5 +++++ src/vaxis.zig | 10 ++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 95a0c02..e851723 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Contributions are welcome. | ------------------------------ | :---: | :------: | :-------: | | RGB | ✅ | ✅ | ✅ | | Hyperlinks | ✅ | planned | ❌ | -| Bracketed Paste | ✅ | planned | ❌ | +| Bracketed Paste | ✅ | ✅ | ❌ | | Kitty Keyboard | ✅ | ✅ | ✅ | | Styled Underlines | ✅ | ✅ | ✅ | | Mouse Shapes (OSC 22) | ✅ | planned | ❌ | diff --git a/src/ctlseqs.zig b/src/ctlseqs.zig index 0cc2cd5..874223e 100644 --- a/src/ctlseqs.zig +++ b/src/ctlseqs.zig @@ -14,9 +14,14 @@ pub const sixel_geometry_query = "\x1b[?2;1;0S"; pub const sync_set = "\x1b[?2026h"; pub const sync_reset = "\x1b[?2026l"; +// unicode pub const unicode_set = "\x1b[?2027h"; pub const unicode_reset = "\x1b[?2027l"; +// bracketed paste +pub const bp_set = "\x1b[?2004h"; +pub const bp_reset = "\x1b[?2004l"; + // Key encoding pub const csi_u_push = "\x1b[>{d}u"; pub const csi_u_pop = "\x1b[