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