LibVT: Write emoji to the pseudo-terminal master fd on emoji input

... instead of inserting it into the current output character stream
that the terminal widget is going to render.

This ensures that the emoji gets sent to the foreground process of the
terminal.
This commit is contained in:
ronak69 2024-01-29 11:12:15 +00:00 committed by Ali Mohammad Pur
parent d0e3065ced
commit 49467c6ec2
Notes: sideshowbarker 2024-07-17 23:07:41 +09:00

View file

@ -97,7 +97,7 @@ TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy)
set_pty_master_fd(ptm_fd);
on_emoji_input = [this](auto emoji) {
inject_string(emoji);
emit(emoji.bytes().data(), emoji.length());
};
m_cursor_blink_timer = add<Core::Timer>();