TermDb 适用于现代C ++的Terminfo解析器。 。 # include " termdb.hpp " # include < iostream> using namespace tdb ; int main () { TermDb parser; auto result = parser. parse ( " xterm " ); if (result) { auto name = parser. getName (); auto b = parser. get (bin::has_meta_key); auto n = parser. get