object TputTermSize extends TermSize
- Alphabetic
- By Inheritance
- TputTermSize
- TermSize
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def available(): Boolean
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.
- Definition Classes
- TputTermSize → TermSize
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cols(encoded: Int): Int
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
- Definition Classes
- TermSize
- Annotations
- @inline()
- def cols(): Int
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.
- Definition Classes
- TermSize
- def encode(cols: Int, rows: Int): Int
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
- Definition Classes
- TermSize
- Annotations
- @inline()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rawSize(): Int
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.
- Definition Classes
- TputTermSize → TermSize
- def rows(encoded: Int): Int
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
- Definition Classes
- TermSize
- Annotations
- @inline()
- def rows(): Int
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.
- Definition Classes
- TermSize
- def size(): Size
The size of the current terminal.
The size of the current terminal.
- returns
The size of the current terminal.
- Definition Classes
- TermSize
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()