set 10 0 11 ; set the newline character to loc 11 inp 1 10 2 ; input characters from loc 1 to loc 10 from port 2 out 1 11 1 ; output them right away along with the newline into port 1