fix: don't use sixel geometry query yet

This query has a response that interferes with key f4. We need to fix
that parsing before doing sixel queries, and we don't even support
sixels yet.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
Tim Culverhouse 2024-01-24 06:25:45 -06:00
parent 9f89ed06f3
commit 1b83dfe652
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,6 @@ pub fn clear(self: Window) void {
/// returns the width of the grapheme. This depends on the terminal capabilities /// returns the width of the grapheme. This depends on the terminal capabilities
pub fn gwidth(self: Window, str: []const u8) usize { pub fn gwidth(self: Window, str: []const u8) usize {
const m: gw.Method = if (self.screen.unicode) .unicode else .wcwidth; const m: gw.Method = if (self.screen.unicode) .unicode else .wcwidth;
log.info("using method {any}", .{m});
return gw.gwidth(str, m) catch 1; return gw.gwidth(str, m) catch 1;
} }

View file

@ -210,7 +210,8 @@ pub fn Vaxis(comptime T: type) type {
// parse that // parse that
// that // that
// _ = try tty.write(ctlseqs.kitty_graphics_query); // _ = try tty.write(ctlseqs.kitty_graphics_query);
_ = try tty.write(ctlseqs.sixel_geometry_query); // TODO: sixel geometry query interferes with F4 keys.
// _ = try tty.write(ctlseqs.sixel_geometry_query);
// TODO: XTGETTCAP queries ("RGB", "Smulx") // TODO: XTGETTCAP queries ("RGB", "Smulx")