stty icrnl

Helmut Karlowski helmut.karlowski@ish.de
Fri Jun 10 10:00:00 GMT 2016


---------------------------------------------------
> Ideally by somebody who knows how this dreaded Windows serial line API
> works...

Wouldn't someting like this work:

term=$'\r'
l=
while true; do read -N1 c
[ "$c" == $'\4' ] && break
[ "$c" == $term ] && { echo "<$l>"; l=; } || l="$l$c"
done

?
-Helmut


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list