Interface IConsole

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    JLine3Console

    public interface IConsole
    extends java.lang.AutoCloseable
    • Method Detail

      • getRunningAnimations

        @NotNull
        @NotNull @UnmodifiableView java.util.Collection<AbstractConsoleAnimation> getRunningAnimations()
      • isAnimationRunning

        boolean isAnimationRunning()
      • togglePrinting

        void togglePrinting​(boolean enabled)
      • isPrintingEnabled

        boolean isPrintingEnabled()
      • hasAnimationSupport

        default boolean hasAnimationSupport()
      • getCommandHistory

        @NotNull
        @Unmodifiable @NotNull java.util.List<java.lang.String> getCommandHistory()
      • setCommandHistory

        void setCommandHistory​(@Nullable
                               @Nullable java.util.List<java.lang.String> history)
      • setCommandInputValue

        void setCommandInputValue​(@NotNull
                                  @NotNull java.lang.String commandInputValue)
      • readLine

        @NotNull
        @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.String> readLine()
      • enableAllHandlers

        void enableAllHandlers()
      • disableAllHandlers

        void disableAllHandlers()
      • enableAllTabCompletionHandlers

        void enableAllTabCompletionHandlers()
      • disableAllTabCompletionHandlers

        void disableAllTabCompletionHandlers()
      • enableAllCommandHandlers

        void enableAllCommandHandlers()
      • disableAllCommandHandlers

        void disableAllCommandHandlers()
      • addCommandHandler

        void addCommandHandler​(@NotNull
                               @NotNull java.util.UUID uniqueId,
                               @NotNull
                               @NotNull java.util.function.Consumer<java.lang.String> inputConsumer)
      • removeCommandHandler

        void removeCommandHandler​(@NotNull
                                  @NotNull java.util.UUID uniqueId)
      • addTabCompletionHandler

        void addTabCompletionHandler​(@NotNull
                                     @NotNull java.util.UUID uniqueId,
                                     @NotNull
                                     @NotNull ITabCompleter completer)
      • removeTabCompletionHandler

        void removeTabCompletionHandler​(@NotNull
                                        @NotNull java.util.UUID uniqueId)
      • writeRaw

        @NotNull
        @NotNull IConsole writeRaw​(@NotNull
                                   @NotNull java.lang.String rawText)
      • forceWrite

        @NotNull
        @NotNull IConsole forceWrite​(@NotNull
                                     @NotNull java.lang.String text)
      • forceWriteLine

        @NotNull
        @NotNull IConsole forceWriteLine​(@NotNull
                                         @NotNull java.lang.String text)
      • write

        @NotNull
        @NotNull IConsole write​(@NotNull
                                @NotNull java.lang.String text)
      • writeLine

        @NotNull
        @NotNull IConsole writeLine​(@NotNull
                                    @NotNull java.lang.String text)
      • hasColorSupport

        boolean hasColorSupport()
      • isUsingMatchingHistoryComplete

        boolean isUsingMatchingHistoryComplete()
      • setUsingMatchingHistoryComplete

        void setUsingMatchingHistoryComplete​(boolean matchingHistoryComplete)
      • getPrompt

        @NotNull
        @NotNull java.lang.String getPrompt()
      • setPrompt

        void setPrompt​(@NotNull
                       @NotNull java.lang.String prompt)
      • resetPrompt

        void resetPrompt()
      • removePrompt

        void removePrompt()
      • emptyPrompt

        void emptyPrompt()
      • clearScreen

        void clearScreen()
      • getScreenName

        @NotNull
        @NotNull java.lang.String getScreenName()
      • setScreenName

        void setScreenName​(@NotNull
                           @NotNull java.lang.String name)