#include "articles.h"
#ifdef CONFIG_ARTICLES
//TODO add checkout on size of art it will fix,
// warn about cutted images
int bbs_article( term_screen *ts, const char *fname )
{
int ret=-1;
int i=0;
FILE *f;
size_t str_size=0, fret=1;
char *str=NULL;
int quit_loop=0;
int max_row=0;
int menu_input=0;
char menu_cmd=0;
bbs_log_article( NULL );
if ( fname != NULL )
{
f = fopen( fname, "r" );
if ( f == NULL )
{
term_printf( ts, "Cannot open article file\n");
return -1;
}
term_clr_scr( ts );
max_row = term_get_maxrow( ts );
fret = 1;
i = 0;
while ( (fret > 0) && (quit_loop == 0