diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-11-08 17:56:57 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-11-08 17:56:57 +0000 |
commit | 0483eacb68839de06bb6046d8ddeddaefb4df022 (patch) | |
tree | bb09890412823bf9f6495d94b683b9ba7ddcd647 | |
parent | d50d772ca543d5ca4e2e72d7401746343493c73d (diff) | |
download | termo-0483eacb68839de06bb6046d8ddeddaefb4df022.tar.gz termo-0483eacb68839de06bb6046d8ddeddaefb4df022.tar.xz termo-0483eacb68839de06bb6046d8ddeddaefb4df022.zip |
Print name of driver on startup if debugging
-rw-r--r-- | termkey.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |