Community
Participate
Working Groups
The Virgo project has a requirement for command history to be supported in the Equinox console. We had to drop our jline support which provided command history (up arrow retrieval of earlier commands) because of the failure to get Eclipse legal approval for jline.
Lazar and team at SAP have been investigating removing the console from the framework in bug 169603 and are considering adding this enhancement once we have removed it from the framework.
Lazar, is this fixed in the gogo based console?
(In reply to comment #2) > Lazar, is this fixed in the gogo based console? Yes, this is fixed.
Marking as fixed since the gogo based console is in M3.
I start up an Eclipse with -console and try to use the arrow keys in the osgi console and it doesn't work. I'm using this week's i-build so it is after M3. Shouldn't this work?
(In reply to comment #5) > I start up an Eclipse with -console and try to use the arrow keys in the osgi > console and it doesn't work. I'm using this week's i-build so it is after M3. > Shouldn't this work? hmmm, I think command history only works for telnet sessions. Lazar, please comment.
(In reply to comment #6) > (In reply to comment #5) > > I start up an Eclipse with -console and try to use the arrow keys in the osgi > > console and it doesn't work. I'm using this week's i-build so it is after M3. > > Shouldn't this work? > > hmmm, I think command history only works for telnet sessions. Lazar, please > comment. Yes, history and tab completion are available for telnet and ssh sessions. Since ssh is not included in the build yet, only the telnet supports currently this functionality. But as for history, I think we could provide this for the standard input as well. For tab completion it is more tricky.
(In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > I start up an Eclipse with -console and try to use the arrow keys in the osgi > > > console and it doesn't work. I'm using this week's i-build so it is after M3. > > > Shouldn't this work? > > > > hmmm, I think command history only works for telnet sessions. Lazar, please > > comment. > > Yes, history and tab completion are available for telnet and ssh sessions. > Since ssh is not included in the build yet, only the telnet supports currently > this functionality. > But as for history, I think we could provide this for the standard input as > well. For tab completion it is more tricky. It would be interesting to see if history could be added. Also note that eclipse console view also creates sessions though the org.eclipse.osgi.framework.console.ConsoleSession API to connect to the running instance of OSGi. I wonder if such sessions could also allow for history. I am not on windows now, but DJ and I seem to recall that the Windows command "shell" used to recall previous commands by using the up/down arrow keys with the old console when using Standard in/out. Not sure if that is still true with the new gogo based shell. I suspect it still works though since I imagine that is a "feature" of the Windows command "shell" rather than the osgi console code.
(In reply to comment #8) > It would be interesting to see if history could be added. I think if I wrap the stream before passing it to Gogo, I could add history. Actually, this is the way i do it with telnet/ssh. > Also note that > eclipse console view also creates sessions though the > org.eclipse.osgi.framework.console.ConsoleSession API to connect to the running > instance of OSGi. I wonder if such sessions could also allow for history. I was quite sure that it uses this API, although I couldn't find the exact code. But yes, these sessions allow for history - I first implemented history in telnet this way (before using Gogo). The shell in Vergo prior to 3.0.0 release uses this version. > I am not on windows now, but DJ and I seem to recall that the Windows command > "shell" used to recall previous commands by using the up/down arrow keys with > the old console when using Standard in/out. Not sure if that is still true > with the new gogo based shell. I suspect it still works though since I imagine > that is a "feature" of the Windows command "shell" rather than the osgi console > code. This still works in the new shell. You are right that this is a "feature" of the Windows command "shell" and not of the osgi console. Another such "feature" of the Windows command "shell" is the buffering of the standard input stream, which is flushed only after new line - that is why I haven't implemented tab completion for the standard input. Pressing tab just does nothing - you cannot read the tab char from the stream and handle it before enter ends the input.
Has this been done? I would suggest deferring to Keplar if not.
(In reply to comment #10) > Has this been done? I would suggest deferring to Keplar if not. Best to defer it for Kepler. This feature could be tricky - if you run Equinox and the console standalone, you actually get history for free from the OS. If I provide additional history most probably it would work in the PDE but in the standalone case there could be problems.
(In reply to comment #11) > (In reply to comment #10) > > Has this been done? I would suggest deferring to Keplar if not. > > Best to defer it for Kepler. This feature could be tricky - if you run Equinox > and the console standalone, you actually get history for free from the OS. If I > provide additional history most probably it would work in the PDE but in the > standalone case there could be problems. Part of this has been done at lest for telnet and ssh connections. I suggest we close this bug as fixed for telnet and ssh connections for Juno and open a separate bug for kepler. Lazar, can you do that?
(In reply to comment #12) > (In reply to comment #11) > > (In reply to comment #10) > > > Has this been done? I would suggest deferring to Keplar if not. > > > > Best to defer it for Kepler. This feature could be tricky - if you run Equinox > > and the console standalone, you actually get history for free from the OS. If I > > provide additional history most probably it would work in the PDE but in the > > standalone case there could be problems. > > Part of this has been done at lest for telnet and ssh connections. I suggest > we close this bug as fixed for telnet and ssh connections for Juno and open a > separate bug for kepler. Lazar, can you do that? Yes, I will open a new one for Keplar.
Closing this bug out for Juno M7.
(In reply to comment #13) > (In reply to comment #12) > > (In reply to comment #11) > > > (In reply to comment #10) > > > > Has this been done? I would suggest deferring to Keplar if not. > > > > > > Best to defer it for Kepler. This feature could be tricky - if you run Equinox > > > and the console standalone, you actually get history for free from the OS. If I > > > provide additional history most probably it would work in the PDE but in the > > > standalone case there could be problems. > > > > Part of this has been done at lest for telnet and ssh connections. I suggest > > we close this bug as fixed for telnet and ssh connections for Juno and open a > > separate bug for kepler. Lazar, can you do that? > > Yes, I will open a new one for Keplar. The KEpler bug - bug 378595.