From b05889cde25b565d0d0bfa0e72ad655b0394f0de Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 11 Mar 2026 01:52:58 -0400 Subject: Add config/* stuff. --- config/conftest.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 config/conftest.c (limited to 'config/conftest.c') diff --git a/config/conftest.c b/config/conftest.c new file mode 100644 index 0000000..4096b68 --- /dev/null +++ b/config/conftest.c @@ -0,0 +1,38 @@ +#include +#include +#include +#include +#include +#include + +#include "../src/config.h" + +void print(const char *text) { + fputs(text, stdout); +} + +void main(void) { + OS.color4 = 0xff; + + print("\x7d" "URL: "); + print(conf->url); + putchar('\n'); + + print("Nick: "); + print(conf->nick); + putchar('\n'); + + print("Pingpong: "); + print(conf->show_ping ? "yes" : "no"); + putchar('\n'); + + print("Autoaway: "); + print(conf->atract_away ? "yes" : "no"); + putchar('\n'); + + print("Hidemotd: "); + print(conf->hide_motd ? "yes" : "no"); + putchar('\n'); + + cgetc(); +} -- cgit v1.2.3