MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / isUnsupportedTerm

Function isUnsupportedTerm

tools/shell/linenoise.cpp:798–810  ·  view source on GitHub ↗

Return true if the terminal name is in the list of terminals we know are * not able to understand basic escape sequences. */

Source from the content-addressed store, hash-verified

796/* Return true if the terminal name is in the list of terminals we know are
797 * not able to understand basic escape sequences. */
798static int isUnsupportedTerm(void) {
799#ifndef _WIN32
800 char* term = getenv("TERM");
801 int j;
802
803 if (term == NULL)
804 return 0;
805 for (j = 0; unsupported_term[j]; j++)
806 if (!strcasecmp(term, unsupported_term[j]))
807 return 1;
808#endif
809 return 0;
810}
811
812/* Raw mode: 1960 magic shit. */
813static int enableRawMode(int fd) {

Callers 1

linenoiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected