Raxol.Terminal.ANSI.Emitter (Raxol v0.3.0)

View Source

ANSI escape sequence generation module.

Provides functions for generating ANSI escape sequences for terminal control:

  • Cursor movements
  • Colors and text attributes
  • Screen manipulation
  • Various terminal modes

Summary

Functions

alternate_buffer_off()

alternate_buffer_on()

auto_wrap_off()

auto_wrap_on()

background(color_code)

background_256(color_code)

background_rgb(r, g, b)

blink()

bold()

bracketed_paste_off()

bracketed_paste_on()

clear_line()

clear_line_from_cursor()

clear_line_to_cursor()

clear_screen()

Generates an ANSI sequence for screen manipulation.

clear_screen_from_cursor()

clear_screen_to_cursor()

conceal()

cursor_backward(n \\ 1)

cursor_down(n \\ 1)

cursor_forward(n \\ 1)

cursor_hide()

cursor_position(row \\ 1, col \\ 1)

cursor_restore_position()

cursor_save_position()

cursor_show()

cursor_up(n \\ 1)

Generates an ANSI sequence for cursor movement.

faint()

foreground(color_code)

Generates ANSI sequences for colors.

foreground_256(color_code)

foreground_rgb(r, g, b)

inverse()

italic()

no_blink()

no_conceal()

no_inverse()

no_italic()

no_strikethrough()

no_underline()

normal_intensity()

rapid_blink()

reset_attributes()

Generates ANSI sequences for text attributes.

reset_mode(mode)

scroll_down(n \\ 1)

scroll_up(n \\ 1)

set_mode(mode)

Generates ANSI sequences for terminal modes.

strikethrough()

underline()