GithubHelp home page GithubHelp logo

jcwangxp / crossline Goto Github PK

View Code? Open in Web Editor NEW
117.0 6.0 18.0 258 KB

A small, self-contained, zero-config, MIT licensed, cross-platform, readline and libedit replacement.

License: MIT License

C 100.00%
readline libedit linenoise line-editor autocomplete history terminal console cli command-line

crossline's People

Contributors

bogen85 avatar jcwangxp avatar susonicth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

crossline's Issues

Can not input chinese charactors

hi,
I found a problem, crossline_readline function do not support for chinese charactor input.
when input chinese char, example program does not display the char that input, and nothing will be shown.
on msys2 platform, the program will stuck, and can not be killed.

is it possible to add filepath auto-complete

so I'm using this library for my own Interpreter, because I have cross-platform need so I can't use GNU Readline.
It's been all good til' I need to have filepath completion, is it possible to add this function? how?

Completion support with C++

I would like to be able to use completion support with C++ however the completion callback does not have a user argument. If I could pass the this pointer of an object as user data I could integrate completion into my C++ program.

I am thinking about adding a new callback type and call to maintain backwards compatibility:

typedef void (*crossline_user_completion_callback) (void* user, const char *buf, crossline_completions_t *pCompletions);
extern void  crossline_user_completion_register (crossline_user_completion_callback pCbFunc, void* user);

If a crossline_user_completion_callback is registered it is called else the crossline_completion_callback is called if registered.

Would you be interested in a pull request for such a change?

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.