=== modified file 'driver-csi.c' --- driver-csi.c 2008-11-09 22:41:44 +0000 +++ driver-csi.c 2008-11-09 19:45:43 +0000 @@ -26,19 +26,12 @@ static void *new_driver(termkey_t *tk, const char *term) { - if(strncmp(term, "xterm", 5) == 0) { - // We want "xterm" or "xtermc" or "xterm-..." - if(term[5] != 0 && term[5] != '-' && term[5] != 'c') - return NULL; - } - else if(strcmp(term, "screen") == 0) { - /* Also apply for screen, because it might be transporting xterm-like - * sequences. Yes, this sucks. We shouldn't need to rely on this behaviour - * but there's no other way to know, and if we don't then we won't - * recognise its sequences. - */ - } - else + // Only care about term types beginning "xterm" + if(strncmp(term, "xterm", 5) != 0) + return NULL; + + // We want "xterm" or "xtermc" or "xterm-..." + if(term[5] != 0 && term[5] != '-' && term[5] != 'c') return NULL; // Excellent - we'll continue