Questions tagged [jline3]
23 questions
4
votes
1 answer
JLine3 "Unable to create a system terminal" after build
I just tried to implement JLine with Jansi, but it throws always the same UnsupportedOperationException referring to org.jline.terminal.impl.jansi.JansiSupportImpl#winSysTerminal. Inspecting this method there is only one simple if which decides on…

Felix Gaebler
- 702
- 4
- 23
3
votes
0 answers
Using picocli with picocli-shell-jline3 and configured java modules leads to unnamed module reads package compile error
On a project with multi modules, we want to use picocli with jline to build a console app. For each module we created a module-info.java. But with picocli we are not able to compile our application. we have tons of errors like
module…

stofi
- 41
- 1
3
votes
1 answer
Jline3 Issues with Windows Terminal
So I just set up a Jline3 Project in my IDE to try out if it works.
It has only one class, which I copied from here: https://github.com/jline/jline3/blob/master/builtins/src/test/java/org/jline/example/Example.java
Jline3 provides some nice features…

Yanik
- 143
- 1
- 11
2
votes
1 answer
lein causes jline3 terminal to be dumb
I get a dumb terminal through lein whereas I get a non-dumb terminal through the uberjar. What's lein doing to cause this and how to fix it? This is happening on a Win 10 terminal
my project dependencies:
:dependencies [[org.clojure/clojure…

beluchin
- 12,047
- 4
- 24
- 35
2
votes
1 answer
Encoding issue with JLine
Jline is a module for intercepting user input at a console before the user presses Enter. It uses JNA or similar wizardry.
I'm doing a few experiments with it and I'm getting encoding problems when I input more "exotic" Unicode characters. The OS…

mike rodent
- 14,126
- 11
- 103
- 157
1
vote
2 answers
Spring Shell components don't show up
I'm trying to use the Spring Shell built-in components StringInput, PathInput, ConfirmationInput, SingleSelect and MultiSelect. Each time I try and use one of these by executing the run() method they inherit from AbstractComponent nothing shows up…

μ-the-ultimate
- 11
- 2
1
vote
1 answer
Cannot create OS terminal with jline3
In macOS 11.6 running this passing junit test, where Terminal and TerminalBuilder are from jline3:
@Test
void test1() throws IOException {
Terminal t = getTerminal();
Assertions.assertNotNull(t);
}
getTerminal:
public…

MiB
- 575
- 2
- 10
- 26
1
vote
1 answer
Can't get input line editing to work in JLine3
I'm struggling with the basics of getting a simple console application to work with JLine3.
I've initialized it like this:
terminal = TerminalBuilder.builder()
.streams(System.in, System.out)
.build();
…

Michael Kay
- 156,231
- 11
- 92
- 164
1
vote
2 answers
Picocli command hierarchy in JLine
I am using Pico CLI v4.0.0-alpha-3 & jline v3. I have the following class (using annotations). When I run the main class, I cannot seem to run the command and get the callable invoked. I can invoke the callable if I simply pass in the parameters.…

ali haider
- 19,175
- 17
- 80
- 149
1
vote
3 answers
JLine the contract for NonBlockingReader seems broken
Follows on from my previous question about JLine. OS: W10, using Cygwin.
def terminal = org.jline.terminal.TerminalBuilder.builder().jna( true ).system( true ).build()
terminal.enterRawMode()
// NB the Terminal I get is class…

mike rodent
- 14,126
- 11
- 103
- 157
1
vote
1 answer
Java/Scala interactive CLI with no new line on enter
I want to create a CLI that takes input commands like bash, but it's displaying content on the rest of the terminal so it must not roll all the lines up when enter is pressed. It should just erase the command line instead.
I'm trying JLine3. The…

Victor Basso
- 5,556
- 5
- 42
- 60
1
vote
0 answers
Can we extend parent terminal with JLine3?
Can we extend parent terminal (the one we start from the JLine) and use the available commands from there?

Radoslav Ivanov
- 970
- 8
- 23
1
vote
1 answer
How to display command history with jline3?
I want the most recent command entered to be displayed when the user presses the up arrow key.
The Terminal is defined like this (Scala code):
val terminal: Terminal =
TerminalBuilder.builder
.system(true)
.build
The LineReader is defined…

Mike Slinn
- 7,705
- 5
- 51
- 85
0
votes
1 answer
Jline with completion candidates having space giving unexpected output
I am using Jline 3.21.0 and trying to run a simple test with reference from
https://github.com/jline/jline3/blob/master/reader/src/test/java/org/jline/reader/completer/StringsCompleterTest.java
Below is one of the modified testcase with candidates…

Amol B
- 21
- 1
- 4
0
votes
1 answer
jline problems with escape character in completion
I am working on a project with jline version3 in java but in completion, I need to have "else if" but it puts \ to escape space as an escape character and I don't have any escape character also I tried null instead of a char[] but it crashes with…

radinParsaei
- 28
- 1
- 6