|
|
|
@ -28,7 +28,7 @@ |
|
|
|
extern int optind; |
|
|
|
extern int optind; |
|
|
|
|
|
|
|
|
|
|
|
static struct sound_driver *sound; |
|
|
|
static struct sound_driver *sound; |
|
|
|
static unsigned int foreground_in = 1, foreground_out = 1; |
|
|
|
static unsigned int foreground_in, foreground_out; |
|
|
|
static int refresh_status; |
|
|
|
static int refresh_status; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -87,6 +87,8 @@ static void sigcont_handler(int sig) |
|
|
|
/* Only call if it was not already prepared */ |
|
|
|
/* Only call if it was not already prepared */ |
|
|
|
set_tty(); |
|
|
|
set_tty(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
foreground_in = foregound_out = 1; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (sig != 0) |
|
|
|
if (sig != 0) |
|
|
|
@ -439,6 +441,8 @@ int main(int argc, char **argv) |
|
|
|
|
|
|
|
|
|
|
|
#ifdef SIGTSTP |
|
|
|
#ifdef SIGTSTP |
|
|
|
sigcont_handler(0); |
|
|
|
sigcont_handler(0); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
foreground_in = foregound_out = 1; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
if (foreground_out && opt.verbose > 0) { |
|
|
|
if (foreground_out && opt.verbose > 0) { |
|
|
|
info_frame(&mi, &fi, &control, refresh_status); |
|
|
|
info_frame(&mi, &fi, &control, refresh_status); |
|
|
|
|