osx draw & wait_for_input realization + print function