summaryrefslogtreecommitdiffstats
path: root/src/tui/light.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-11-03 00:07:28 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-11-03 00:09:02 +0900
commit68db9cb499ab32190edae6c285942c5fb7cf39ed (patch)
tree4c70d7627aac26faa5ba3fbadc90fad770416046 /src/tui/light.go
parentd0466fa77714cccae6875facafb4a7d49e3f958e (diff)
Sixel and Kitty image support on Windows binary (#2544)
Diffstat (limited to 'src/tui/light.go')
-rw-r--r--src/tui/light.go8
1 files changed, 6 insertions, 2 deletions
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) {