PROC Main() CHAR c DO c=GetD(7) Put(c) UNTIL c=27 ;repeat until Esc key is pressed OD RETURN