progress (int n1, int n2): int

Displays a red/green progress bar during a [Test] run. Prevents unresponsiveness during long computations or external function calls.

Parameters:

n1

Length of the first part of the progress bar in percent. Green when > 0, red when < 0.

n2

Length of the second part of the progress bar in percent; green when > 0, red when < 0, 0 for a neutral bar color.

Returns:

0 when the [Stop] key was hit, nonzero otherwise.

Remarks:

Example:

if(!progress(0,0)) return;

See also:

printf, wait

► latest version online