aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-04-30 20:14:10 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-04-30 20:14:10 +0100
commit2e7ec8c0b91dc51e6e22b2f55cc4511610044673 (patch)
tree176087486c8509c694826eb429ecf110b6efcdb5 /screen-write.c
parent32c97a7f2f12a6689b8ffc5596484860ac8fbbec (diff)
downloadrtmux-2e7ec8c0b91dc51e6e22b2f55cc4511610044673.tar.gz
rtmux-2e7ec8c0b91dc51e6e22b2f55cc4511610044673.tar.bz2
rtmux-2e7ec8c0b91dc51e6e22b2f55cc4511610044673.zip
Improve logging of screen mode changes.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c
index 8e9ec582..e351a5e5 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -769,6 +769,9 @@ screen_write_mode_set(struct screen_write_ctx *ctx, int mode)
struct screen *s = ctx->s;
s->mode |= mode;
+
+ if (log_get_level() != 0)
+ log_debug("%s: %s", __func__, screen_mode_to_string(mode));
}
/* Clear a mode. */
@@ -778,6 +781,9 @@ screen_write_mode_clear(struct screen_write_ctx *ctx, int mode)
struct screen *s = ctx->s;
s->mode &= ~mode;
+
+ if (log_get_level() != 0)
+ log_debug("%s: %s", __func__, screen_mode_to_string(mode));
}
/* Cursor up by ny. */