mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
Implement --scale-up and --place
This commit is contained in:
@@ -261,6 +261,12 @@ func (self *Loop) SetCursorVisible(visible bool) {
|
||||
}
|
||||
}
|
||||
|
||||
func (self *Loop) MoveCursorTo(x, y int) {
|
||||
if x > 0 && y > 0 {
|
||||
self.QueueWriteString(fmt.Sprintf("\x1b[%d;%dH", y, x))
|
||||
}
|
||||
}
|
||||
|
||||
func (self *Loop) MoveCursorHorizontally(amt int) {
|
||||
if amt != 0 {
|
||||
suffix := "C"
|
||||
|
||||
Reference in New Issue
Block a user