2016-04-23 11:03:53 +00:00
# Msh-console
Library that provides a bash-like command line for C++ programs. Features included:
2016-04-23 11:24:50 +00:00
* included flag handling implemented with popt.h;
2016-04-23 11:03:53 +00:00
* creation of personalized commands in the same thread of the shell or in other threads;
* basic shell functionalities, such as execution of other programs in the system. This is implemented with execvp().
2016-05-21 16:25:20 +00:00
* piping, implemented with < unistd.h > pipe() function. Code based on http://stackoverflow.com/a/5207730.
2016-04-23 11:24:50 +00:00
2016-04-23 11:03:53 +00:00
What is not actually included:
* advanced shell features, like:
* redirection,
* scripting,
* command history.
2016-04-23 11:24:50 +00:00
2016-03-11 15:20:26 +00:00
### Credits
2016-04-23 11:03:53 +00:00
Code based on "Write a Shell in C" tutorial by Stephen Brennan (http://brennan.io/2015/01/16/write-a-shell-in-c/).
2016-03-16 20:30:52 +00:00
The code has been slightly modified.
2016-04-16 17:21:39 +00:00
The code contains stringtoargcargv.cpp, a set of functions written by Bernhard Eder (http://web.archive.org/web/20121030075237/http://bbgen.net/blog/2011/06/string-to-argc-argv) for parsing a string into argc and argv.
2016-04-23 11:03:53 +00:00
### Compiling
2016-04-16 17:21:39 +00:00
The library can be compiled as shared library with the CMakeLists.txt file already in msh-console-library/.