Add --simple-io option for subprocesses and break out console.h and cpp (#1558)

This commit is contained in:
DannyDaemonic 2023-08-04 08:20:12 -07:00 committed by GitHub
parent 5f631c2679
commit 3498588e0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 536 additions and 435 deletions

19
examples/console.h Normal file
View 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);
}