<div dir="ltr">I wrote a program first in Windows, where it works as expected, and now I'm using it in OS X and getting undesired behavior. <div><br></div><div>It reads lines from the terminal using the getLine function. In Windows (DOS, actually) the up and down arrows can be used to choose previously entered lines. However, this does not work in bash in OS X. </div><div><br></div><div>What do I need to get the history available via the arrow keys?</div><div><br></div><div>D</div><div><br></div></div>