Add get-line and put-line functions
Provide option for put-line to not flush