BESM6: No need to check for printing to console.
This commit is contained in:
parent
567e81188e
commit
c2975c8e0e
1 changed files with 0 additions and 11 deletions
|
@ -52,8 +52,6 @@ struct acpu_t {
|
||||||
unsigned char line[128][MAX_STRIKES];
|
unsigned char line[128][MAX_STRIKES];
|
||||||
} acpu[2];
|
} acpu[2];
|
||||||
|
|
||||||
int acpu_isatty[2];
|
|
||||||
|
|
||||||
#define PRN1_NOT_READY (1<<19)
|
#define PRN1_NOT_READY (1<<19)
|
||||||
#define PRN2_NOT_READY (1<<18)
|
#define PRN2_NOT_READY (1<<18)
|
||||||
|
|
||||||
|
@ -116,12 +114,6 @@ t_stat printer_attach (UNIT *u, char *cptr)
|
||||||
if (s != SCPE_OK)
|
if (s != SCPE_OK)
|
||||||
return s;
|
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);
|
READY &= ~(PRN1_NOT_READY >> num);
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
@ -321,9 +313,6 @@ offset_gost_write (int num, FILE *fout)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (acpu_isatty[num])
|
|
||||||
fputc('\r', fout);
|
|
||||||
|
|
||||||
fputc ('\n', fout);
|
fputc ('\n', fout);
|
||||||
memset(dev->line, 0, sizeof (dev->line));
|
memset(dev->line, 0, sizeof (dev->line));
|
||||||
dev->length = dev->strikes = 0;
|
dev->length = dev->strikes = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue