VirtualConsole: Support the 'A' and 'D' CSI sequences.

This makes backspace work correctly when line editing with bash-2.05b.
This commit is contained in:
Andreas Kling 2018-12-07 01:19:02 +01:00
commit 4f6438ec66
Notes: sideshowbarker 2024-07-19 16:08:15 +09:00
5 changed files with 47 additions and 7 deletions

View file

@ -114,7 +114,9 @@ char* tgoto(const char* cap, int col, int row)
int tputs(const char* str, int affcnt, int (*putc)(int))
{
printf("%s", str);
size_t len = strlen(str);
for (size_t i = 0; i < len; ++i)
putc(str[i]);
return 0;
}