aboutsummaryrefslogtreecommitdiff
path: root/examples/console.h
diff options
context:
space:
mode:
authorDannyDaemonic <DannyDaemonic@gmail.com>2023-08-04 08:20:12 -0700
committerGitHub <noreply@github.com>2023-08-04 08:20:12 -0700
commit3498588e0fb4daf040c4e3c698595cb0bfd345c0 (patch)
treeda51423cc8e1574b92507663d332507e1dea32fd /examples/console.h
parent5f631c26794b6371fcf2660e8d0c53494a5575f7 (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.h19
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);
+}