Trait/Object

term

TermSize

Related Docs: object TermSize | package term

Permalink

trait TermSize extends AnyRef

A provider that is capable of providing the size of the current terminal.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TermSize
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def available(): Boolean

    Permalink

    Is this provider available? A provider may be unavailable because a native library may be missing for a given operating system, or an external program may be missing.

    Is this provider available? A provider may be unavailable because a native library may be missing for a given operating system, or an external program may be missing.

    returns

    true if this provider can be used to get the size of the terminal, false otherwise.

  2. abstract def rawSize(): Int

    Permalink

    The size of the current terminal in columns and rows, encoded as a single integer:

    The size of the current terminal in columns and rows, encoded as a single integer:

    cols << 16 | (rows & 0xFFFF)

    returns

    The encoded size of the current terminal.

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def cols(encoded: Int): Int

    Permalink

    Decode the number of columns from encoded.

    Decode the number of columns from encoded.

    encoded

    The encoded size of the terminal.

    returns

    The number of columns.

    Attributes
    protected
    Annotations
    @inline()
  7. def cols(): Int

    Permalink

    The number of columns of the current terminal.

    The number of columns of the current terminal.

    returns

    The number of columns of the current terminal.

  8. def encode(cols: Int, rows: Int): Int

    Permalink

    Encode the number of columns and rows into a single integer.

    Encode the number of columns and rows into a single integer.

    cols

    The number of columns.

    rows

    The number of rows.

    returns

    The 2 values, encoded in a single integer.

    Attributes
    protected
    Annotations
    @inline()
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def rows(encoded: Int): Int

    Permalink

    Decode the number of rows from encoded.

    Decode the number of rows from encoded.

    encoded

    The encoded size of the terminal.

    returns

    The number of rows.

    Attributes
    protected
    Annotations
    @inline()
  19. def rows(): Int

    Permalink

    The number of rows of the current terminal.

    The number of rows of the current terminal.

    returns

    The number of rows of the current terminal.

  20. def size(): Size

    Permalink

    The size of the current terminal.

    The size of the current terminal.

    returns

    The size of the current terminal.

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped