=== modified file 'driver-ti.c' --- driver-ti.c 2012-01-20 20:01:11 +0000 +++ driver-ti.c 2012-01-20 17:00:09 +0000 @@ -18,8 +18,6 @@ #include #include #include -#include -#include /* To be efficient at lookups, we store the byte sequence => keyinfo mapping * in a trie. This avoids a slow linear search through a flat list of @@ -294,7 +292,6 @@ static int start_driver(TermKey *tk, void *info) { TermKeyTI *ti = info; - struct stat statbuf; char *start_string = ti->start_string; size_t len; @@ -305,13 +302,6 @@ * We may need to enable that mode */ - /* There's no point trying to write() to a pipe */ - if(fstat(tk->fd, &statbuf) == -1) - return 0; - - if(S_ISFIFO(statbuf.st_mode)) - return 1; - // Can't call putp or tputs because they suck and don't give us fd control len = strlen(start_string); while(len) { @@ -327,20 +317,12 @@ static int stop_driver(TermKey *tk, void *info) { TermKeyTI *ti = info; - struct stat statbuf; char *stop_string = ti->stop_string; size_t len; if(tk->fd == -1 || !stop_string) return 1; - /* There's no point trying to write() to a pipe */ - if(fstat(tk->fd, &statbuf) == -1) - return 0; - - if(S_ISFIFO(statbuf.st_mode)) - return 1; - /* The terminfo database will contain keys in application cursor key mode. * We may need to enable that mode */