Expand description
Progress-bar OSC sequences.
§Category
OSC 9;4 communicates taskbar or tab progress state: reset, indeterminate, normal percentage, error percentage, and warning percentage.
§OSC framing
All sequences use ESC ] 9 ; 4 ; state [; percentage] BEL. Percentages passed
to writers are clamped into 0..=100 before emission.
§Mode interaction
These notifications are not controlled by terminal modes. Unsupported terminals ignore the OSC string.
Constants§
- RESET_
PROGRESS_ BAR - Reset or hide progress: exact bytes
ESC ] 9 ; 4 ; 0 BEL(b"\x1b]9;4;0\x07"). - SET_
INDETERMINATE_ PROGRESS_ BAR - Set indeterminate progress: exact bytes
ESC ] 9 ; 4 ; 3 BEL(b"\x1b]9;4;3\x07").
Functions§
- write_
set_ error_ progress_ bar - Set error progress with
ESC ] 9 ; 4 ; 2 ; <percentage> BEL. - write_
set_ progress_ bar - Set normal progress with
ESC ] 9 ; 4 ; 1 ; <percentage> BEL. - write_
set_ warning_ progress_ bar - Set warning progress with
ESC ] 9 ; 4 ; 4 ; <percentage> BEL.