Raxol.Terminal.Emulator.Constructors (Raxol v2.0.1)

View Source

Handles emulator constructor functions. This module extracts the constructor logic from the main emulator.

Summary

Functions

Creates a new terminal emulator instance with default dimensions.

Creates a new terminal emulator instance with options map.

Creates a new terminal emulator instance with given width and height.

Creates a new terminal emulator instance with given width, height, and options.

Creates a new emulator with width, height, and optional configuration.

Functions

new()

@spec new() :: Raxol.Terminal.Emulator.t()

Creates a new terminal emulator instance with default dimensions.

new(opts)

@spec new(%{
  :width => non_neg_integer(),
  :height => non_neg_integer(),
  optional(atom()) => term()
}) ::
  Raxol.Terminal.Emulator.t()

Creates a new terminal emulator instance with options map.

new(width, height)

Creates a new terminal emulator instance with given width and height.

new(width, height, opts)

Creates a new terminal emulator instance with given width, height, and options.

new(width, height, config, options)

Creates a new emulator with width, height, and optional configuration.