1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +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

@ -19,6 +19,11 @@ public:
virtual ~TerminalWidget() override;
void set_pty_master_fd(int fd);
void inject_string(const StringView& string)
{
m_terminal.inject_string(string);
flush_dirty_lines();
}
void create_window();