Code Monkey home page Code Monkey logo

Comments (5)

brunobraga avatar brunobraga commented on July 18, 2024

Looking for volunteers... if you can help implement this, I'd welcome the pull request.

from termsaver.

EddieDover avatar EddieDover commented on July 18, 2024

Looking for volunteers... if you can help implement this, I'd welcome the pull request.

Shouldn't be too hard to implement but we'll most likely need a library like keyboard or pyinput as a requirement. What are your feelings about that @brunobraga?

I'm still researching but I don't think we have any input options (without a library) that will passively check for input instead of waiting for input.

from termsaver.

EddieDover avatar EddieDover commented on July 18, 2024

Just to follow up. I was able to implement this pretty easily using a pynput keyboard listener. The only real caveat (other than adding another dependency or two because of pynput) is that it isn't immediate since it has to wait for the next 'tick' of the screen. It's minor, a second or less.

from termsaver.

brunobraga avatar brunobraga commented on July 18, 2024

Awesome find @EddieDover . My approach to this is:

  • let's keep the termsaver as simple as possible (as requirements for installation)
  • we can recommend in the --help section the additional modules that, if installed, can improve the experience (e.g. colorama, pynput, or larger modules)

Then to implement this you just wrap it (when the function is called, you don't action if the module is not available)... something like that perhaps?

from termsaver.

EddieDover avatar EddieDover commented on July 18, 2024

PR #52 is available for review.

from termsaver.

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.