...
 
Commits (2)
......@@ -708,6 +708,8 @@ while(bbs.online) {
}
else {
bbs.exec_xtrn(xtrn_area.sec_list[curr_xtrnsec].prog_list[parseInt(x_prog)].number);
if(xtrn_area.sec_list[curr_xtrnsec].prog_list[parseInt(x_prog)].settings & XTRN_PAUSE)
console.pause();
}
start_mouse();
draw_main(true);
......
......@@ -999,6 +999,14 @@ int ansi_initciolib(long inmode)
return(1);
}
void ansi_suspend(void)
{
#if defined _WIN32
// Prevents the wait for a key press when exit() is called and the stdin stream is flushed
_unlock_file(stdin);
#endif
}
CIOLIBEXPORT void CIOLIBCALL ansi_ciolib_setdoorway(int enable)
{
if(cio_api.mode!=CIOLIB_MODE_ANSI)
......
......@@ -70,6 +70,7 @@ int ansi_getch(void);
int ansi_getche(void);
void ansi_beep(void);
void ansi_textmode(int mode);
void ansi_suspend(void);
#ifdef __cplusplus
}
#endif
......
......@@ -322,6 +322,7 @@ static int try_ansi_init(int mode)
cio_api.textmode=ansi_textmode;
cio_api.ESCDELAY=&CIOLIB_ANSI_TIMEOUT;
cio_api.beep=ansi_beep;
cio_api.suspend=ansi_suspend;
return(1);
}
return(0);
......