I have been spending a lot of time writing Ruby programs that take in data through the terminal. One of the problems