Using Textual on Linux console #2902
-
Hi all - I think I know the answer to this, but we would like to use the fantastic Textual tool on a network appliance running RHEL9 that we're building and have questions. We've run into degradation in appearance on a linux console vs. in a terminal application on a Gnome desktop. Also, things don't render well from a Windows machine in Putty either, but that's not really an issue as Windows terminal could be used and works perfectly. I'm assuming this is b/c the console simply does not have the capabilities of the terminal application, and this is how it will be. But, perhaps there's something I'm missing or some alternate paths we could take to improve the appearance on the console? Gnome Console |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
We would like to help you with this use-case. I suspect it could be improved with some tweaking. Jump on the Discord server if you would like to discuss it! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm interested by the answer as I am in the same situation. Please |
Beta Was this translation helpful? Give feedback.
-
I also have this use-case. Our application is a system configuration wizard that runs on first boot for our platform automation and... well... we don't really want to run in graphical mode if we can help it, since our app runs in k8s, we try and keep the underlying OS minimal for security purposes. |
Beta Was this translation helpful? Give feedback.
-
Yes, you can. It's working fine if you change CSS of all widgets. You just need change any borders style to 'solid' or 'none'. Also you can use only 8 basic colors (not sure, but: white, black, grey, green, yellow, blue, orange and purple). Unfortunately you can't avoid these restiction in TTY. |
Beta Was this translation helpful? Give feedback.
-
If it helps, we ended up accommodating this limitation by adding a check for the available color space:
and then loading different stylesheets depending on the result of that check. The 16-color terminal stylesheet does largely what @Krovavii suggests, simplifying borders etc. to use characters available in the screen font and limiting color use. It works well. Things still retain full functionality when running in an environment which permits it by using the 'full' stylesheet. |
Beta Was this translation helpful? Give feedback.
We would like to help you with this use-case. I suspect it could be improved with some tweaking. Jump on the Discord server if you would like to discuss it!