X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTermlib%2FEditor.hh;h=a2221b821f66d11a03201a36d7e14cafcf8f3edc;hb=7ff3c55db7420433cea0bd7f0fe6c82583f78d4f;hp=8646d4aec2d497028f26502d60c94b005d2572c3;hpb=a726ae0cb14d0ce37e5aab3c4e07121bbbd3b31c;p=senf.git diff --git a/Utils/Termlib/Editor.hh b/Utils/Termlib/Editor.hh index 8646d4a..a2221b8 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,6 +245,11 @@ 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. */ ///\}