Raxol.Terminal.ANSI.Emitter (Raxol v0.5.0)
View SourceANSI 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
Features
- Cursor control (movement, visibility)
- Screen manipulation (clearing, scrolling)
- Text attributes (bold, underline, etc.)
- Color control (foreground, background)
- Terminal mode control
Summary
Functions
Generates ANSI sequences for screen manipulation.
Generates ANSI sequences for cursor movement.
Generates ANSI sequences for colors.
Generates ANSI sequences for text attributes.
Generates ANSI sequences for terminal modes.
Functions
Generates ANSI sequences for screen manipulation.
Parameters
n
- Number of lines to scroll (default: 1)
Returns
The ANSI escape sequence for the requested screen operation.
Generates ANSI sequences for cursor movement.
Parameters
n
- Number of positions to move (default: 1)
Returns
The ANSI escape sequence for the requested cursor movement.
Generates ANSI sequences for colors.
Parameters
color_code
- The color code (0-15 for basic colors)
Returns
The ANSI escape sequence for the requested color.
Generates ANSI sequences for text attributes.
Returns
The ANSI escape sequence for the requested text attribute.
Generates ANSI sequences for terminal modes.