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:
parent
cd1eee6604
commit
5a83e053b3
3 changed files with 8 additions and 2 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue