32 #include "main/evaluator.h" 34 #if !defined(AMIGA) && !defined(TERMIOS) && !defined(WINDOWS) 37 StandardConsole::StandardConsole(
const char* prompt) :
38 ConsoleBase(prompt), exit(
false)
40 line =
new char[linesize];
43 StandardConsole::~StandardConsole()
48 bool StandardConsole::SetAnsiMode(
bool value)
53 void StandardConsole::Start()
69 Evaluator* evaluator =
new Evaluator(line);
70 evaluator->Evaluate();
71 const char* out = evaluator->GetResult();
78 void StandardConsole::Exit()
83 void StandardConsole::ReadLine()
86 fgets(line, linesize, stdin);
89 void StandardConsole::WriteString(
const char* string)
91 fputs(string, stdout);
95 void StandardConsole::SetPrompt(
const char* string)
97 ConsoleBase::SetPrompt(string);