From c979f335387a597702ce6e0af33a59bc86dbee2c Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Wed, 1 Apr 2015 22:04:17 +0200 Subject: Add function for controlling the background color to Terminal class --- src/core/frontend/Terminal.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/frontend/Terminal.hpp') diff --git a/src/core/frontend/Terminal.hpp b/src/core/frontend/Terminal.hpp index 90a2e6f..708a1d7 100644 --- a/src/core/frontend/Terminal.hpp +++ b/src/core/frontend/Terminal.hpp @@ -104,6 +104,14 @@ public: */ std::string color(int color, bool bright = true) const; + /** + * Returns a control string for switching the background to the given color. + * + * @param color is the background color the terminal should switch to. + * @return a control string to be included in the output stream. + */ + std::string background(int color) const; + /** * Returns a control string for switching to the bright mode. * -- cgit v1.2.3