mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-24 13:48:51 +08:00
windows: restore cursor location correctly
This commit is contained in:
parent
b02dac3826
commit
d1364d5937
@ -341,12 +341,12 @@ func (s *cScreen) disengage() {
|
|||||||
}
|
}
|
||||||
} else if !s.disableAlt {
|
} else if !s.disableAlt {
|
||||||
s.clearScreen(StyleDefault, s.vten)
|
s.clearScreen(StyleDefault, s.vten)
|
||||||
|
s.setCursorPos(0, 0, false)
|
||||||
}
|
}
|
||||||
|
s.setCursorInfo(&s.ocursor)
|
||||||
|
s.setBufferSize(int(s.oscreen.size.x), int(s.oscreen.size.y))
|
||||||
s.setInMode(s.oimode)
|
s.setInMode(s.oimode)
|
||||||
s.setOutMode(s.oomode)
|
s.setOutMode(s.oomode)
|
||||||
s.setBufferSize(int(s.oscreen.size.x), int(s.oscreen.size.y))
|
|
||||||
s.setCursorPos(0, 0, false)
|
|
||||||
s.setCursorInfo(&s.ocursor)
|
|
||||||
_, _, _ = procSetConsoleTextAttribute.Call(
|
_, _, _ = procSetConsoleTextAttribute.Call(
|
||||||
uintptr(s.out),
|
uintptr(s.out),
|
||||||
uintptr(s.mapStyle(StyleDefault)))
|
uintptr(s.mapStyle(StyleDefault)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user