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

Detect Linux console (VC) and fall back from non-functional features #2723

Closed
WildPenquin opened this issue Jul 7, 2024 · 1 comment
Closed

Comments

@WildPenquin
Copy link

Hi,

Apologies if this has already been discussed somewhere (I'd be surprised if no-one has had this issue), I tried search but couldn't find any.

I really like this theme on my X.Org terminal emulators. However, sometimes (for minimalist sessions, setting up etc.) I'm using a plain Linux Console (a VC).

The Linux framebuffer console supports at maximum 256 glyphs with 16 colors or 512 glyphs with only 8 colors. Obviously, the fancy rainbow -prompt will break down (with question marks, no colors).

The framebuffer does use UTF-8 encoding but a limited character set, which can be changed.

Is there a ready-made, OOTB way to fall back to a simpler prompt?

Are there recommended character sets (FONTMAPs) to use, to get a somewhat fancy prompt?

I could DIY by reading the TERM variable in my .zshrc.local, but I have a hunch I could be missing something, or if the theme does not currently handle this, it would not be that difficult to implement (I can see the messages about "very limited support" etc. in the README.md).

@romkatv
Copy link
Owner

romkatv commented Jul 7, 2024

Run p10k configure from a VC and from a graphical terminal emulator to generate two ~/.p10k.zsh configs. source one of them from ~/.zshrc conditionally. If you are using zsh4humans, this whole thing is automatic.

@romkatv romkatv closed this as completed Jul 17, 2024
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

No branches or pull requests

2 participants