fix
cleanup, removed unused deprecated output_write_to_tty function