Termios

terminus.Termios
class Termios[T](using accessor: TermiosAccess[T])

An abstraction over the c termios library that contains only the functionality that we need, hiding the details of reading, updating, and writing terminal settings from the caller. The details are handled by a TermiosAccess typeclass instance.

Type parameters

T

The termios structure type a Termios instance uses. See TermiosStruct for more details

Value parameters

accessor

An instance of TermiosAccess used to handle the actual reading, updating, and writing of terminal settings.

Attributes

See also

TermiosAccess

TermiosStruct

Source
Termios.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def getAttributes()(using Zone): Ptr[T]

Allocates a new termios structure defined by T, in the given Zone and copies the current terminal settings into it, returning a pointer in memory to this structure.

Allocates a new termios structure defined by T, in the given Zone and copies the current terminal settings into it, returning a pointer in memory to this structure.

Attributes

Source
Termios.scala
def setAttributes(attributes: Ptr[T]): Unit

Sets the terminal settings to the attributes defined by the termios structure stored at the pointer specified by the attributes argument.

Sets the terminal settings to the attributes defined by the termios structure stored at the pointer specified by the attributes argument.

Attributes

Source
Termios.scala
def setRawMode(): Unit

Places the terminal in raw mode.

Places the terminal in raw mode.

Attributes

See also
Source
Termios.scala