| 80 | using namespace DFHack; |
| 81 | |
| 82 | static 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 | |
| 94 | const char * ANSI_CLS = "\033[2J"; |
| 95 | const char * ANSI_BLACK = "\033[22;30m"; |