I am using a command line based simulator on Ubuntu 12.04. It has got a nice feature of fetching the previous commands on a key press of Up arrow, just like bash. Surprisingly, the bash feature of fetching the command history works fine, but within the application it doesn't. It produces some special characters instead. When I use the same application on Fedora 14, it works fine. Is there any means to fix it?