implement eof, line printing, line jumping