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

Character 127 in Beeb mode is destructive backspace.

parent ac68809c
No related branches found
No related tags found
No related merge requests found
Pipeline #8180 passed
...@@ -6177,6 +6177,12 @@ CIOLIBEXPORT size_t cterm_write(struct cterminal * cterm, const void *vbuf, int ...@@ -6177,6 +6177,12 @@ CIOLIBEXPORT size_t cterm_write(struct cterminal * cterm, const void *vbuf, int
prnpos = prn; prnpos = prn;
cterm->escbuf[cterm->sequence++] = ch[0]; cterm->escbuf[cterm->sequence++] = ch[0];
break; break;
case 127: // Destructive backspace
*prnpos++ = '\b';
*prnpos++ = ' ';
*prnpos++ = '\b';
*prnpos = 0;
break;
default: default:
// "Normal" ASCII... including CR and LF in here. // "Normal" ASCII... including CR and LF in here.
if (buf[j] == 13 || buf[j] == 10 || (buf[j] >= 32 && buf[j] <= 127)) { if (buf[j] == 13 || buf[j] == 10 || (buf[j] >= 32 && buf[j] <= 127)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment