Coder Social home page Coder Social logo

Go back one char about pet HOT 4 CLOSED

knqyf263 avatar knqyf263 commented on May 12, 2024
Go back one char

from pet.

Comments (4)

xinsnake avatar xinsnake commented on May 12, 2024

Okay from my limited understanding about this it's because when the program is accepting the input using a "scanner (https://github.com/knqyf263/pet/blob/master/cmd/new.go#L25). It is not easy to "get raw mode input easily" as described in these stackoverflow articles:

So I think if we are looking for a cross-platform solution it may require some work.

Just my input, and I'll leave it to the owner to make the decision whether it should be supported or not :)

from pet.

matiwinnetou avatar matiwinnetou commented on May 12, 2024

I have the same issue on osx

from pet.

knqyf263 avatar knqyf263 commented on May 12, 2024

Yes, I know this problem. You can use back space.
As @xinsnake said, it requires some work.

I am glad if someone implements it.
Welcome PR!

from pet.

der-daniel avatar der-daniel commented on May 12, 2024

I never did go so far, so I may not be best for a PR. 😄
This stackoverflow may be worth looking into:
http://stackoverflow.com/questions/30689640/cursor-key-terminal-input-in-go

from pet.

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.