aboutsummaryrefslogtreecommitdiff
path: root/config/conftest.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-11 01:52:58 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-11 01:52:58 -0400
commitb05889cde25b565d0d0bfa0e72ad655b0394f0de (patch)
tree6d3e40304184cdf613d38e9396bc3be86f01370a /config/conftest.c
parentced2f97c201def0356f0fa0601b3c7ad5fb71a6c (diff)
downloadfujinet-chat-b05889cde25b565d0d0bfa0e72ad655b0394f0de.tar.gz
Add config/* stuff.
Diffstat (limited to 'config/conftest.c')
-rw-r--r--config/conftest.c38
1 files changed, 38 insertions, 0 deletions
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 <stdio.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <atari.h>
+#include <conio.h>
+
+#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();
+}