Git Product home page Git Product logo

Comments (4)

daniele77 avatar daniele77 commented on August 17, 2024

Since the library uses the first token of the input to lookup a command list, I could add a default handler to manage the cases where the command is unknown or wrong. However, this would comprise also the errors in the types of command parameters.
I'm not quite sure this would constitute a useful feature, however.

from cli.

wangxuw avatar wangxuw commented on August 17, 2024

Yes, of course. It would also be conflict with some commands. e.g: command 1 in aforementioned example.

I think the Insert of command std::string("") should be disabled since it is never called.

BTW, it is somewhat weird when paste something to runtime cli using ctrl-v, the whole content would not echo until a next keyboard is triggered.

std::pair<KeyType,char> Get()

should here be modified to echo pasted content?

from cli.

daniele77 avatar daniele77 commented on August 17, 2024

Ok, @EFS86340 .
So this issue should be actually split into three:

  1. custom default input handler
  2. do not allow the insertion of empty command in a menu (i.e., "")
  3. missing echo after ctrl-v paste of command

Can you open the issue 2) and 3) please? So that we can continue the discussion of each problem the in the appropriate place :-)

Thank you

from cli.

wangxuw avatar wangxuw commented on August 17, 2024

Sure, so I would close this issue now.

from cli.

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.