fix drawing in ConsoleDemoAdv
implement input buffer (fixes problems with input functions)