aboutsummaryrefslogtreecommitdiff
path: root/config/conftest.c
blob: 4096b6865fb163529bf29318564479d5140983dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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();
}