Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: bin/ksh: ignore ANSI escapes in prompt length for edit modes
To:
"\"Kirill A. Korinsky\"" <kirill@korins.ky>
Cc:
tech@openbsd.org
Date:
Sat, 7 Feb 2026 16:15:23 +0100

Download raw body.

Thread
"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