I have the following scenario:
I have a Windows in a VM, which has an exposed serial port to a host pipe (named-pipe / fifo).
The host pipe is at
On my host OS, I'm using
socat like so:
socat - /tmp/win-serial-com3,cr
On the guest, I'm opening PuTTY, and set "implicit LF in every CR", and local echo is enabled. PuTTY opens COM3 on that guest Windows.
With both running, return keys work fine, there is no doubling, etc. I can type into the PuTTY and I can see each character appear one after another in the terminal in my host OS, where
socat is running.
However, when I type something in my host OS, I can see the local echo (as it is not switched off with
echo=0 option), but the character will appear in PuTTY on my guest os, only after hitting return.
What I'd like to happen, is that each time I press a key, that key is sent to the named pipe, essentially having the same behavior as PuTTY on the guest OS.
I assume this has something to do with buffering of STDIO (
-), but I'm not exactly sure.