Implemented TtyWrite; tested with ttywrite programs