diff options
author | DannyDaemonic <DannyDaemonic@gmail.com> | 2023-08-04 08:20:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 08:20:12 -0700 |
commit | 3498588e0fb4daf040c4e3c698595cb0bfd345c0 (patch) | |
tree | da51423cc8e1574b92507663d332507e1dea32fd /examples/console.h | |
parent | 5f631c26794b6371fcf2660e8d0c53494a5575f7 (diff) |
Add --simple-io option for subprocesses and break out console.h and cpp (#1558)
Diffstat (limited to 'examples/console.h')
-rw-r--r-- | examples/console.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/console.h b/examples/console.h new file mode 100644 index 0000000..ec17526 --- /dev/null +++ b/examples/console.h @@ -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); +} |