gnodet opened a new pull request, #22170:
URL: https://github.com/apache/camel/pull/22170

   **JIRA:** [CAMEL-23226](https://issues.apache.org/jira/browse/CAMEL-23226)
   
   ## Summary
   
   Builds on top of PR #22166 (Shell alias persistence) to add visual and UX 
enhancements to the JLine 4 shell:
   
   - **Rich prompt**: Shows Camel version with colors — `camel` in Camel orange 
(RGB), version in green: `camel 4.19.0> `
   - **Welcome banner**: Prints `Apache Camel JBang Shell v4.19.0` with styled 
colors on startup, plus help hint
   - **Right-side prompt**: Shows abbreviated current working directory 
(`~/work/my-project`) in dim text
   - **Fish-style auto-suggestions**: Enables JLine's `AutosuggestionWidgets` 
for ghost-text history suggestions (press right-arrow to accept)
   - **NO_COLOR support**: All color output respects `NO_COLOR` / `FORCE_COLOR` 
environment variables per https://no-color.org/
   
   Uses JLine's `AttributedStringBuilder` with `foregroundRgb()` for true-color 
terminal support. No Jansi dependency needed.
   
   ## Test plan
   
   - Run `camel shell` and verify colored prompt with version number
   - Verify welcome banner appears on startup
   - Verify right-side prompt shows current directory
   - Type a previously-entered command prefix and verify auto-suggestion ghost 
text appears
   - Set `NO_COLOR=1` and verify all output is plain text
   - Verify `exit` and Ctrl-C still quit cleanly


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to