BESM6: No need to check for printing to console.

This commit is contained in:
Leo Broukhis 2015-01-03 16:57:12 -08:00
parent 567e81188e
commit c2975c8e0e

View file

@ -52,8 +52,6 @@ struct acpu_t {
unsigned char line[128][MAX_STRIKES];
} acpu[2];
int acpu_isatty[2];
#define PRN1_NOT_READY (1<<19)
#define PRN2_NOT_READY (1<<18)
@ -116,12 +114,6 @@ t_stat printer_attach (UNIT *u, char *cptr)
if (s != SCPE_OK)
return s;
acpu_isatty[num] = !strcmp(cptr, "/dev/tty");
if (!acpu_isatty[num]) {
/* Write UTF-8 tag: zero width no-break space. */
fputs ("\xEF\xBB\xBF", u->fileref);
}
READY &= ~(PRN1_NOT_READY >> num);
return SCPE_OK;
}
@ -321,9 +313,6 @@ offset_gost_write (int num, FILE *fout)
}
}
if (acpu_isatty[num])
fputc('\r', fout);
fputc ('\n', fout);
memset(dev->line, 0, sizeof (dev->line));
dev->length = dev->strikes = 0;