Comments on Teraterm Scripts
Teraterm keeps a 16K receive buffer. The waitrecv command searches the buffer but does NOT purge the buffer. This is why your above scripts require the transmit delay. If you add flushrecv before each sendln in the above scripts they would work properly. Otherwise the very first "#" that is received satisfies all the following waitrecv '#' 1 0. You need to flush the existing "#" from the recv buffer by calling flushrecv if you want to wait for a new one.
--Keith 13:45, 14 September 2009 (CDT)