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

Terminal: Use a more reasonable data structure for the emulation buffer.

This commit is contained in:
Andreas Kling 2019-01-25 01:27:02 +01:00
parent e28de4ad5e
commit a4a106a430
3 changed files with 62 additions and 43 deletions

View file

@ -93,6 +93,7 @@ int main(int, char**)
byte buffer[1024];
ssize_t nread = read(ptm_fd, buffer, sizeof(buffer));
if (nread < 0) {
dbgprintf("Terminal read error: %s\n", strerror(errno));
perror("read(ptm)");
continue;
}