Skip to content

Commit

Permalink
reduce verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Jun 28, 2024
1 parent b9056d4 commit 006d839
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jpos/src/main/java/org/jpos/q2/CLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CLI(Q2 q2, String line, boolean keepRunning) throws IOException {
}

public CLI(Q2 q2, InputStream in, OutputStream rawout, String line, boolean keepRunning, boolean interactive) throws IOException {
Logger.getLogger("org.jline").setLevel(Level.WARNING);
Logger.getLogger("org.jline").setLevel(Level.SEVERE);
this.q2 = q2;
PrintStream out = rawout instanceof PrintStream ? (PrintStream) rawout : new PrintStream(rawout);
ctx = buildCLIContext(in, out);
Expand Down Expand Up @@ -198,9 +198,11 @@ public static String exec (String command) throws Exception {
}

private Terminal buildTerminal (InputStream in, OutputStream out) throws IOException {
TerminalBuilder builder = TerminalBuilder.builder();
builder.streams(in,out).system(System.in == in);
TerminalBuilder builder = TerminalBuilder.builder()
.streams(in,out)
.system(System.in == in);
Terminal t = builder.build();

Attributes attr = t.getAttributes();
attr.getOutputFlags().addAll(
EnumSet.of(Attributes.OutputFlag.ONLCR, Attributes.OutputFlag.OPOST)
Expand Down

0 comments on commit 006d839

Please sign in to comment.