From 19a96ab2de2c08a93da6765d0ec5c4a8bcf239e4 Mon Sep 17 00:00:00 2001 From: Ollie Agent Date: Tue, 4 Aug 2026 18:56:19 +0200 Subject: [PATCH] o prompt: fix readline line editing with ANSI prompt Wrap bold escape sequences in \001/\002 markers so readline correctly tracks cursor position. Fixes Ctrl+U, Ctrl+W, and other readline kill commands after typing several characters. --- data/scripts/o | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/o b/data/scripts/o index 2cc1921..d4d794c 100755 --- a/data/scripts/o +++ b/data/scripts/o @@ -260,7 +260,7 @@ cmd_prompt() { while true; do local prompt_str if [[ -z "$buf" ]]; then - prompt_str=$'\033[1m>\033[0m ' + prompt_str=$'\001\033[1m\002>\001\033[0m\002 ' else prompt_str=" " fi