Return true if the terminal name is in the list of terminals we know are * not able to understand basic escape sequences. */
| 796 | /* Return true if the terminal name is in the list of terminals we know are |
| 797 | * not able to understand basic escape sequences. */ |
| 798 | static 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. */ |
| 813 | static int enableRawMode(int fd) { |