X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTermlib%2FTerminfo.hh;h=f001df826a1c076ce3705c35966cc9df0d89853b;hb=844c117cb04bc73a5b920c2c49efbf14515da3e2;hp=c34a5682bf01be0cab35bb389f7d4eaed4ec9dca;hpb=45f1f7608c81c1d5e417c97a3e9273e0282d6a0d;p=senf.git diff --git a/Utils/Termlib/Terminfo.hh b/Utils/Termlib/Terminfo.hh index c34a568..f001df8 100644 --- a/Utils/Termlib/Terminfo.hh +++ b/Utils/Termlib/Terminfo.hh @@ -47,15 +47,6 @@ namespace term { /////////////////////////////////////////////////////////////////////////// // Types - enum Color { - Black, Red, Green, Brown, Blue, Magenta, Cyan, LightGray, DarkGray, LightRed, - LightGreen, Yellow, LightBlue, Pink, LightCyan, White, - Preserve, LastColor = Preserve }; - - enum Attribute { - Standout, Underline, Reverse, Blink, HalfBright, Bold, Invisible, Protect, AltCharset, - Italic, Substript, Superscript, LastAttribute }; - enum { NoValue = -1 }; struct properties @@ -166,6 +157,17 @@ namespace term { bool getFlag(properties::Boolean p) const; number_t getNumber(properties::Numeric p) const; string_t getString(properties::String p) const; + bool hasProperty(properties::Boolean p) const; + bool hasProperty(properties::Numeric p ) const; + bool hasProperty(properties::String p ) const; + std::string formatString(properties::String p, + number_t arg1=NoValue, number_t arg2=NoValue, + number_t arg3=NoValue, number_t arg4=NoValue, + number_t arg5=NoValue, number_t arg6=NoValue, + number_t arg7=NoValue, number_t arg8=NoValue, + number_t arg9=NoValue) const; + + /////////////////////////////////////////////////////////////////////////// void dump(std::ostream & os) const;