1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-21 10:12:30 +00:00

KA10: Attempt to handle 132 character lines correct on LP.

This commit is contained in:
Richard Cornwell 2019-08-07 21:47:35 -04:00
parent ac325f6c73
commit dcf54c64ca

View File

@ -241,6 +241,8 @@ lpt_output(UNIT *uptr, char c) {
if (c == 0)
return;
if (uptr->COL == 132)
lpt_printline(uptr, 1);
if ((uptr->flags & UNIT_UC) && (c & 0140) == 0140)
c &= 0137;
if ((uptr->flags & UNIT_UTF8) && c < 040) {
@ -260,8 +262,6 @@ lpt_output(UNIT *uptr, char c) {
lpt_buffer[uptr->POS++] = c;
uptr->COL++;
}
if (uptr->COL == 132)
lpt_printline(uptr, 1);
return;
}