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

Only use UTF-8 chars #943

Open
PoloNX opened this issue Oct 25, 2024 · 1 comment
Open

Only use UTF-8 chars #943

PoloNX opened this issue Oct 25, 2024 · 1 comment

Comments

@PoloNX
Copy link

PoloNX commented Oct 25, 2024

I'm porting ftxui on nintendo switch but the terminal is very basic and doesn't support unicode chars. Is there a way to only use UTF-8 ?
2024112813175800

@ArthurSonzogni
Copy link
Owner

Hello!

ftxui on nintendo switch

Lol. I wouldn't have imagined someone would do it. 🤣
Does the switch offers a terminal?

Is there a way to only use UTF-8 ?

image

Always as been.

For instance, you can see I had to use a specific option for MSVC compiler, because it is only the default on clang/gcc:

# Force Microsoft Visual Studio to decode sources files in UTF-8. This applies
# to the library and the library users.
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(${library} PUBLIC "/utf-8")
endif()

Maybe the compiler you are using does need some specific option?

Or, maybe you mean using ascii symbols instead of unicode? In this case, nothing builtin at the moment. I only have the FTXUI_MICROSOFT_TERMINAL_FALLBACK for Microsoft terminal to remove unsupported characters and "mitigate" bugs in Microsoft terminals.


Maybe you can shre additional information about your setup?

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