-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing default colors for AUTO_MENU_LIST #850
Comments
Thanks for answer, I tried following ("white" was chosen so that I can notice the change):
but colors remain the same as before. |
You have to assign to the The style value has the following syntax:
where in
where You can define also RGB colors as:
where In addition to colors you can set also ansi styles by setting
See more details in the StyleResolver javadoc and StyleResolver. |
Thank you very much @mattirn :) |
Hi, I would like to use AUTO_MENU_LIST option, but not with the default colors.
Way to do this was mentioned in #582. But I no longer see
COMPLETION_COLOR_STARTING
,COMPLETION_COLOR_DESCRIPTION
andCOMPLETION_LIST_BACKGROUND_COLOR
variables, so I tried to change them with following attempts, but without any success.LineReader reader = LineReaderBuilder.builder()
.terminal(this.terminal)
.option(LineReader.Option.AUTO_MENU_LIST, true)
.variable(COMPLETION_STYLE_LIST_BACKGROUND, Colors.rgbColor("white"))
.variable(COMPLETION_STYLE_BACKGROUND, Colors.rgbColor("white"))
.completer(completer)
.build();
Most likely I am missing something trivial, any advice? Thanks
The text was updated successfully, but these errors were encountered: