mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Bump termenv and futher integrate it into terminal controls
This commit is contained in:
@@ -28,13 +28,13 @@ func moveCursor(w io.Writer, row, col int) {
|
||||
}
|
||||
|
||||
func saveCursorPosition(w io.Writer) {
|
||||
fmt.Fprint(w, te.CSI+"s")
|
||||
fmt.Fprint(w, te.CSI+te.SaveCursorPositionSeq)
|
||||
}
|
||||
|
||||
func restoreCursorPosition(w io.Writer) {
|
||||
fmt.Fprint(w, te.CSI+"u")
|
||||
fmt.Fprint(w, te.CSI+te.RestoreCursorPositionSeq)
|
||||
}
|
||||
|
||||
func changeScrollingRegion(w io.Writer, top, bottom int) {
|
||||
fmt.Fprintf(w, te.CSI+"%d;%dr", top, bottom)
|
||||
fmt.Fprintf(w, te.CSI+te.ChangeScrollingRegionSeq, top, bottom)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user