diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-11 01:52:58 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-11 01:52:58 -0400 |
| commit | b05889cde25b565d0d0bfa0e72ad655b0394f0de (patch) | |
| tree | 6d3e40304184cdf613d38e9396bc3be86f01370a /config/conftest.c | |
| parent | ced2f97c201def0356f0fa0601b3c7ad5fb71a6c (diff) | |
| download | fujinet-chat-b05889cde25b565d0d0bfa0e72ad655b0394f0de.tar.gz | |
Add config/* stuff.
Diffstat (limited to 'config/conftest.c')
| -rw-r--r-- | config/conftest.c | 38 |
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(); +} |
