Understand ConEmu progress sequences and states
masterThe @xterm/addon-progress addon implements the ConEmu progress sequence format: ESC ] 9 ; 4 ; <state> ; <progress value> BEL.
State Meanings
- 0 (Remove): Removes any progress indication and resets the value to 0. The addon always emits
{state: 0, value: 0}. - 1 (Normal): Sets a progress value (0-100). If the value is omitted, it defaults to 0. Values are clamped to 100.
- 2 (Error): An error state. If the value is omitted or 0, the addon emits the
lastValue. If a value is provided, it is clamped to 100. - 3 (Indeterminate): Indicates a task is running without a specific progress percentage (e.g., a spinner). The progress value is ignored, but the addon emits
{state: 3, value: lastValue}. - 4 (Pause/Warning): A pause or warning state. Similar to the error state, an omitted or zero value emits the
lastValue. If a value is provided, it is clamped to 100.
ESC ] 9 ; 4 ; <state> ; <progress value> BEL