1
0
mirror of https://github.com/sethm/symon.git synced 2024-12-29 02:31:59 +00:00

#13: Move cursor backward on ASCII Backspace

This commit is contained in:
Seth Morabito 2023-10-31 08:28:26 -07:00
parent 67f5e17f78
commit 5e56627f32

View File

@ -215,7 +215,8 @@ public class Vt100TerminalModel extends AbstractTerminalModel {
case '\t': case '\t':
while ((++cursorColumn % TAB_WIDTH) != 0); while ((++cursorColumn % TAB_WIDTH) != 0);
continue; continue;
case 127: case 8: // ASCII Backspace
case 127: // ASCII Delete
if (cursorColumn > 0) { if (cursorColumn > 0) {
cells[cursorRow][--cursorColumn] = null; cells[cursorRow][--cursorColumn] = null;
} }