felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1785994 - /felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java
Date Wed, 08 Mar 2017 16:07:50 GMT
Author: gnodet
Date: Wed Mar  8 16:07:50 2017
New Revision: 1785994

URL: http://svn.apache.org/viewvc?rev=1785994&view=rev
Log:
[FELIX-5584] [gogo][jline] Remove dependency on LineReaderImpl

Modified:
    felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java

Modified: felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java?rev=1785994&r1=1785993&r2=1785994&view=diff
==============================================================================
--- felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java (original)
+++ felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java Wed Mar  8
16:07:50 2017
@@ -59,7 +59,6 @@ import org.jline.reader.LineReader;
 import org.jline.reader.LineReaderBuilder;
 import org.jline.reader.ParsedLine;
 import org.jline.reader.UserInterruptException;
-import org.jline.reader.impl.LineReaderImpl;
 import org.jline.terminal.Terminal;
 import org.jline.terminal.Terminal.Signal;
 import org.jline.terminal.Terminal.SignalHandler;
@@ -378,8 +377,8 @@ public class Shell {
                 terminal.writer().write(getStatusLine(job, width, status));
                 terminal.flush();
                 if (reading.get() && !stopping.get()) {
-                    ((LineReaderImpl) reader).redrawLine();
-                    ((LineReaderImpl) reader).redisplay();
+                    reader.callWidget("redraw-line");
+                    reader.callWidget("redisplay");
                 }
             }
         });



Mime
View raw message