bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: Color prompts break newline triggering


From: Samuel Cordero Rodrigo
Subject: Bug: Color prompts break newline triggering
Date: Sat, 28 Oct 2023 17:03:23 +0200

Readline8.2-release installed from brew running on a 2017 Macbook Pro with Mac OS Mojave.
 When adding color escape sequences like \x1b[32m, readline seems to break first newline toggling for long lines (screenshot attached).
To reproduce just add a color prompt like prompt="\x1b[32mTEST\x1b[0m", call readline(prompt) and write a bunch of chars. An easy fix might be replacing strlen with an ad-hoc solution that doesn't count those chars.

Have a nice day!

Samuel Cordero

Attachment: Captura de pantalla 2023-10-28 a las 16.56.02.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]