From c78a084f81ea3011662876d8ae65752875f25aa3 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Fri, 8 Nov 2024 11:23:23 -0500 Subject: [PATCH] fix: renderer: use HomeCursorPosition instead of CursorOrigin --- standard_renderer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/standard_renderer.go b/standard_renderer.go index f564b6a094..2585bccad6 100644 --- a/standard_renderer.go +++ b/standard_renderer.go @@ -306,7 +306,7 @@ func (r *standardRenderer) clearScreen() { defer r.mtx.Unlock() r.execute(ansi.EraseEntireScreen) - r.execute(ansi.CursorOrigin) + r.execute(ansi.HomeCursorPosition) r.repaint() } @@ -336,7 +336,7 @@ func (r *standardRenderer) enterAltScreen() { // Note: we can't use r.clearScreen() here because the mutex is already // locked. r.execute(ansi.EraseEntireScreen) - r.execute(ansi.CursorOrigin) + r.execute(ansi.HomeCursorPosition) // cmd.exe and other terminals keep separate cursor states for the AltScreen // and the main buffer. We have to explicitly reset the cursor visibility