incorperate Bash as command-line in program
Hi,
I am writing a simple app for learning network programming with C++.
I would like to use Bash as internal command line tool.
That is when I connect to my little app I would like a Bash shell to start and handle all the commands.
The only problem is that I would like to explicitly specify what commands Bash shall accept. So basically I am looking for some of the features that Bash offers like Tab-completion, Ctrl-(some Keys), History ...
But I would like Bash not call external programs but rather, use functions that I have specified.
Does anyone have an idea of how to do this.
(Do you understand what I would like to do? I know I don't explain it very well.)
/Thanks
|