Add --simple-io option for subprocesses and break out console.h and cpp (#1558)
This commit is contained in:
parent
5f631c2679
commit
3498588e0f
7 changed files with 536 additions and 435 deletions
19
examples/console.h
Normal file
19
examples/console.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Console functions
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace console {
|
||||
enum display_t {
|
||||
reset = 0,
|
||||
prompt,
|
||||
user_input,
|
||||
error
|
||||
};
|
||||
|
||||
void init(bool use_simple_io, bool use_advanced_display);
|
||||
void cleanup();
|
||||
void set_display(display_t display);
|
||||
bool readline(std::string & line, bool multiline_input);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue