Add support for > and >> prompts with new readline
This commit is contained in:
@@ -77,7 +77,7 @@ public:
|
||||
channel_ = new_outgoing_channel("nocert:localhost:8085");
|
||||
|
||||
// Set the console prompt
|
||||
// get_stdio_channel()->set_prompt(console_.get_prompt());
|
||||
set_console_prompt(console_.get_prompt());
|
||||
|
||||
// The driver loads the lua source automatically.
|
||||
// However, we don't need it. Throw it out.
|
||||
@@ -252,7 +252,7 @@ public:
|
||||
eng::string line = get_stdio_channel()->in()->readline();
|
||||
if (line == "") break;
|
||||
console_.add(line);
|
||||
// get_stdio_channel()->set_prompt(console_.get_prompt());
|
||||
set_console_prompt(console_.get_prompt());
|
||||
do_command(console_.get_command());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user