Skip to content
Snippets Groups Projects
Commit 568495d0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Include terminal description in terminal.ini and node#/terminal mqtt msg

parent c1d3b692
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -553,6 +553,7 @@ bool sbbs_t::update_nodeterm(void) ...@@ -553,6 +553,7 @@ bool sbbs_t::update_nodeterm(void)
str_list_t ini = strListInit(); str_list_t ini = strListInit();
iniSetInteger(&ini, ROOT_SECTION, "cols", cols, NULL); iniSetInteger(&ini, ROOT_SECTION, "cols", cols, NULL);
iniSetInteger(&ini, ROOT_SECTION, "rows", rows, 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, "type", term_type(), NULL);
iniSetString(&ini, ROOT_SECTION, "chars", term_charset(), NULL); iniSetString(&ini, ROOT_SECTION, "chars", term_charset(), NULL);
iniSetHexInt(&ini, ROOT_SECTION, "flags", term_supports(), NULL); iniSetHexInt(&ini, ROOT_SECTION, "flags", term_supports(), NULL);
...@@ -573,9 +574,10 @@ bool sbbs_t::update_nodeterm(void) ...@@ -573,9 +574,10 @@ bool sbbs_t::update_nodeterm(void)
char str[256]; char str[256];
char topic[128]; char topic[128];
SAFEPRINTF(topic, "node%u/terminal", cfg.node_num); 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 ,cols
,rows ,rows
,terminal
,term_type() ,term_type()
,term_charset() ,term_charset()
,term_supports() ,term_supports()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment