Raxol.Terminal.ControlCodes (Raxol v0.3.0)

View Source

Handles C0 control codes and simple ESC sequences.

Extracted from Terminal.Emulator for better organization. Relies on Emulator state and ScreenBuffer for actions.

Summary

Functions

Handle Backspace (BS)

Handles a C0 control code (0-31) or DEL (127). Delegates to specific handlers based on the codepoint.

Handle Carriage Return (CR)

Handle Horizontal Tab (HT)

Handle Line Feed (LF), New Line (NL), Vertical Tab (VT)

Handle Reverse Index (RI) - ESC M

Functions

handle_bel(emulator)

handle_bs(emulator)

Handle Backspace (BS)

handle_c0(emulator, char_codepoint)

Handles a C0 control code (0-31) or DEL (127). Delegates to specific handlers based on the codepoint.

handle_can(emulator)

handle_cr(emulator)

Handle Carriage Return (CR)

handle_decrc(emulator)

handle_decsc(emulator)

handle_ht(emulator)

Handle Horizontal Tab (HT)

handle_hts(emulator)

handle_ind(emulator)

handle_lf(emulator)

Handle Line Feed (LF), New Line (NL), Vertical Tab (VT)

handle_nel(emulator)

handle_ri(emulator)

Handle Reverse Index (RI) - ESC M

handle_ris(emulator)

handle_si(emulator)

handle_so(emulator)

handle_sub(emulator)