Class ConsolePrompt.UiConfig

  • Enclosing class:
    ConsolePrompt

    @Deprecated(since="4.0.0",
                forRemoval=true)
    public static class ConsolePrompt.UiConfig
    extends java.lang.Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class is deprecated along with ConsolePrompt. Use org.jline.prompt.PrompterConfig instead.
    ConsoleUI configuration: colors, cursor pointer and selected/unselected/unavailable boxes. ConsoleUI colors are configurable using UI_COLORS environment variable
    • Constructor Summary

      Constructors 
      Constructor Description
      UiConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      UiConfig​(java.lang.String indicator, java.lang.String uncheckedBox, java.lang.String checkedBox, java.lang.String unavailable)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean cancellableFirstPrompt()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.jline.utils.AttributedString checkedBox()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.jline.utils.AttributedString indicator()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.util.Map<org.jline.reader.LineReader.Option,​java.lang.Boolean> readerOptions()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static org.jline.utils.StyleResolver resolver​(java.lang.String style)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.util.ResourceBundle resourceBundle()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setCancellableFirstPrompt​(boolean cancellableFirstPrompt)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected void setReaderOptions​(java.util.Map<org.jline.reader.LineReader.Option,​java.lang.Boolean> readerOptions)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.jline.utils.AttributedStyle style​(java.lang.String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.jline.utils.AttributedString unavailable()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.jline.utils.AttributedString uncheckedBox()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UiConfig

        public UiConfig()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • UiConfig

        public UiConfig​(java.lang.String indicator,
                        java.lang.String uncheckedBox,
                        java.lang.String checkedBox,
                        java.lang.String unavailable)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • indicator

        public org.jline.utils.AttributedString indicator()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • uncheckedBox

        public org.jline.utils.AttributedString uncheckedBox()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • checkedBox

        public org.jline.utils.AttributedString checkedBox()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • unavailable

        public org.jline.utils.AttributedString unavailable()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • style

        public org.jline.utils.AttributedStyle style​(java.lang.String key)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • resourceBundle

        public java.util.ResourceBundle resourceBundle()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • cancellableFirstPrompt

        public boolean cancellableFirstPrompt()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setCancellableFirstPrompt

        public void setCancellableFirstPrompt​(boolean cancellableFirstPrompt)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setReaderOptions

        protected void setReaderOptions​(java.util.Map<org.jline.reader.LineReader.Option,​java.lang.Boolean> readerOptions)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • readerOptions

        public java.util.Map<org.jline.reader.LineReader.Option,​java.lang.Boolean> readerOptions()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • resolver

        public static org.jline.utils.StyleResolver resolver​(java.lang.String style)
        Deprecated, for removal: This API element is subject to removal in a future version.