X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTermlib%2FEditor.hh;h=bacfeff1bdd54aeb3e8609ac4b1ab028abf029a5;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=8646d4aec2d497028f26502d60c94b005d2572c3;hpb=733d6e35453c9df1b281b24d2b0af8538ca9ccf7;p=senf.git diff --git a/Utils/Termlib/Editor.hh b/Utils/Termlib/Editor.hh index 8646d4a..bacfeff 100644 --- a/Utils/Termlib/Editor.hh +++ b/Utils/Termlib/Editor.hh @@ -218,13 +218,6 @@ namespace term { /////////////////////////////////////////////////////////////////////////// - void prompt(std::string const & text); ///< Set prompt string - void set(std::string const & text, unsigned pos = 0u); - ///< Set edit buffer contents - /**< The edit buffer contents will be replaced by \a - text. The cursor will be placed at position \a pos - within this text. */ - ///\name Overall edit control ///\{ @@ -234,6 +227,7 @@ namespace term { void clear(); ///< Clear editor buffer void redisplay(); ///< Mark the editor buffer for redisplay void forceRedisplay(); ///< Redisplay the editor buffer \e now + void prompt(std::string const & text); ///< Set prompt string ///\} @@ -251,13 +245,19 @@ namespace term { void deleteChar(unsigned n=1); ///< Delete \a n characters at point void insert(char ch); ///< Insert \a ch at point void insert(std::string const & text); ///< Insert \a text at point + void set(std::string const & text, unsigned pos = 0u); + ///< Set edit buffer contents + /**< The edit buffer contents will be replaced by \a + text. The cursor will be placed at position \a pos + within this text. */ ///\} ///\name History ///\{ - void pushHistory(std::string const & text); ///< Add string \a text to history + void pushHistory(std::string const & text, bool accept = false); + ///< Add string \a text to history void prevHistory(); ///< Switch to previous history entry void nextHistory(); ///< Switch to next history entry @@ -266,7 +266,7 @@ namespace term { ///\name Aux Display ///\{ - void auxDisplay(int line, std::string const & text); + void auxDisplay(unsigned line, std::string const & text); ///< Display \a text on aux display line \a lilne unsigned maxAuxDisplayHeight(); ///< Get maximum height of the aux display area void clearAuxDisplay(); ///< Clear the aux display area