summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authornicm <nicm>2017-06-16 11:50:06 +0000
committernicm <nicm>2017-06-16 11:50:06 +0000
commitd685604d0460fd5894c53b20d18e6157e8dc0000 (patch)
treef9aab3494881f5169b8ef96379a25a2b90506021 /tty-term.c
parentaf93453190c2fbb207c8541df33314160816985f (diff)
Log terminal capabilities for each new terminal.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index 38829bdd..3d06728b 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -393,8 +393,8 @@ tty_term_find(char *name, int fd, char **cause)
return (term);
}
}
-
log_debug("new term: %s", name);
+
term = xmalloc(sizeof *term);
term->name = xstrdup(name);
term->references = 1;
@@ -535,6 +535,10 @@ tty_term_find(char *name, int fd, char **cause)
code->type = TTYCODE_STRING;
}
+ /* Log it. */
+ for (i = 0; i < tty_term_ncodes(); i++)
+ log_debug("%s%s", name, tty_term_describe(term, i));
+
return (term);
error: