=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty-term.c,v retrieving revision 1.55 retrieving revision 1.56 diff -c -r1.55 -r1.56 *** src/usr.bin/tmux/tty-term.c 2017/05/31 08:43:44 1.55 --- src/usr.bin/tmux/tty-term.c 2017/06/16 11:50:06 1.56 *************** *** 1,4 **** ! /* $OpenBSD: tty-term.c,v 1.55 2017/05/31 08:43:44 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty-term.c,v 1.56 2017/06/16 11:50:06 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 393,400 **** return (term); } } - log_debug("new term: %s", name); term = xmalloc(sizeof *term); term->name = xstrdup(name); term->references = 1; --- 393,400 ---- return (term); } } log_debug("new term: %s", name); + term = xmalloc(sizeof *term); term->name = xstrdup(name); term->references = 1; *************** *** 534,539 **** --- 534,543 ---- code->value.string = xstrdup("\033[48;2;%p1%d;%p2%d;%p3%dm"); 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);