Thanks, worked like a charm.
One thing though, I compiled it in debug mode with g++, and when I went through the thing with gdb, it would not step into
Also, my loop was set up like this:
signal( SIGINT, ctrlc_handler );
And obviously, when I try to check what happens when I press "^C", it ends up triggering the SIGINT for gdb and not my program. So is there a way to get inside what's happening? Or do I just have to read "signal.h"?
std::cout << ">>> ";
std::cout << str_dump << std::endl;