From: Christian Weisgerber Subject: Re: bin/ksh: ignore ANSI escapes in prompt length for edit modes To: "\"Kirill A. Korinsky\"" Cc: tech@openbsd.org Date: Sat, 7 Feb 2026 16:15:23 +0100 "Kirill A. Korinsky": > here a diff where I addressed an issue which was reported by helg@ as > https://marc.info/?l=openbsd-tech&m=176899229906470&w=2 But we already have \[ \] to embed zero-length character sequences in the prompt! From my ~/.kshrc: PS1="\[$(tput so)\]\u@\h\[$(tput se)\][\w] " -- Christian "naddy" Weisgerber naddy@mips.inka.de