Trait

grizzled.readline

History

Related Doc: package readline

Permalink

trait History extends AnyRef

Models a Readline history: an object that holds previously read lines.

Deprecated

Use JLine <https://github.com/jline/jline2>

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. History
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def append(line: String): Unit

    Permalink

    Unconditionally appends the specified line to the history.

    Unconditionally appends the specified line to the history.

    line

    the line to add

    Attributes
    protected
  2. abstract def clear: Unit

    Permalink

    Clear the history buffer

  3. abstract def get: List[String]

    Permalink

    Get the contents of the history buffer, in a list.

    Get the contents of the history buffer, in a list.

    returns

    the history lines

  4. abstract def last: Option[String]

    Permalink

    Get the last (i.e., most recent) entry from the buffer.

    Get the last (i.e., most recent) entry from the buffer.

    returns

    the most recent entry, as an Option, or None if the history buffer is empty

  5. abstract def max: Int

    Permalink

    Get maximum history size.

    Get maximum history size.

    returns

    the current max history size, or 0 for unlimited.

  6. abstract def max_=(newSize: Int): Unit

    Permalink

    Set maximum history size.

    Set maximum history size.

    newSize

    the new max history size, or 0 for unlimited.

  7. abstract def size: Int

    Permalink

    Get the current number of entries in the history buffer.

    Get the current number of entries in the history buffer.

    returns

    the size of the history buffer

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +=(line: String): Unit

    Permalink

    Add a line to the history.

    Add a line to the history. Does not add the line if it is identical to the most recently added line.

    line

    the line to add

  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def load(path: String): Unit

    Permalink

    Load the contents of the history from the specified path, overwriting any existing history data (i.e., clearing the history buffer first).

    Load the contents of the history from the specified path, overwriting any existing history data (i.e., clearing the history buffer first).

    path

    where to save the history

  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def save(path: String): Unit

    Permalink

    Save the contents of the history to the specified path.

    Save the contents of the history to the specified path.

    path

    where to save the history

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped