X-Git-Url: http://g0dil.de/git?p=senf.git;a=blobdiff_plain;f=senf%2FUtils%2FTermlib%2FTerminfo.hh;fp=senf%2FUtils%2FTermlib%2FTerminfo.hh;h=42e61a7f0158e4819cd159e6908ae2d17c5878ed;hp=52137fa3cab7a9e2a7ea10a9363a8c93dfc298ef;hb=b2fff1b50e0010fdad28cb638987cbf88032e30e;hpb=c305d6b970e5952fe006270c7184b8bbb10ba2ee diff --git a/senf/Utils/Termlib/Terminfo.hh b/senf/Utils/Termlib/Terminfo.hh index 52137fa..42e61a7 100644 --- a/senf/Utils/Termlib/Terminfo.hh +++ b/senf/Utils/Termlib/Terminfo.hh @@ -218,8 +218,9 @@ namespace term { void dump(std::ostream & os) const; ///< Dump a description of the terminfo entry /** \brief Invalid, incomplete or non-existent terminfo entry exception */ - struct InvalidTerminfoException : public senf::Exception - { InvalidTerminfoException() : senf::Exception("Unreadable terminfo file") {} }; + struct InvalidTerminfoException : public senf::Exception { + InvalidTerminfoException(std::string const & term = ""); + }; private: typedef std::vector BoolVec; @@ -227,7 +228,7 @@ namespace term { typedef std::vector StringVec; typedef std::vector StringPool; - std::string findTerminfo(std::string const & name); + static std::string findTerminfo(std::string const & name); void load(std::istream & is); std::string name_;