# This script set cua[il]a3 back to what I think it probably should be for use
# with a software flow controlled escom modem, for hylafax
# Julian H. Stacey
#
# Ref: man stty	man 4 termios
# still to check:	-dsrflow -dtrflow -mdmbuf

echo "--------------------------------------------------------------------------------"
echo cuala3 BEFORE:
stty -e -f /dev/cuala3
echo "--------------------------------------------------------------------------------"
stty  -f /dev/cuala3	\
gfmt1:cflag=4b00:iflag=0:lflag=0:oflag=0:discard=0:dsusp=0:eof=0:eol=0:eol2=0:erase=0:intr=0:kill=0:lnext=0:min=0:quit=0:reprint=0:start=0:status=0:stop=0:susp=0:time=0:werase=0:ispeed=19200:ospeed=19200
echo cuala3 AFTER:
stty -e -f /dev/cuala3
echo "--------------------------------------------------------------------------------"

echo cuaia3 BEFORE:
stty -e -f /dev/cuaia3
echo "--------------------------------------------------------------------------------"
stty  -f /dev/cuaia3 \
gfmt1:cflag=4b00:iflag=0:lflag=0:oflag=0:discard=f:dsusp=19:eof=4:eol=ff:eol2=ff:erase=7f:intr=3:kill=15:lnext=16:min=1:quit=1c:reprint=12:start=11:status=ff:stop=13:susp=1a:time=0:werase=17:ispeed=19200:ospeed=19200
echo cuaia3 AFTER:
stty -e -f /dev/cuaia3
echo "--------------------------------------------------------------------------------"
echo cuaa3 NOW:
stty -e -f /dev/cuaa3
echo "--------------------------------------------------------------------------------"
