From d5406a6b112d0ab11c67e2f9b4df4147b06ed0c8 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 22 Mar 2026 16:46:32 -0700 Subject: [PATCH] Fix REPL HUD layout by removing cursor positioning codes - Remove \033[1;1H, \033[2;1H, \033[3;1H from HUD rendering - HUD text now appears at correct positions without cursor interference - Prompt appears at left margin as expected --- engine/effects/plugins/repl.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/engine/effects/plugins/repl.py b/engine/effects/plugins/repl.py index f187746..44ad59b 100644 --- a/engine/effects/plugins/repl.py +++ b/engine/effects/plugins/repl.py @@ -138,7 +138,7 @@ class ReplEffect(EffectPlugin): fps_str = f"FPS: {fps:.1f}" if fps > 0 else "FPS: --" time_str = f"{frame_time:.1f}ms" if frame_time > 0 else "--ms" line1 = ( - f"\033[1;1H\033[38;5;46mMAINLINE REPL\033[0m " + f"\033[38;5;46mMAINLINE REPL\033[0m " f"\033[38;5;245m|\033[0m \033[38;5;39m{fps_str}\033[0m " f"\033[38;5;245m|\033[0m \033[38;5;208m{time_str}\033[0m" ) @@ -150,7 +150,7 @@ class ReplEffect(EffectPlugin): f"[{self.state.history_index + 1}/{cmd_count}]" if cmd_count > 0 else "" ) line2 = ( - f"\033[2;1H\033[38;5;45mCOMMANDS:\033[0m " + f"\033[38;5;45mCOMMANDS:\033[0m " f"\033[1;38;5;227m{cmd_count}\033[0m " f"\033[38;5;245m|\033[0m \033[38;5;219m{hist_idx}\033[0m" ) @@ -158,10 +158,7 @@ class ReplEffect(EffectPlugin): # Line 3: Output buffer count out_count = len(self.state.output_buffer) - line3 = ( - f"\033[3;1H\033[38;5;44mOUTPUT:\033[0m " - f"\033[1;38;5;227m{out_count}\033[0m lines" - ) + line3 = f"\033[38;5;44mOUTPUT:\033[0m \033[1;38;5;227m{out_count}\033[0m lines" lines.append(line3[:width]) return lines