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

LibVT: Make inject_string() a public API so clients can use it

This API allows you to add arbitrary input at the current cursor
position. You can even do escape sequences! :^)
This commit is contained in:
Andreas Kling 2019-10-22 22:14:36 +02:00
parent cd1eee6604
commit 5a83e053b3
3 changed files with 8 additions and 2 deletions

View file

@ -833,7 +833,7 @@ void Terminal::on_char(u8 ch)
}
}
void Terminal::inject_string(const String& str)
void Terminal::inject_string(const StringView& str)
{
for (int i = 0; i < str.length(); ++i)
on_char(str[i]);