I want to know what the expected solution is for this tab autocompletion in Java.
I know two ways: one is to use the Java JLine library, and the other is to enable and disable raw mode.
I think doing it manually with rawMode will be complicated for further tasks.
But JLine is causing problem in adding dependency in maven for me.
The simplest and quick way is probably using JLine. I suppose readline library could be used with JNI.
The challenges mostly resolves around TAB completion and history buffers, so researching a bit, if seems the VT100 is an almost universal subset of terminal emulation that support both TAB and Arrows so calling a function that reads in raw mode and handles the basic VT100 sequences might be enough (but I admit I don’t know enough to be sure).
Hey @Molik2801, looks like you’ve got past this stage. Do you happen to remember what was wrong? Would love to see if we can improve the tester / instructions.
no i am still stuck in this stage but the major problem was fixed when i changed my code from using rawMode to Jline library, i still dont know why it was failing in rawMode.
now only minor issues are left which i will fix myself.