Skip to content
Snippets Groups Projects
Commit e95e11ea authored by deuce's avatar deuce
Browse files

More hold_update fiddling...

Restore original hold status for local input.
Ensure hold update is FALSE while starting transfers.
parent 67edd82c
No related branches found
No related tags found
No related merge requests found
......@@ -189,9 +189,9 @@ void update_status(struct bbslist *bbs, int speed)
break;
default:
if(timeon>359999)
cprintf(" %-29.29s \263 %-6.6s \263 Connected: Too Long \263 ALT-Z for menu ",nbuf,conn_types[bbs->conn_type]);
cprintf(" %-30.30s \263 %-6.6s \263 Connected: Too Long \263 ALT-Z for menu",nbuf,conn_types[bbs->conn_type]);
else
cprintf(" %-29.29s \263 %-6.6s \263 Connected: %02d:%02d:%02d \263 ALT-Z for menu ",nbuf,conn_types[bbs->conn_type],timeon/3600,(timeon/60)%60,timeon%60);
cprintf(" %-30.30s \263 %-6.6s \263 Connected: %02d:%02d:%02d \263 ALT-Z for menu",nbuf,conn_types[bbs->conn_type],timeon/3600,(timeon/60)%60,timeon%60);
break; /* 1+29 +3 +6 +3 +11 +3+3+2 +3 +6 +4 +5 */
}
if(wherex()>=80)
......@@ -619,6 +619,7 @@ void begin_download(struct bbslist *bbs)
};
struct text_info txtinfo;
char *buf;
int old_hold=hold_update;
if(safe_mode)
return;
......@@ -631,6 +632,7 @@ void begin_download(struct bbslist *bbs)
i=0;
uifc.helpbuf="Select Protocol";
hold_update=FALSE;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&i,NULL,"Protocol",opts)) {
case 0:
zmodem_download(bbs);
......@@ -646,6 +648,7 @@ void begin_download(struct bbslist *bbs)
xmodem_download(bbs, XMODEM|CRC|RECV,path);
break;
}
hold_update=old_hold;
uifcbail();
puttext(1,1,txtinfo.screenwidth,txtinfo.screenheight,buf);
gotoxy(txtinfo.curx, txtinfo.cury);
......@@ -2062,8 +2065,8 @@ BOOL doterm(struct bbslist *bbs)
if(updated && sleep) {
hold_update=FALSE;
gotoxy(wherex(), wherey());
hold_update=TRUE;
}
hold_update=oldmc;
/* Get local input */
while(kbhit()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment