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

aradzinski pushed a commit to branch NLPCRAFT-108
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-108 by this push:
     new 66099cd  WIP.
66099cd is described below

commit 66099cdda631b1ab4d201070ee8119d3ddff5c46
Author: Aaron Radzinski <[email protected]>
AuthorDate: Sat Oct 3 18:42:52 2020 -0700

    WIP.
---
 .../nlpcraft/common/ansi/NCAnsiSpinner.scala       | 30 +++++++++++-----------
 .../nlpcraft/model/tools/cmdline/NCCli.scala       |  2 +-
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/ansi/NCAnsiSpinner.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/ansi/NCAnsiSpinner.scala
index 11ab7d2..0280780 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/ansi/NCAnsiSpinner.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/ansi/NCAnsiSpinner.scala
@@ -31,19 +31,19 @@ class NCAnsiSpinner(out: PrintStream = System.out, 
ansiColor: String = ansiCyanF
     @volatile var thread: Thread = _
 
     final val SPIN_CHAR_SETS = Seq(
-        Seq('-', '\\', '|', '/'),
-        Seq('.', 'o', 'O', '@', '*'),
-        Seq('←', '↖', '↑', '↗', '→', '↘', '↓', '↙'),
-        Seq('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█', '▇', '▆', '▅', '▄', '▃', 
'▁'),
-        Seq('▖', '▘', '▝', '▗'),
-        Seq('┤', '┘', '┴', '└', '├', '┌', '┬', '┐'),
-        Seq('◢', '◣', '◤', '◥'),
-        Seq('◰', '◳', '◲', '◱'),
-        Seq('◴', '◷', '◶', '◵'),
-        Seq('◐', '◓', '◑', '◒'),
-        Seq('◡', '⊙', '◠', '⊙'),
-        Seq('⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷'),
-        Seq('⠁', '⠂', '⠄', '⡀', '⢀', '⠠', '⠐', '⠈')
+//        Seq('-', '\\', '|', '/'),
+//        Seq('.', 'o', 'O', '@', '*'),
+//        Seq('←', '↖', '↑', '↗', '→', '↘', '↓', '↙'),
+//        Seq('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█', '▇', '▆', '▅', '▄', '▃', 
'▁'),
+//        Seq('▖', '▘', '▝', '▗'),
+//        Seq('┤', '┘', '┴', '└', '├', '┌', '┬', '┐'),
+        Seq('\u25E2', '\u25E3', '\u25E4', '\u25E5')
+//        Seq('◰', '◳', '◲', '◱'),
+//        Seq('◴', '◷', '◶', '◵'),
+//        Seq('◐', '◓', '◑', '◒'),
+//        Seq('◡', '⊙', '◠', '⊙'),
+//        Seq('⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷'),
+//        Seq('⠁', '⠂', '⠄', '⡀', '⢀', '⠠', '⠐', '⠈')
     )
 
     private val SPIN_CHARS = SPIN_CHAR_SETS(RND.nextInt(SPIN_CHAR_SETS.size))
@@ -83,8 +83,8 @@ class NCAnsiSpinner(out: PrintStream = System.out, ansiColor: 
String = ansiCyanF
                 out.print(ansiCursorHide)
 
                 while (!t.isInterrupted) {
-                    if (frame > 0)
-                        clean()
+//                    if (frame > 0)
+//                        clean()
 
                     out.print(s"$leftPrompt$ansiColor${SPIN_CHARS(frame % 
SPIN_CHARS.size)}$ansiReset$rightPrompt")
 
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index f27258b..d781d8c 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -486,7 +486,7 @@ object NCCli extends App {
                 var online = false
                 val spinner = mkSpinner()
                 val timeout = currentTime + 5.mins
-                val warnTimeout = currentTime + 1.secs
+                val warnTimeout = currentTime + 60.secs
 
                 spinner.start()
 

Reply via email to