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

Fix issue with ATASCII delete/insert character.

Before the Unicode support was added, displaying a NUL would clear
the cell, but now it is translated.  For ATASCII, this results in
a heart character being displayed instead of an empty cell when
inserting or deleting characters.

Fixes bug #28 on Sourceforge.
parent e865c517
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1481 passed
...@@ -5036,7 +5036,7 @@ CIOLIBEXPORT char* CIOLIBCALL cterm_write(struct cterminal * cterm, const void * ...@@ -5036,7 +5036,7 @@ CIOLIBEXPORT char* CIOLIBCALL cterm_write(struct cterminal * cterm, const void *
y = CURR_MAXY; y = CURR_MAXY;
} }
GOTOXY(x, y); GOTOXY(x, y);
PUTCH(0); PUTCH(32);
GOTOXY(x, y); GOTOXY(x, y);
break; break;
/* We abuse the ESC buffer for tab stops */ /* We abuse the ESC buffer for tab stops */
...@@ -5118,7 +5118,7 @@ CIOLIBEXPORT char* CIOLIBCALL cterm_write(struct cterminal * cterm, const void * ...@@ -5118,7 +5118,7 @@ CIOLIBEXPORT char* CIOLIBCALL cterm_write(struct cterminal * cterm, const void *
coord_conv_xy(cterm, CTERM_COORD_CURR, CTERM_COORD_SCREEN, &ex, NULL); coord_conv_xy(cterm, CTERM_COORD_CURR, CTERM_COORD_SCREEN, &ex, NULL);
MOVETEXT(sx, sy, ex - 1, sy, sx + 1, sy); MOVETEXT(sx, sy, ex - 1, sy, sx + 1, sy);
} }
PUTCH(0); PUTCH(32);
GOTOXY(x, y); GOTOXY(x, y);
break; break;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment