Replies: 1 comment 4 replies
-
I read you description as this:
TL;DR: no I guess that is not possible generally. Usually you talk to the console through ANSI sequences, but I guess that there is no function that you would need. You can query the current background color for example to automatically use dark or light 'skin' colors; but glyph rendering specifics? I doubt that. If you find out in which terminal your application is executed in (which is possible) you might be able to talk to it via signals or something, but that would be very terminal specific. Or maybe some terminals allow to be queried (by executing them) some font details, but that also would be terminal specific. What I want to say, I believe there is no general way to do this. There might be a terminal specific way to do it, but I deem even that unlikely. |
Beta Was this translation helpful? Give feedback.
-
I want to implement nerd font in my application (https://github.com/Araxeus/ls-interactive)
But I want it to automatically detect if nerd font is enabled in the current terminal (meaning the icons will render properly)
So that it can fallback to Emoji / text instead
Is there any way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions