aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/readline_buffer.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-26 23:44:02 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-26 23:44:03 +0200
commit48f96c18dfa8d2f5c86dc7c6c538b0b003992200 (patch)
tree37e884885eea09d9ca6eee873ea590df34ab0852 /contrib/epee/include/readline_buffer.h
parentMerge pull request #2314 (diff)
parentFix refresh counter display (diff)
downloadmonero-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.h6
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();