Skip to content
Snippets Groups Projects
Commit 852e6b7a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

A couple more Atari ST VT52 fixes...

FF and VT both move down one line, scrolling if necessary.

The rest of the unsupported control characters have no effect
(ie: work like NUL)

Delete shows the delta.
parent b2854d79
No related branches found
No related tags found
No related merge requests found
Pipeline #8205 passed
......@@ -6475,6 +6475,14 @@ CIOLIBEXPORT size_t cterm_write(struct cterminal * cterm, const void *vbuf, int
switch(buf[j]) {
case 0:
break;
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
// Ignored
break;
case 7: /* Beep */
lastch = 0;
uctputs(cterm, prn);
......@@ -6490,12 +6498,39 @@ CIOLIBEXPORT size_t cterm_write(struct cterminal * cterm, const void *vbuf, int
#endif
}
break;
case 11:
case 12:
// VT and FF both move down one row and scroll.
uctputs(cterm, prn);
prn[0]=0;
prnpos = prn;
adjust_currpos(cterm, 0, 1, true);
break;
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
break;
case 27: /* ESC */
uctputs(cterm, prn);
prn[0]=0;
prnpos = prn;
cterm->sequence=1;
break;
case 28:
case 29:
case 30:
case 31:
break;
default:
lastch = ch[0];
*prnpos++ = ch[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment