MCPcopy Create free account
hub / github.com/DFHack/dfhack / isUnsupportedTerm

Function isUnsupportedTerm

library/Console-posix.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80using namespace DFHack;
81
82static int isUnsupportedTerm(void)
83{
84 static const char *unsupported_term[] = {"dumb","cons25",NULL};
85 char *term = getenv("TERM");
86 int j;
87
88 if (term == NULL) return 0;
89 for (j = 0; unsupported_term[j]; j++)
90 if (!strcasecmp(term,unsupported_term[j])) return 1;
91 return 0;
92}
93
94const char * ANSI_CLS = "\033[2J";
95const char * ANSI_BLACK = "\033[22;30m";

Callers 1

initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected