Print name of driver on startup if debugging

This commit is contained in:
Paul LeoNerd Evans 2008-11-08 17:56:57 +00:00
parent d50d772ca5
commit 0483eacb68
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ termkey_t *termkey_new_full(int fd, int flags, size_t buffsize, int waittime)
goto abort_free_keynames;
}
#ifdef DEBUG
fprintf(stderr, "Using the %s driver\n", tk->driver.name);
#endif
if(!(flags & TERMKEY_FLAG_NOTERMIOS)) {
struct termios termios;
if(tcgetattr(fd, &termios) == 0) {