From 76b2bf7bbc3f632eacc88c3a6d1bcbcaa27008e7 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 19 Jan 2024 10:41:22 -0600 Subject: [PATCH] ctlseqs: add initial ctlseqs Signed-off-by: Tim Culverhouse --- src/ctlseqs.zig | 16 ++++++++++++++++ src/main.zig | 1 + 2 files changed, 17 insertions(+) create mode 100644 src/ctlseqs.zig diff --git a/src/ctlseqs.zig b/src/ctlseqs.zig new file mode 100644 index 0000000..5e2b223 --- /dev/null +++ b/src/ctlseqs.zig @@ -0,0 +1,16 @@ +// Queries +pub const primary_device_attrs = "\x1b[c"; +pub const tertiary_device_attrs = "\x1b[=c"; +pub const xtversion = "\x1b[>0q"; + +// Key encoding +pub const csi_u = "\x1b[?u"; +pub const csi_u_push = "\x1b[>{d}u"; +pub const csi_u_pop = "\x1b[