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

Add support for an override that goes into "ASCII-only terminal mode" #3086

Open
davep opened this issue Aug 10, 2023 · 2 comments
Open

Add support for an override that goes into "ASCII-only terminal mode" #3086

davep opened this issue Aug 10, 2023 · 2 comments
Labels
enhancement New feature or request Task

Comments

@davep
Copy link
Contributor

davep commented Aug 10, 2023

Somewhat related to the original thinking in #2658: there are situations where a Textual application will be run in a way that it's difficult, if not impossible, to use a font that has all the characters necessary to display correctly. A classic example of this would be running on a GNU/Linux console (no graphical environment, just the raw terminal).

Here's an example of that from a question on Discord:

IMG_4195

We should add a way, perhaps via an environment variable, of turning on a "just use ASCII" mode, so that applications can still look useable in such situations.

@davep davep added enhancement New feature or request Task labels Aug 10, 2023
@willmcgugan
Copy link
Collaborator

I think we could probably do this will a large str.translate table that converts the unicode box characters in to +---+| etc.

@MorningLightMountain713
Copy link

Would be great to see something like this.

I'm trying to do something similar to Ubuntu's subiquity (python) terminal installer

Screenshot 2024-08-02 at 12 05 14 PM

I can get most of it looking good, but some parts - eg the scrollbar, don't display:

Screenshot 2024-08-02 at 1 01 31 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Task
Projects
None yet
Development

No branches or pull requests

3 participants