|
CPGen
C++ project generator
|
Utilities that query or interact with the host operating system. More...
Functions | |
| bool | isFontValid () |
| Interactively check whether the terminal font supports Nerd Font glyphs. | |
Utilities that query or interact with the host operating system.
| bool System::isFontValid | ( | ) |
Interactively check whether the terminal font supports Nerd Font glyphs.
Renders a pair of checkbox glyphs to stdout and prompts the user to confirm whether they render correctly. This is used at startup to decide whether the TUI should use Unicode icons or fall back to plain ASCII.
true if the user confirmed the glyphs look correct (y / Y), false otherwise.std::cin and is therefore not testable without stdin redirection.