Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit e73e3ce9 authored by deuce's avatar deuce
Browse files

Allow log level changing from the menu... only usefull for file

tranfer debugging.
parent d29ada73
......@@ -9,5 +9,3 @@ Being able to override the default protocol from the command-line:
syncterm -r vert.synchro.net (RLogin)
syncterm -t vert.synchro.net (Telnet)
Specifying a BBS entry from the command-line
Online speed change and log level changing (From the menu)
Should this modify the entry or not?
......@@ -54,6 +54,7 @@ struct bbslist {
};
struct bbslist *show_bbslist(char* listpath, int mode, char *home);
extern char *log_levels[];
extern char *rate_names[];
extern int rates[];
void read_list(char *listpath, struct bbslist **list, int *i, int type, char* home);
......
......@@ -112,6 +112,7 @@ int syncmenu(struct bbslist *bbs, int *speed)
,"Zmodem Upload (Alt-U)"
,"Zmodem Download (Alt-D)"
,"Change Output Rate (Alt-Up/Alt-Down)"
,"Change Log Level"
,"Exit (Alt-X)"
,""};
int opt=0;
......@@ -162,6 +163,13 @@ int syncmenu(struct bbslist *bbs, int *speed)
}
ret=5;
break;
case 6: /* Change log level (temporarily) */
j=log_level;
i=uifc.list(WIN_MID|WIN_SAV,0,0,0,&j,NULL,"Log Level",log_levels);
if(i>=0)
log_level = j;
ret=6;
break;
default:
ret=i;
uifcbail();
......
......@@ -188,7 +188,7 @@ void dump(BYTE* buf, int len)
#endif
/* Zmodem Stuff */
static int log_level = LOG_INFO;
int log_level = LOG_INFO;
static void zmodem_check_abort(zmodem_t* zm)
{
......@@ -858,7 +858,7 @@ BOOL doterm(struct bbslist *bbs)
case 4:
zmodem_download(bbs->dldir);
break;
case 6:
case 7:
cterm_end();
free(scrollback);
conn_close();
......
......@@ -15,6 +15,7 @@ struct terminal {
extern struct terminal term;
extern int backlines;
extern int log_level;
BOOL doterm(struct bbslist *);
void mousedrag(unsigned char *scrollback);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment