Improve logging of screen mode changes.

This commit is contained in:
nicm
2021-06-10 07:43:44 +00:00
parent f02a6c34e0
commit 02a6b39db7
5 changed files with 67 additions and 5 deletions

View File

@ -1694,7 +1694,10 @@ server_client_reset_state(struct client *c)
s = wp->screen;
if (s != NULL)
mode = s->mode;
log_debug("%s: client %s mode %x", __func__, c->name, mode);
if (log_get_level() != 0) {
log_debug("%s: client %s mode %s", __func__, c->name,
screen_mode_to_string(mode));
}
/* Reset region and margin. */
tty_region_off(tty);