use deque for console buffer, up/down scroll command history