revert __write_str, create __print_str that appends to cursor and \n