From 1d30e5cc67dbf36c638cf6a089a2307cd7ac1e21 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 11 Aug 2014 22:58:53 -0700 Subject: Skeleton of editline support. --- includes/BReadline.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/BReadline.h b/includes/BReadline.h index 0d39f8b..31babd3 100644 --- a/includes/BReadline.h +++ b/includes/BReadline.h @@ -1,12 +1,28 @@ #pragma once +#ifdef USE_EDITLINE +#include +#include + +class Readline { + public: + Readline(const Balau::String & program); + ~Readline(); + Balau::String gets(); + bool gotEOF(); + void setPrompt(const Balau::String & prompt); +}; + +#endif + +#ifdef USE_HISTEDIT #include #include #include class Readline { public: - Readline(const Balau::String & program, Balau::IO); + Readline(const Balau::String & program); ~Readline(); Balau::String gets(); bool gotEOF() { return m_eof; } @@ -23,3 +39,5 @@ class Readline { static int elGetCFN(EditLine *, char * c); int elGetCFN(char * c); }; + +#endif -- cgit v1.2.3