Add support for > and >> prompts with new readline
This commit is contained in:
@@ -214,6 +214,11 @@ class Driver {
|
||||
|
||||
void handle_console_input() {
|
||||
read_console_recently_ = false;
|
||||
uint32_t promptlen;
|
||||
const char *promptdata;
|
||||
engw.get_console_prompt(&engw, &promptlen, &promptdata);
|
||||
CodepointString prompt = ReadlineDevice::from_utf8(std::string_view(promptdata, promptlen), nullptr);
|
||||
readline_device_.set_prompt(prompt);
|
||||
while (true) {
|
||||
CodepointString cps = console_read();
|
||||
if (cps.size() == 0) break;
|
||||
|
||||
Reference in New Issue
Block a user