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:
parent
a8c7b6ce86
commit
4f6438ec66
5 changed files with 47 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue