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

View Source

Text operation functions extracted from the main emulator module. Handles text writing with charset translation and cursor updates.

Summary

Functions

Sets an attribute on the emulator (placeholder implementation).

Writes a string to the terminal with charset translation. Updates cursor position after writing.

Types

emulator()

@type emulator() :: Raxol.Terminal.Emulator.t()

Functions

set_attribute(emulator, attribute, value)

@spec set_attribute(emulator(), atom(), any()) :: emulator()

Sets an attribute on the emulator (placeholder implementation).

write_string(emulator, x, y, string, style \\ %{})

@spec write_string(
  emulator(),
  non_neg_integer(),
  non_neg_integer(),
  String.t(),
  map()
) :: emulator()

Writes a string to the terminal with charset translation. Updates cursor position after writing.