More work on porting themes

This commit is contained in:
Kovid Goyal
2023-03-13 21:31:09 +05:30
parent c4731771ac
commit 21954937fb
5 changed files with 616 additions and 10 deletions

View File

@@ -311,7 +311,7 @@ func (self *Loop) SetCursorVisible(visible bool) {
const MoveCursorToTemplate = "\x1b[%d;%dH"
func (self *Loop) MoveCursorTo(x, y int) {
func (self *Loop) MoveCursorTo(x, y int) { // 1, 1 is top left
if x > 0 && y > 0 {
self.QueueWriteString(fmt.Sprintf(MoveCursorToTemplate, y, x))
}