Comments (3)
Thanks for the feedback and suggestion. I'll keep it in mind, but arguments for doing it like that would be that it's customary to do it at all. Do other TUI applications do it like that? Does curses lib do it like that by default?
As a random quick test, I tried Midnight Commander with:
mc >/dev/null
That doesn't produce any output, so it clearly does TUI operations on stdout.
from picotui.
I agree, by very nature TUI must interact with console. Most likely, there are no conventions on FD usage for TUI.
In shell, FD 0 and 1 can participate in pipe, and 2 cannot be piped, and supposed to be attached to "debug console".
Anyway, if you would just introduce constants FD_IN=0 and FD_OUT=1, so that it behaves the same way and give the possibility to modify them and attach to different FD - that would be really nice
from picotui.
Anyway, if you would just introduce constants FD_IN=0 and FD_OUT=1
I'll keep that in mind. I have a queue of things I'd like to do, including to that part of the code, so it may need to wait some time, but I'm not against it in principle.
from picotui.
Related Issues (20)
- [Question] clear_num_pos HOT 1
- Partial docstrings HOT 2
- KDE Konsole doesn't seem to respond to "get screen size" escape sequence HOT 14
- Proper resizing support requires sufficiently deep codebase refactors HOT 1
- picotui should not assume a particular terminal "theme"
- Suggestion - add a "disabled" state to all FocusableWidget instances HOT 1
- `MenuBar` and `MenuBox` HOT 1
- Request: packaging HOT 1
- v1.4/2.0: Widged redraw(self) method signature changes to redraw(self, x, y)
- Better variable naming in examples HOT 3
- Better documentation HOT 1
- Feature request: tree widget
- wbutton onclick HOT 1
- Feature Request: form field validator HOT 1
- Question: on_change event for WTextEntry HOT 1
- termios.error: (19, 'Operation not supported by device')
- Do widgets support hotkeys ? HOT 2
- MS Windows compatibility?
- Show screenshot at beginning of README HOT 1
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 picotui.