Terminal & CLI

What are ANSI escape codes for cursor control?

→  Sequences like \e[H (move home), \e[nA (move up n lines), \e[nC (move right n columns). Based on the VT100 terminal standard.

Answer

What are ANSI escape codes for cursor control?

Sequences like \e[H (move home), \e[nA (move up n lines), \e[nC (move right n columns). Based on the VT100 terminal standard.

ANSI escape codes control cursor position, text formatting, and screen clearing in terminal applications. They start with ESC (\e or \033) followed by a bracket and parameters.

Q

A

← All FAQs