From ece4ddac81e69f342d7631fd098582dbc5eca9d0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 26 Sep 2023 21:56:22 -0700 Subject: [PATCH] terminfo: OSC 52 support --- src/terminfo/ghostty.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index 5c78a6eb1..c1d599fec 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -104,6 +104,9 @@ pub const ghostty: Source = .{ // Cursor style reset .{ .name = "Se", .value = .{ .string = "\\E[2 q" } }, + // OSC 52 Clipboard + .{ .name = "Ms", .value = .{ .string = "\\E]52;%p1%s;%p2%s\\007" } }, + // These are all capabilities that should be pretty straightforward // and map to input sequences. .{ .name = "bel", .value = .{ .string = "^G" } },