diff options
author | 2017-06-16 11:50:06 +0000 | |
---|---|---|
committer | 2017-06-16 11:50:06 +0000 | |
commit | 354b9f899f989b88809fdc9ef678119b3f2f339c (patch) | |
tree | 102bcfb2dc26dde9e14e048c618e4ff39a7e498c | |
parent | In sppp(4), allow additional 'wildcard' addresses for the destination. (diff) | |
download | wireguard-openbsd-354b9f899f989b88809fdc9ef678119b3f2f339c.tar.xz wireguard-openbsd-354b9f899f989b88809fdc9ef678119b3f2f339c.zip |
Log terminal capabilities for each new terminal.
-rw-r--r-- | usr.bin/tmux/tty-term.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty-term.c b/usr.bin/tmux/tty-term.c index 1b07aef02fa..86f337ae41f 100644 --- a/usr.bin/tmux/tty-term.c +++ b/usr.bin/tmux/tty-term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-term.c,v 1.55 2017/05/31 08:43:44 nicm Exp $ */ +/* $OpenBSD: tty-term.c,v 1.56 2017/06/16 11:50:06 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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: |