1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:37:34 +00:00

LibVT: Respond to DSR 0 (device status)

Also emit query responses in a single write() syscall instead of going
character-at-a-time.
This commit is contained in:
Andreas Kling 2020-05-09 10:38:57 +02:00
parent b1fee13904
commit 283bd1a95c
4 changed files with 19 additions and 16 deletions

View file

@ -711,10 +711,10 @@ void TerminalWidget::beep()
force_repaint();
}
void TerminalWidget::emit_char(u8 ch)
void TerminalWidget::emit(const u8* data, size_t size)
{
if (write(m_ptm_fd, &ch, 1) < 0) {
perror("emit_char: write");
if (write(m_ptm_fd, data, size) < 0) {
perror("TerminalWidget::emit: write");
}
}