jcwangxp / crossline Goto Github PK
View Code? Open in Web Editor NEWA small, self-contained, zero-config, MIT licensed, cross-platform, readline and libedit replacement.
License: MIT License
A small, self-contained, zero-config, MIT licensed, cross-platform, readline and libedit replacement.
License: MIT License
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?
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.
I would like to point out that an identifier like “__CROSSLINE_H
” does not fit to the expected naming convention of the C++ language standard.
Would you like to adjust your selection for unique names?
Would you like to add more error handling for return values from functions like the following?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.