FTXUI
FTXUI copied to clipboard
Braille and Box Characters Not Appearing
Hi, I was trying to run the "Canvas_Animated.cpp" file but Braille and Box characters appear as "?" blocks. Is there a solution to this?
Are you per chance on Windows using cmd.exe or PowerShell? They don't seem to have good emoji support. I've found that the newer fancy Windows Terminal works much better with FTXUI.
Here's another issue that shows a difference on Windows cmd.exe and PowerShell vs Windows Terminal: https://github.com/ArthurSonzogni/FTXUI/issues/27#issuecomment-658541413
Here's some more Stack overflow references:
- https://stackoverflow.com/questions/64940181/cannot-display-emojis-in-windows-powershell-or-wsl-linux-terminal-using-python
- https://stackoverflow.com/questions/67722300/print-emojis-in-windows-terminal-python
- https://stackoverflow.com/questions/62738819/does-all-windows-command-prompt-not-support-emoji
- https://stackoverflow.com/questions/64191470/windows-powershell-is-not-printing-emoji
Yes. I am sorry about this! This is indeed due to the font used by the Microsoft terminal.
There are some fallback in FTXUI against the lack of a proper terminal implementation: https://github.com/search?q=repo%3AArthurSonzogni%2FFTXUI%20FTXUI_MICROSOFT_TERMINAL_FALLBACK&type=code
But there is nothing that can be done about braille characters.
@ArthurSonzogni Thank you for answering this question. I am wondering what font you developed the tool with. I would like to change my font to match whatever font you used when making it.
@ArthurSonzogni Thank you for answering this question. I am wondering what font you developed the tool with. I would like to change my font to match whatever font you used when making it.
Hi @BKelso123, I didn't developed FTXUI with a particular font. It depends on the terminal developers are using. FTXUI is just sending text.
By analogy, it is like asking some what "web browser" they developed a "website".
But if you are interested, I am on Linux. I use various terminals. I am using mostly kitty terminal emulator with JetBrains Mono font.