Skip to content

Commit

Permalink
fixes #445 Prompt Cursor Lost after Suspend v2.2.0 Windows PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Apr 18, 2021
1 parent 356d48f commit fb06997
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions console_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ func (s *cScreen) disengage() {
s.setBufferSize(int(s.oscreen.size.x), int(s.oscreen.size.y))
s.clearScreen(StyleDefault, false)
s.setCursorPos(0, 0, false)
s.setCursorInfo(&s.ocursor)
procSetConsoleTextAttribute.Call(
uintptr(s.out),
uintptr(s.mapStyle(StyleDefault)))
Expand Down

0 comments on commit fb06997

Please sign in to comment.