[ https://issues.apache.org/jira/browse/FELIX-6233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17064699#comment-17064699 ]
Mehmet Can Cömert commented on FELIX-6233: ------------------------------------------ Ah ok, It seems like I have run into the issue reported also for JLine and Karaf: https://issues.apache.org/jira/browse/KARAF-5996 https://github.com/jline/jline3/issues/321 The workaround is writing a script that first sets the TERM=windows and then calling the java {code} set TERM=windows java -jar .\bin\felix.jar {code} After this workaround, it is running as expected for me. Jline library is the one that interprets the "TERM" system variable: https://github.com/jline/jline3/blob/master/terminal/src/main/java/org/jline/terminal/TerminalBuilder.java#L295 And the value I used is specified in the AbstractWindows Terminal class: https://github.com/jline/jline3/blob/master/terminal/src/main/java/org/jline/terminal/impl/AbstractWindowsTerminal.java#L48 Apache calls Jline on activator with its default settings: https://github.com/apache/felix-dev/blob/master/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Activator.java#L114 I am not sure why JLine can not detect & create the correct type of terminal according to the OS type but this now seems more like a JLine issue or Felix is not calling it with correct parameters. > Apache Felix Gogo Shell is not working under Windows Terminals > -------------------------------------------------------------- > > Key: FELIX-6233 > URL: https://issues.apache.org/jira/browse/FELIX-6233 > Project: Felix > Issue Type: Bug > Components: Gogo Shell > Affects Versions: gogo.shell-1.1.0 > Reporter: Mehmet Can Cömert > Priority: Major > Attachments: adopt-open-jdk-11.png, adopt-open-jdk-8.png, > cmd-not-working.png, git-bash-working.png, power-shell-not-working.png, > powerShell-working.png > > > I have just downloaded the latest Felix distribution (6.0.3) > > [http://mirror.funkfreundelandshut.de/apache//felix/org.apache.felix.main.distribution-6.0.3.tar.gz] > and tried to execute the startup with: > {code:bash} > java -jar bin/felix.jar > {code} > Under Windows terminals (both Power Shell and old Command-Line cmd.exe) > cursor is not set back to the g! position but it wents to the beginning of > the next line. > The cursor position is not the main problem here but I can not give any > basic commands such as *lb* in the Windows terminals. > Exiting from the program is only possible by *Ctrl+D* after a *Ctrl+C* > command, enter is also not recognized. > It would be nice if the Felix Distribution works with Windows out of the box. > Previous versions of the Gogo Shell before the JLine library integration are > working, therefore I am not sure if the bug is in Gogo or another > subcomponent. -- This message was sent by Atlassian Jira (v8.3.4#803005)