Code Monkey home page Code Monkey logo

Comments (7)

piotrmurach avatar piotrmurach commented on May 27, 2024

Hi Sylvain,

The whole tty library is undergoing changes which involve extracting components. I've managed to extract quite few so far such as tty-progressbar .

The interface for asking for user input quite frankly lacks robustness and hasn't been maintained for some time. In near future I would like to change this situation and extract is as it's own independent component with more robust architecture.

Considering the current bug that you found, if you have time I would really appreciate contribution. On my part, I cannot say when this will be fixed as I'm currently taking a small sabbatical(few weeks) to rethink and refresh my open source enthusiasm. However, I'm still happy to merge patches and release new version. Let me have your thoughts?

from tty.

doudou avatar doudou commented on May 27, 2024

Hi Peter

I'll try to find the problem and patch it, but I unfortunately have little time right now so don't hold your breath :( Wanted to try TTY out, it's a really really nice looking library for everything console related.

Can you share a little bit more on your future plans ? Would really hate to migrate to TTY to find out that everything changed ;-) Right now, I'm mostly using the tables and pastel.

Sylvain

from tty.

doudou avatar doudou commented on May 27, 2024

OK ... so allocated 15 mins to check it out ... #18

One question: what does the harcoded 10 at https://github.com/peter-murach/tty/blob/master/lib/tty/shell/response.rb#L60 imply ? Does it mean that the answer cannot be more than 10 characters long ?

from tty.

doudou avatar doudou commented on May 27, 2024

Aaannnnnddddd. Run tests before submitting anything. facepalm /me. Will fix ASAP.

from tty.

doudou avatar doudou commented on May 27, 2024

See #19. Tests still not fully passing, but this time it's on purpose (I'd like to have your opinion on the fix)

from tty.

piotrmurach avatar piotrmurach commented on May 27, 2024

tty in the past grew into a large and flaky codebase, it was much harder to ensure quality and decent interface. Rewind to today, much more robust individual components on a sure path to 1.0 release with simple internals as well as external api backed by full coverage. To answer your question, the components already extracted will not change but only get bug fixes and new features. There are few remaining components to be extracted and new added. One of them is the interface for prompting user input. I have no intention of changing how it works but to follow the above philosophy as well as make the component the best it can be and thus I will extract it to another dependency tty-.... In my plans i want to extend public api to allow for presenting lists to user that get checkmark when done/selected, checkboxes and other more fancy inputs! I want to offer fancy menu choices for user to select from by using terminal navigation etc... This part got neglected for too long and I want to bring it up to speed. Does that answer your query?

from tty.

doudou avatar doudou commented on May 27, 2024

Does that answer your query?

Definitely does. Thanks for taking the time to answer it so thoroughly ;-)

from tty.

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.