///////////////////////////////////////////////////////////////////////////
- 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
///\{
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
///\}
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
///\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