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

TTY::write() should return the number of bytes written.

This commit is contained in:
Andreas Kling 2019-01-14 00:19:03 +01:00
parent cc0be2e78a
commit e7b1101f62

View file

@ -39,7 +39,7 @@ ssize_t TTY::write(const byte* buffer, size_t size)
dbgprintf("\n");
#endif
on_tty_write(buffer, size);
return 0;
return size;
}
bool TTY::has_data_available_for_reading() const