Questions tagged [jline]

JLine is a Java library for handling console input. It is similar in functionality to BSD editline and GNU readline. People familiar with the readline/editline capabilities for modern shells (such as bash and tcsh) will find most of the command editing features of JLine to be familiar.

JLine is a Java library for handling console input. It is similar in functionality to BSD editline and GNU readline. People familiar with the readline/editline capabilities for modern shells (such as bash and tcsh) will find most of the command editing features of JLine to be familiar.

JLine 2.x is an evolution of JLine 1.x which was previously maintained at SourceForge.

Features

JLine sports the following major features:

  1. Command history - Lines that have been previously entered may be recalled and edited and can be persisted so that they are available across sessions of your program.

  2. Line editing - JLine allows full editing of the current command line and attempts to mimic as much of the behavior of GNU Readline as possible, including support for both emacs and vi key mappings.

  3. Completion - JLine provides a pluggable mechanism for implementing command line tab completion (of course completion can be bound to any key you wish).

  4. Custom Key bindings - Keys may be arbitrarily remapped to perform a specific action, and JLine attempts to honor any mapping that is set in your existing readline .inputrc file.

  5. Character Masking - Input may be gathered from the user without any visual feedback. This is useful for prompting for passwords.

  6. 99.99% Java - The vast portion of JLine is all Java, using only some small bit of native code, provided by the Jansi project, to support Windows.

89 questions
0
votes
0 answers

Fuse dead after restart

I rebuilt my docker with Fuse (Red Hat Fuse (7.0.0.fuse-000191-redhat-1) ) on Centos 7, and everything is broken now. I didn't change anything. Could a yum update cause this? Exception caught while executing…
djb
  • 1,635
  • 3
  • 26
  • 49
0
votes
1 answer

JLine autocomplete not showing and running onComplete after pressing enter

For some reason, my multithreaded netty server won't work with autocomplete on Windows to be specific (in my original testing linux worked fine) I found terminal console appender and jansi to be "solutions" which they were for a lot of problems,…
Fern
  • 93
  • 6
  • 16
0
votes
1 answer

Java : Jline3 : Autocomplete with more than one word

I would like to auto complete using more than one word, for example: > we can welcome_trashcan pecan_seaweed yeswecan canwest So all the suggestions should contain both of the keywords. Ideally, it should work for unlimited keywords. I read…
lepe
  • 24,677
  • 9
  • 99
  • 108
0
votes
1 answer

sbt jline dependency not found

In my local repo for scala/scala github project(here), jline dependency is set as 2.14.5. I change it to 3.1.3, but dependency is not resolved when I try to build the project. How to get it resolved?
Mandroid
  • 6,200
  • 12
  • 64
  • 134
0
votes
1 answer

Obtaining the collection of jline3 commands from a TreeCompleter

I have a TreeCompleter (Scala code) which works as expected: val treeCompleter = new TreeCompleter( node("bindkey"), node("cls"), node( "custom", node("Option1", node("Param1", "Param2")), node("Option2"), …
Mike Slinn
  • 7,705
  • 5
  • 51
  • 85
0
votes
1 answer

How to display all commands using jline3

I have a TreeCompleter (Scala code) which works as expected: val treeCompleter = new TreeCompleter( node("bindkey"), node("cls"), node( "custom", node("Option1", node("Param1", "Param2")), node("Option2"), …
Mike Slinn
  • 7,705
  • 5
  • 51
  • 85
0
votes
3 answers

Why is my javap output different than yours for the same jar file?

I'm having trouble compiling code which has a maven dependency on jline-0.9.94. Specifically, I'm compiling Groovy 1.7.6 using its default Ant target and getting the following error: [...] -banner: [echo] Java Runtime Environment version:…
Lyle
  • 3,724
  • 3
  • 25
  • 25
0
votes
0 answers

how to deploy java application with native code from 64 bit windows to 32 bit windows?

i hope caps lock haters are now pleased and in paradise. as you can see, all letters are small. enjoy yourself. anyway, i have a question about java. i have application written in java which uses some external libraries (jansi, and jline to be…
SYOB SYOT
  • 900
  • 10
  • 14
0
votes
1 answer

Scala -jline file completer causes file not found (linux)

I'm seeing something very bizarre in this piece of code. command match { case "q" | "quit" => done=true case "f" | "file" => { // console_reader.addCompleter(fn_completer) val…
TLOlczyk
  • 443
  • 3
  • 11
0
votes
1 answer

How do I get ANSI bright colors to work in the windows cmd?

I am using java, the jline library and jansi. I have regular colors working just fine, either using \u001B[32m for example, or Ansi.ansi().fg(Ansi.Color.GREEN). However, I cannot seem to get the bright set of colors working. I've tried both…
MrZoraman
  • 421
  • 4
  • 13
0
votes
1 answer

JLine2: How can I combine the completers in a single group?

I consider this question would be much specific and clearer. Here is my code which do simple autocompletion operation (sort of). public class JLineExample { public static void main(String[] args) throws IOException { String line; …
Alex
  • 2,091
  • 6
  • 31
  • 49
0
votes
0 answers

ProcessStartInfo and JLine

Using ProcessStartInfo in Visual Basic, I want to redirect a Java application I/O handled by the JLine library. Output is ok, input doesn't work. I found Process.StandardInput.WriteLine Not working on Java.exe. OP solves the issue by stopping…
spongebob
  • 8,370
  • 15
  • 50
  • 83
0
votes
1 answer

how to implement clean screen and config keybind with jLine

I want to develop a java cli with jline..I get different Jline version from Internet, but I don't know the difference between them.. My OS is WINDOWS XP SP2. In Jline09.9 and Jline1.0, it also don't support clean screen. How to config keybind to…
0
votes
2 answers

JLine library echo

I use JLine library to handle console input and output. Terminal terminal = TerminalFactory.getFlavor(TerminalFactory.Flavor.valueOf("UNIX")); terminal.init(); terminal.setEchoEnabled(true); ConsoleReader console = new…
1 2 3 4 5
6