From c0b7b455700c96623cbd47a0d3dd41d6a3e8cac5 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sat, 23 May 2020 14:47:19 -0400 Subject: [PATCH] emul: fix backspace it was broken in the move to ncurses. --- emul/forth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emul/forth.c b/emul/forth.c index f50d1f6..b5ae068 100644 --- a/emul/forth.c +++ b/emul/forth.c @@ -52,6 +52,9 @@ static void iowr_stdio(uint8_t val) } else { if (val >= 0x20 || val == '\n') { wechochar(w, val); + } else if (val == 0x08) { + int y, x; getyx(w, y, x); + wmove(w, y, x-1); } } }