I don’t want to watch the video on my phone, so would you please give some practical examples of what this might be used for? I read the description and I don’t know what it’s for.
This can relieve a pain point if you ever need to work on a serial port, and as you are typing in a command, the other side sends text, which overwrites the characters you were typing (depending on how the local echo is configured). It reminds me of a line based serial terminal emulator, where the input is a separate text box, and the output is a larger box above it.
Oh, and it also seems to have methods of sampling the data as it comes in, so that it can be configured to only show the messages you are looking for, and also counting them?
The source file is also tiny: https://www.kylheku.com/cgit/pw/tree/pw.c
Very Unix