1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

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
parent a8c7b6ce86
commit 4f6438ec66
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;
}