I am working on a command line application for Solaris written in Java6. I would like to scroll through the history of previous commands using the up and down arrows, as many Unix tools do (shells, VIM command line mode hint, etc.).
Is there any standard way to achieve this, or do I need to minimize on my own?
Yes, use the GNU readline library .
I think you are looking for something like JLine , but I never used it, so I can not confirm its quality.
, -, , (feb ), .
ledit Linux . , .
: ledit , .
: http://cristal.inria.fr/~ddr/ledit/
SourceForge, http://java-readline.sourceforge.net/, JNI GNU readline. ( ), , , .
: GNU readline GPL:
Readline - , GNU General , 2. Readline , , GPL . GPL, licensing@gnu.org.
, Readline GPL- . ( LGPL, .)
, , , -.
wikipedia , JLine, .
: , . (0) . , ( / , ); , . (// , , , GPL, ). ; FDA, , , : ", , XYZ" - .
Source: https://habr.com/ru/post/1696722/More articles:Citrix Server Application Type - on Mac? - macosChange user to run windows forms program - authenticationhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1696719/how-to-save-persistent-objects-databound-to-a-datalayoutcontrol-devexpress-tools&usg=ALkJrhiEmLZ3JWAm9bJ-iSuYoDwwi0zq0AJavascript: make web browser scroll up? - javascriptProgrammatically get the creation of a database table script in .NET. - sqlCycle Measurement - profilingC crash reports for Linux - cDownload files in IE6 - phpКак предотвратить привязку гиперссылки - csshow to make cruisecontrol only build one project at a time - build-automationAll Articles