From c2975c8e0e3bc4e3a0b9ce97734d6fa10df259e8 Mon Sep 17 00:00:00 2001 From: Leo Broukhis Date: Sat, 3 Jan 2015 16:57:12 -0800 Subject: [PATCH] BESM6: No need to check for printing to console. --- BESM6/besm6_printer.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/BESM6/besm6_printer.c b/BESM6/besm6_printer.c index 79cf647e..dbfe4ec3 100644 --- a/BESM6/besm6_printer.c +++ b/BESM6/besm6_printer.c @@ -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;