Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearProgress ¶
func ClearProgress()
ClearProgress clears progress via sending sequence with 0 state
Example ¶
Example for clearing progress
ClearProgress()
Output: �]9;4;0;�\
func SetErrorProgress ¶
SetErrorProgress sets progress with error state * progress is a number between 0 and 100, returns error if number isn't in this range
Example ¶
Example for setting progress with error status successfully
err := SetErrorProgress(20) if err != nil { return }
Output: �]9;4;2;20�\
func SetIndeterminateProgress ¶
func SetIndeterminateProgress()
SetIndeterminateProgress sets indeterminate progress state
Example ¶
Example for setting progress to indeterminate
SetIndeterminateProgress()
Output: �]9;4;3;�\
func SetProgress ¶
SetProgress sets progress with default state * progress is a number between 0 and 100, returns error if number isn't in this range
Example ¶
Example for setting progress successfully
err := SetProgress(80) if err != nil { return }
Output: �]9;4;1;80�\
func SetWarningProgress ¶
SetWarningProgress sets progress with warning state * progress is a number between 0 and 100, returns error if number isn't in this range
Example ¶
Example for setting progress with warning status successfully
err := SetWarningProgress(30) if err != nil { return }
Output: �]9;4;4;30�\
Types ¶
This section is empty.