history of commands for java console application
807597Feb 21 2005 — edited Mar 16 2005Hello,
I have a java console application that provides an interface to a database similar to a shell's interface to the file system. It's similar to the mysql command line program. My problem is that I would like the up arrow to scroll through a list of commands entered during the session, like the functionality that is provided in any unix shell and I believe was introduced to DOS years ago with DOSKEY. This already works without me doing anything special in Windows but in Linux the arrow key causes "^[[A" to be displayed. How do I go about implementing this command history functionality for Linux?
Thanks!!