Comments (2)
I am sorry this terminal on Windows doesn't set the COLORTERM variable.
Maybe there is a standard ways in the terminal specification:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
to query directly the terminal support for colors.
The cost would be some communication with the terminal via stdin/stdout, before starting. This is a bit annoying, because user's might want to send/receive some data via this channel. I guess we need something user's can call when they need it.
Maybe
ftxui::QueryColorSupport()
ftxui::OverrideSupportedColor(color_mode)
that would query the terminal its supported colors and wait for a reply. It can store the results to:
Terminal::Color cached_supported_color;
https://github.com/ArthurSonzogni/FTXUI/blob/master/src/ftxui/screen/terminal.cpp#L50
It's quite hard for me test on Windows. Feel free to submit PR if you can, otherwise, I will try it, but this might take me some time.
from ftxui.
Hey @MichaelGoulding,
Do you think we should close this issue, given the latest patch?
from ftxui.
Related Issues (20)
- The scrollbar doesn't work in the "homescreen.cpp" demo HOT 3
- [feature request] Scatter plots HOT 1
- Dynamically adding elements to Checkboxes HOT 5
- Correctness of layout requirement for flexbox. Scrollbar implementation. HOT 1
- I've tried everything. I need help HOT 1
- Compression priority when rendering a vbox with inadequate space. HOT 2
- lifecycle problem HOT 2
- Final link failed: Bad value HOT 3
- Fix for Visual Studio color and bgcolor unresolved symbols HOT 1
- Modal windows, what am I doing wrong? HOT 2
- Catching events for nested components HOT 2
- window element with light border style HOT 2
- Adding interactive component into a table HOT 4
- CtrlH not work but others CtrlA,CtrlB... can HOT 1
- Changes cursor in underlying terminal
- RGBA's Alpha not work in alacritty HOT 3
- How to scroll elements , not components HOT 2
- "input" example allows line breaks in phone number HOT 1
- Creating a table with 2 columns HOT 7
- Knob Support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftxui.