yaft: prepare for neutrino shellwindow compatibility

* add sigc function to collect terminal output
* terminal output is collected without escape codes, "text only"
* if a newline is seen, each newline starts a new line,
* else, some cursor move escape sequences start a new line
This commit is contained in:
Stefan Seyfried
2018-01-07 22:56:14 +01:00
committed by Thilo Graf
parent 8cf9486fdd
commit ad851bcc06
5 changed files with 56 additions and 5 deletions

View File

@@ -9,11 +9,16 @@
*/
#ifndef __yaft_class__
#define __yaft_class__
class YaFT
#include <sigc++/signal.h>
class YaFT : public sigc::trackable
{
private:
int *res;
public:
YaFT(const char * const *argv);
YaFT(const char * const *argv, int *Res, sigc::signal<void, std::string*, int*, bool*>);
~YaFT();
int run();
sigc::signal<void, std::string*, int*, bool*> OnShellOutputLoop;
};
#endif