grizzled.readline

History

trait History extends AnyRef

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

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

Abstract Value Members

  1. def append (line: String): Unit

    Unconditionally appends the specified line to the history.

    Unconditionally appends the specified line to the history.

    line

    the line to add

    Attributes
    protected abstract
  2. def clear : Unit

    Clear the history buffer

    Clear the history buffer

    Attributes
    abstract
  3. def get : List[String]

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

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

    returns

    the history lines

    Attributes
    abstract
  4. def last : Option[String]

    Get the last (i.

    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

    Attributes
    abstract
  5. def max : Int

    Get maximum history size.

    Get maximum history size.

    returns

    the current max history size, or 0 for unlimited.

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

    Set maximum history size.

    Set maximum history size.

    newSize

    the new max history size, or 0 for unlimited.

    Attributes
    abstract
  7. def size : Int

    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

    Attributes
    abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def += (line: String): Unit

    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

  5. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  6. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  10. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  13. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  14. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  15. def load (path: String): Unit

    Load the contents of the history from the specified path, overwriting any existing history data (i.

    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

  16. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  17. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  18. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  19. def save (path: String): Unit

    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

  20. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  21. def toString (): String

    Definition Classes
    AnyRef → Any
  22. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any