aboutsummaryrefslogtreecommitdiff
path: root/examples/console.h
blob: ec175269b9d8af48803d0b6e618d008a9ab99b4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}