From 0483eacb68839de06bb6046d8ddeddaefb4df022 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 8 Nov 2008 17:56:57 +0000 Subject: Print name of driver on startup if debugging --- termkey.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/termkey.c b/termkey.c index 4d21876..4e0b1ea 100644 --- a/termkey.c +++ b/termkey.c @@ -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) { -- cgit v1.2.3-70-g09d2