c/progress_bar: Added @max_chars and reworked class variable setting