Git Product home page Git Product logo

Comments (3)

pfalcon avatar pfalcon commented on June 8, 2024

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.

semicontinuity avatar semicontinuity commented on June 8, 2024

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.

pfalcon avatar pfalcon commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.