mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +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:
parent
b1fee13904
commit
283bd1a95c
4 changed files with 19 additions and 16 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue