summaryrefslogtreecommitdiff
path: root/src/dged/keyboard.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2024-03-22 20:53:20 +0100
committerAlbert Cervin <albert@acervin.com>2024-03-22 20:55:36 +0100
commit1c78990eef67e89cfb2d664415c52a6a4009fa9c (patch)
tree25a1ced9ea743a1b24794da558b6cb87d44b63ab /src/dged/keyboard.c
parentbb2dff871b6a5b1362a2f867e586b06dc6b49996 (diff)
downloaddged-1c78990eef67e89cfb2d664415c52a6a4009fa9c.tar.gz
dged-1c78990eef67e89cfb2d664415c52a6a4009fa9c.tar.xz
dged-1c78990eef67e89cfb2d664415c52a6a4009fa9c.zip
Add a sigsegv handler
To try and reset the terminal to something useful.
Diffstat (limited to 'src/dged/keyboard.c')
-rw-r--r--src/dged/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dged/keyboard.c b/src/dged/keyboard.c
index f13d449..1e28066 100644
--- a/src/dged/keyboard.c
+++ b/src/dged/keyboard.c
@@ -108,7 +108,7 @@ struct keyboard_update keyboard_update(struct keyboard *kbd,
}
// read all input in chunks of `bufsize` bytes
- const uint32_t bufsize = 128;
+ const uint32_t bufsize = 1024;
uint8_t *buf = malloc(bufsize), *writepos = buf;
int nbytes = 0, nread = 0;
while ((nread = read(kbd->fd, writepos, bufsize)) == bufsize) {