Skip to content
Myr

fix: renderer: use HomeCursorPosition instead of CursorOrigin

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ayman Bagabas · committed by Ayman Bagabas · parent 50249d4 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:standard_renderer.go+2 added-2 removed
304 unmodified lines
305 r.mtx.Lock()306 defer r.mtx.Unlock()307308 r.execute(ansi.EraseEntireScreen)309 r.execute(ansi.CursorOrigin)309 r.execute(ansi.HomeCursorPosition)310311 r.repaint()312}313
21 unmodified lines
335 //336 // Note: we can't use r.clearScreen() here because the mutex is already337 // locked.338 r.execute(ansi.EraseEntireScreen)339 r.execute(ansi.CursorOrigin)339 r.execute(ansi.HomeCursorPosition)340341 // cmd.exe and other terminals keep separate cursor states for the AltScreen342 // and the main buffer. We have to explicitly reset the cursor visibility343 // whenever we enter AltScreen.
419 unmodified lines