diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-26 23:44:02 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-26 23:44:03 +0200 |
commit | 48f96c18dfa8d2f5c86dc7c6c538b0b003992200 (patch) | |
tree | 37e884885eea09d9ca6eee873ea590df34ab0852 /contrib/epee/include/readline_buffer.h | |
parent | Merge pull request #2314 (diff) | |
parent | Fix refresh counter display (diff) | |
download | monero-48f96c18dfa8d2f5c86dc7c6c538b0b003992200.tar.xz |
Merge pull request #2320
c656dd0e Fix refresh counter display (Howard Chu)
c088d38a Simplify readline support (Howard Chu)
Diffstat (limited to 'contrib/epee/include/readline_buffer.h')
-rw-r--r-- | contrib/epee/include/readline_buffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/epee/include/readline_buffer.h b/contrib/epee/include/readline_buffer.h index 28a153414..cda7e34f9 100644 --- a/contrib/epee/include/readline_buffer.h +++ b/contrib/epee/include/readline_buffer.h @@ -8,25 +8,25 @@ namespace rdln { + typedef enum { empty, partial, full } linestatus; class readline_buffer : public std::stringbuf { public: readline_buffer(); void start(); void stop(); - int process(); bool is_running() const { return m_cout_buf != NULL; } - void get_line(std::string& line) const; + linestatus get_line(std::string& line) const; void set_prompt(const std::string& prompt); static void add_completion(const std::string& command); static const std::vector<std::string>& get_completions(); protected: virtual int sync(); - + private: std::streambuf* m_cout_buf; static std::vector<std::string>& completion_commands(); |