X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTermlib%2FEditor.hh;h=952291faec36e41086b6717e414c9f8bd1d668b1;hb=da4da33fc6ce9f6140d4bfb2ff8266f676e7683b;hp=ead9a06e317674a947a788d2d52788ea2053daf0;hpb=9f4bca1d10573498ab6ec090060f6e1ad8cbde84;p=senf.git diff --git a/Utils/Termlib/Editor.hh b/Utils/Termlib/Editor.hh index ead9a06..952291f 100644 --- a/Utils/Termlib/Editor.hh +++ b/Utils/Termlib/Editor.hh @@ -81,8 +81,8 @@ namespace term { unsigned currentColumn() const; ///< Return number of current column unsigned currentLine() const; ///< Return number of current relative line - unsigned width(); ///< Return current screen width - unsigned height(); ///< Return current screen height + unsigned width() const; ///< Return current screen width + unsigned height() const; ///< Return current screen height protected: virtual bool cb_init(); ///< Called when terminal is initialized @@ -256,7 +256,8 @@ namespace term { ///\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