MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / isColorTerm

Function isColorTerm

src/redis-cli.c:899–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899int isColorTerm(void) {
900 char *t = getenv("TERM");
901 return t != NULL && strstr(t,"xterm") != NULL;
902}
903
904/* Helper function for sdsCatColorizedLdbReply() appending colorize strings
905 * to an SDS string. */

Callers 2

sdscatcolorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected