From 34af154e92383161666751ca69a288c98f5cca60 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 14 Apr 2026 01:16:04 +0200 Subject: `^A` now accepts an optional integer to specify the message severity * I.e. you can now log warnings and errors from SciTECO code as well. * We do not need a version of ^A accepting code points, since this is supported by ^T already. --- src/interface.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/interface.h') diff --git a/src/interface.h b/src/interface.h index 54f807b..3ee8742 100644 --- a/src/interface.h +++ b/src/interface.h @@ -60,10 +60,11 @@ GOptionGroup *teco_interface_get_options(void); void teco_interface_init_color(guint color, guint32 rgb); typedef enum { - TECO_MSG_USER, + TECO_MSG_USER = 0, TECO_MSG_INFO, TECO_MSG_WARNING, - TECO_MSG_ERROR + TECO_MSG_ERROR, + TECO_MSG_MAX = TECO_MSG_ERROR } teco_msg_t; extern teco_msg_t teco_interface_msg_level; -- cgit v1.2.3