Skip to content
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

Ctrl+Space selected color not interpreted #495

Closed
oletf opened this issue Sep 18, 2023 · 5 comments
Closed

Ctrl+Space selected color not interpreted #495

oletf opened this issue Sep 18, 2023 · 5 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@oletf
Copy link

oletf commented Sep 18, 2023

Greetings,

I just updated from 0.4.9 to 1.5.5 and upon using the Ctrl+Space completion, all colors get properly displayed in :

  • the current line which is autocompleted on top
  • the bottom "and $$$ more matches" on bottom

but the currently selected entrie in the list is marked by this 0;7 and I'm not sure if
it's an ansi color/font marker which is not correctly interpreted within Windows Terminal somehow,
or a charset or even font problem...

default font used currently is Cascadia Mono and chcp gives 850

C:\>dir "$WINDOWS.~BT\"
0;7$WINDOWS.~BT\
... and 14 more matches ...

Any insight on this ?
Thanks forward

@chrisant996 chrisant996 added bug Something isn't working duplicate This issue or pull request already exists labels Sep 18, 2023
@chrisant996
Copy link
Owner

Duplicate of #493.

@chrisant996
Copy link
Owner

chrisant996 commented Sep 18, 2023

@oletf It only happens when both colored-stats and colored-prefix-completion in the .inputrc are off (which is the default when not using "Enhanced default settings"). While waiting for the fix to be released (soon), you could try turning on one of both of those in the .inputrc file. See Init File for more info about that file.

@oletf
Copy link
Author

oletf commented Sep 18, 2023

Thanks a lot, sorry I missed the duplicate!

@chrisant996
Copy link
Owner

No worries 😎 this was a weird one, and was due to changes to add an undocumented prototype feature so that I can test it and improve it before it gets officially published and documented. I tried to make the changes transparent so they wouldn't affect any existing code -- I almost succeeded, but I missed a case when both colored-stats and colored-prefix-completion are off, so in fact I did not succeed. 😬😅

@oletf
Copy link
Author

oletf commented Sep 19, 2023

Weird edge cases are hiding everywhere !
You may have missed the thing before,
but now you've succeeded and that's what matters !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants