summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/baresip.h1
-rw-r--r--modules/menu/menu.c3
-rw-r--r--src/ui.c6
3 files changed, 10 insertions, 0 deletions
diff --git a/include/baresip.h b/include/baresip.h
index c2cb29c..17e3864 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -550,6 +550,7 @@ void ui_input_key(char key, struct re_printf *pf);
void ui_input_str(const char *str);
int ui_input_pl(struct re_printf *pf, const struct pl *pl);
void ui_output(const char *str);
+bool ui_isediting(void);
/*
diff --git a/modules/menu/menu.c b/modules/menu/menu.c
index ec657a3..9701515 100644
--- a/modules/menu/menu.c
+++ b/modules/menu/menu.c
@@ -552,6 +552,9 @@ static void tmrstat_handler(void *arg)
tmr_start(&tmr_stat, 100, tmrstat_handler, 0);
+ if (ui_isediting())
+ return;
+
if (STATMODE_OFF != statmode) {
(void)re_fprintf(stderr, "%H\r", call_status, call);
}
diff --git a/src/ui.c b/src/ui.c
index 47e90d6..836dcdc 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -151,3 +151,9 @@ void ui_reset(void)
{
uictx = mem_deref(uictx);
}
+
+
+bool ui_isediting(void)
+{
+ return uictx != NULL;
+}