Skip to content

Commit

Permalink
Add the provider name in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Dec 22, 2023
1 parent 32d2af1 commit 4ccf282
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtins/src/test/java/org/jline/example/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.jline.reader.impl.completer.ArgumentCompleter;
import org.jline.reader.impl.completer.StringsCompleter;
import org.jline.terminal.*;
import org.jline.terminal.spi.TerminalExt;
import org.jline.utils.*;
import org.jline.utils.InfoCmp.Capability;

Expand Down Expand Up @@ -381,7 +382,8 @@ public void complete(
}

Terminal terminal = builder.build();
System.out.println(terminal.getName() + ": " + terminal.getType());
System.out.println(terminal.getName() + ": " + terminal.getType() + ", provider="
+ ((TerminalExt) terminal).getProvider().name());
System.out.println("\nhelp: list available commands");
LineReader reader = LineReaderBuilder.builder()
.terminal(terminal)
Expand Down

0 comments on commit 4ccf282

Please sign in to comment.