summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2014-11-11 16:08:48 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2014-11-11 16:08:48 +0100
commitd26c3c8fc54f50f8b55381cbbc1736b89c1eee5d (patch)
tree205526b7bd97121c07c79593b21be3642cad0423 /src/window.h
parent011738f65312c9ec81c490f170978dd851ce9500 (diff)
window: fill background color on clearing to EOL
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.h b/src/window.h
index f32ce8ad..4d011c95 100644
--- a/src/window.h
+++ b/src/window.h
@@ -187,6 +187,9 @@ private:
std::ostream &operator<<(std::ostream &os, const Color &c);
std::istream &operator>>(std::istream &is, Color &f);
+/// Terminal manipulation functions
+enum class TermManip { ClearToEOL };
+
/// Format flags used by NCurses
enum class Format {
None,
@@ -410,8 +413,7 @@ struct Window
/// @param where indicates how many lines it has to scroll
virtual void scroll(Scroll where);
- /// Applies function of compatible prototype to internal WINDOW pointer
- Window &operator<<(int (*f)(WINDOW *));
+ Window &operator<<(TermManip tm);
Window &operator<<(const Color &color);
Window &operator<<(Format format);
Window &operator<<(const XY &coords);