Fix graphics being freed instead of deleted in draw_screen()

This commit is contained in:
Kovid Goyal
2024-05-12 14:13:14 +05:30
parent a0840a7328
commit 5a189b1afe
4 changed files with 35 additions and 22 deletions

View File

@@ -448,6 +448,10 @@ func (self *Loop) ClearScreen() {
self.QueueWriteString("\x1b[H\x1b[2J")
}
func (self *Loop) ClearScreenButNotGraphics() {
self.QueueWriteString("\x1b[H\x1b[J")
}
func (self *Loop) SendOverlayReady() {
self.QueueWriteString("\x1bP@kitty-overlay-ready|\x1b\\")
}