Skip to content

[5.x] Fix ANSI prompts in configure.php on EditLine#101

Open
thaolaptrinh wants to merge 1 commit into
filamentphp:5.xfrom
thaolaptrinh:fix/editline-readline-prompt-5.x
Open

[5.x] Fix ANSI prompts in configure.php on EditLine#101
thaolaptrinh wants to merge 1 commit into
filamentphp:5.xfrom
thaolaptrinh:fix/editline-readline-prompt-5.x

Conversation

@thaolaptrinh

@thaolaptrinh thaolaptrinh commented Jul 13, 2026

Copy link
Copy Markdown

Version

5.x

Problem

ask() passes ANSI prompt text directly to readline(), which EditLine renders literally.

Fix

Print the colored prompt with fwrite(STDOUT, ...), then call readline() without a prompt.

Compatibility

This keeps the existing colored prompt behavior and works with both GNU Readline and EditLine.

@thaolaptrinh thaolaptrinh changed the title Fix ANSI prompts in configure.php on EditLine [5.x] Fix ANSI prompts in configure.php on EditLine Jul 13, 2026
@thaolaptrinh

thaolaptrinh commented Jul 15, 2026

Copy link
Copy Markdown
Author

@danharrin
I found the issue above while building the Bootstrap plugin. It's already fixed—please check when you have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant