Commit 6031c7e
committed
Fix phpdbg prompt with editline/readline integration
When building phpdbg SAPI with libedit/readline integration, also start
and end ignore characters need to be added in the prompt pattern. This
should now work for libedit, readline, and phpdbg without
readline/libedit.
The RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE macros are checked
to ensure libedit has these available. Otherwise, this could be further
improved by concatenating strings and literal strings into single
argument or similar using these two symbols directly.
Autotools:
./configure --with-readline --enable-phpdbg-readline
make
./sapi/phpdbg/phpdb
In the phpdbg, the "prompt" should be colored (or bold) in some
terminals.1 parent 2513258 commit 6031c7e
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
323 | 327 | | |
324 | | - | |
| 328 | + | |
325 | 329 | | |
326 | 330 | | |
327 | 331 | | |
| |||
0 commit comments