ClickHouse/base/common/ReplxxLineReader.h

21 lines
459 B
C++
Raw Normal View History

2020-01-23 08:18:19 +00:00
#pragma once
#include "LineReader.h"
#include <replxx.hxx>
class ReplxxLineReader : public LineReader
{
public:
ReplxxLineReader(const Suggest & suggest, const String & history_file_path, char extender, char delimiter = 0);
~ReplxxLineReader() override;
2020-02-25 08:30:11 +00:00
void enableBracketedPaste() override;
2020-01-23 08:18:19 +00:00
private:
InputStatus readOneLine(const String & prompt) override;
void addToHistory(const String & line) override;
replxx::Replxx rx;
};