fn: sayprogress_begin
Purpose
Reserve one or more console lines for transient progress output.
Behavior
- Prints the requested number of blank lines to stderr.
- Moves the cursor back up to the start of the reserved progress region.
- Stores the reserved slot count in SGND_PROGRESS_RESERVED.
- Marks a pending line break so later normal messages can restore clean output formatting.
Options
--slots COUNT— Number of progress lines to reserve. Values less than 1 are normalized to 1.
Outputs
Writes terminal cursor control sequences to stderr.
Returns
- 0 on success.
- 1 when an unknown argument is supplied.
Usage
sayprogress_begin --slots 2
