Merge branch 'bsu-esu-logging'

This commit is contained in:
Daniel Eklöf 2021-04-26 19:44:07 +02:00
commit 47c7665bd0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

10
dcs.c
View file

@ -11,8 +11,9 @@ bsu(struct terminal *term)
{
/* https://gitlab.com/gnachman/iterm2/-/wikis/synchronized-updates-spec */
LOG_DBG("untested: BSU - Begin Synchronized Update (params: %.*s)",
(int)term->vt.dcs.idx, term->vt.dcs.data);
size_t n = term->vt.dcs.idx;
if (unlikely(n > 0))
LOG_DBG("BSU with unknown params: %.*s)", (int)n, term->vt.dcs.data);
term_enable_app_sync_updates(term);
}
@ -22,8 +23,9 @@ esu(struct terminal *term)
{
/* https://gitlab.com/gnachman/iterm2/-/wikis/synchronized-updates-spec */
LOG_DBG("untested: ESU - End Synchronized Update (params: %.*s)",
(int)term->vt.dcs.idx, term->vt.dcs.data);
size_t n = term->vt.dcs.idx;
if (unlikely(n > 0))
LOG_DBG("ESU with unknown params: %.*s)", (int)n, term->vt.dcs.data);
term_disable_app_sync_updates(term);
}