From d6ff9f5bda85206d163f02f7cc78e47968c434ce Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Fri, 12 Jul 2024 23:40:38 -0500 Subject: Fix automated serial input --- hexedit/slowcat.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hexedit/slowcat.c (limited to 'hexedit/slowcat.c') diff --git a/hexedit/slowcat.c b/hexedit/slowcat.c new file mode 100644 index 0000000..67725d4 --- /dev/null +++ b/hexedit/slowcat.c @@ -0,0 +1,11 @@ +#include +#include + +int main() { + uint8_t byte; + while (read(STDIN_FILENO, &byte, 1)) { + write(STDOUT_FILENO, &byte, 1); + usleep(10000); + } + return 0; +} -- cgit v1.2.3