Karl is going even simpler and just reading any line from the serial port. If it is ‘error\n’, he still continues.
The 1:1 message to ‘ok’ can be a bit dangerous. Because you can’t ever miss one, or you’re stuck. But you also need to be careful, because if you accidentally time out and skip ahead, then your command might be dropped, or cut off. It is a tricky balance. Cncjs has had trouble with this. The touch screens have trouble with it. It’s tricky.