Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

history of commands for java console application

807597Feb 21 2005 — edited Mar 16 2005
Hello,

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!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2005
Added on Feb 21 2005
10 comments
707 views