You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2022/01/10 01:32:00 UTC
[iotdb] branch master updated: [IOTDB-2266] Romove warning info when CLI runs on mode (#4728)
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 2ae5a52 [IOTDB-2266] Romove warning info when CLI runs on mode (#4728)
2ae5a52 is described below
commit 2ae5a52a354bc1a0c2f088767bbf4a2a763ec2dc
Author: Haonan <hh...@outlook.com>
AuthorDate: Mon Jan 10 09:31:28 2022 +0800
[IOTDB-2266] Romove warning info when CLI runs on mode (#4728)
---
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));