I'm looking for a way to catch when the user presses the up arrow. It can only use standard libraries and shouldn't use curses... I'm working on a shell, and the basic functionality is done, and I want to add the scroll feature bash has (that is go backward through the history (I already have a history for the bang-bang, and will be writting bang later).