From 568495d067a5700412915de9f487034bf5919540 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Tue, 3 Jan 2023 21:40:14 -0800 Subject: [PATCH] Include terminal description in terminal.ini and node#/terminal mqtt msg --- src/sbbs3/con_out.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp index 724a479439..5853507e10 100644 --- a/src/sbbs3/con_out.cpp +++ b/src/sbbs3/con_out.cpp @@ -553,6 +553,7 @@ bool sbbs_t::update_nodeterm(void) str_list_t ini = strListInit(); iniSetInteger(&ini, ROOT_SECTION, "cols", cols, NULL); iniSetInteger(&ini, ROOT_SECTION, "rows", rows, NULL); + iniSetString(&ini, ROOT_SECTION, "desc", terminal, NULL); iniSetString(&ini, ROOT_SECTION, "type", term_type(), NULL); iniSetString(&ini, ROOT_SECTION, "chars", term_charset(), NULL); iniSetHexInt(&ini, ROOT_SECTION, "flags", term_supports(), NULL); @@ -573,9 +574,10 @@ bool sbbs_t::update_nodeterm(void) char str[256]; char topic[128]; SAFEPRINTF(topic, "node%u/terminal", cfg.node_num); - snprintf(str, sizeof(str), "%lu\t%lu\t%s\t%s\t%lx\t%lx\t%lx" + snprintf(str, sizeof(str), "%lu\t%lu\t%s\t%s\t%s\t%lx\t%lx\t%lx" ,cols ,rows + ,terminal ,term_type() ,term_charset() ,term_supports() -- GitLab