You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/01/07 06:52:12 UTC

[iotdb] branch iotdb_2266 created (now 1f20832)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a change to branch iotdb_2266
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 1f20832  [IOTDB-2266] Romove warning info when CLI runs on  mode

This branch includes the following new commits:

     new 1f20832  [IOTDB-2266] Romove warning info when CLI runs on  mode

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: [IOTDB-2266] Romove warning info when CLI runs on mode

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch iotdb_2266
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 1f2083264ac7f97017778884e1370432fd7248ab
Author: HTHou <hh...@outlook.com>
AuthorDate: Fri Jan 7 14:51:21 2022 +0800

    [IOTDB-2266] Romove warning info when CLI runs on  mode
---
 cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java b/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
index 0ea7005..2cfc96e 100644
--- a/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
+++ b/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
@@ -51,7 +51,9 @@ public class JlineUtils {
           .collect(Collectors.toSet());
 
   public static LineReader getLineReader() throws IOException {
-    Terminal terminal = TerminalBuilder.builder().build();
+    // Defaulting to a dumb terminal when a supported terminal can not be correctly created
+    // see https://github.com/jline/jline3/issues/291
+    Terminal terminal = TerminalBuilder.builder().dumb(true).build();
     if (terminal.getWidth() == 0 || terminal.getHeight() == 0) {
       // Hard coded terminal size when redirecting.
       terminal.setSize(new Size(120, 40));