Implement --scale-up and --place

This commit is contained in:
Kovid Goyal
2023-01-02 10:30:27 +05:30
parent 73a055fe12
commit df06578c2d
6 changed files with 92 additions and 1 deletions

View File

@@ -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"