summaryrefslogtreecommitdiff
path: root/sysinfo.c
blob: b43d4e5cac4596b625eca9fea4f89c52ee00270c (plain) (blame)
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
39
40
41
42
43
44
45
46
47
#include "sysinfo.h"

int bbs_sysinfo( term_screen *ts )
{
	int ret=0;

	//setup screen to show stuff
	term_clr_scr( ts );

	printf("Press ANYKEY \n\n\n");

	term_cur_set_c( ts, 0 );
	printf("BBS:MicroBBS %s (%s)\n", BUILD_VERSION, BUILD_DATE);

	term_cur_set_c( ts, 0 );
	printf("Author: FreeArtMan\n");
	
	term_cur_set_c( ts, 0 );
	printf("Contributor: epoch\n");
	
	term_cur_set_c( ts, 0 );
	printf("Main chan: irc://irc.freenode.net#mainlv\n");
	
	term_cur_set_c( ts, 0 );
	printf("Ideological support: irc://hacking.allowed.org#default\n");

	term_cur_set_c( ts, 0 );
	printf("Root dir: %s\n",g_config.root_dir );

	term_cur_set_c( ts, 0 );
	printf("Users dir: %s\n", g_config.user_dir );

	term_cur_set_c( ts, 0 );
	printf("Article dir: %s\n", g_config.article_dir );

	term_cur_set_c( ts, 0 );
	printf("Syslog : %d\n", g_config.syslog );

	//main loop wait while press something
	term_cur_set_r( ts, term_get_maxrow( ts ) );
	term_cur_set_c( ts, 0 );
	printf(":"); fflush( stdout );
	term_getc( ts );

	return ret;
}