oxen-core/contrib/epee/include/epee/readline_suspend.h

20 lines
339 B
C++

#pragma once
namespace rdln
{
class readline_buffer;
// RAII class to suspend readline. If not built with readline support, this class is a no-op.
class suspend_readline
{
#ifdef HAVE_READLINE
public:
suspend_readline();
~suspend_readline();
private:
readline_buffer* m_buffer;
bool m_restart;
#endif
};
}