From 68db9cb499ab32190edae6c285942c5fb7cf39ed Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 3 Nov 2023 00:07:28 +0900 Subject: Sixel and Kitty image support on Windows binary (#2544) --- src/tui/light.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tui/light.go') diff --git a/src/tui/light.go b/src/tui/light.go index e5950cde..dd1f9f3d 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -31,8 +31,12 @@ const consoleDevice string = "/dev/tty" var offsetRegexp *regexp.Regexp = regexp.MustCompile("(.*)\x1b\\[([0-9]+);([0-9]+)R") var offsetRegexpBegin *regexp.Regexp = regexp.MustCompile("^\x1b\\[[0-9]+;[0-9]+R") -func (r *LightRenderer) PassThrough(str string) { - r.queued.WriteString("\x1b7" + str + "\x1b8") +func (r *LightRenderer) PassThrough(y int, x int, data string) { + r.queued.WriteString("\x1b7" + data + "\x1b8") +} + +func (r *LightRenderer) Sync(bool) { + // No-op } func (r *LightRenderer) stderr(str string) { -- cgit v1.2.3