Skip to content

Feature map ​

Every feature of forbear, where the tutorial teaches it and where the reference describes it.

FeatureHowTutorialReference
A progress barinitialize, start, update1The bar object
Range of the barmin_value, max_value1Limitations
Prefix and suffixprefix_string, suffix_string2The line
Prefix or suffix changed while runningbar%prefix%string, bar%suffix%stringcookbookThe line
Bracketsbracket_left_string, bracket_right_string2The line
Bar characters and widthfilled_char_string, empty_char_string, width2The line
Unicode stringsUTF-8 literals or UCS4 kind2Character kinds
Colours and styles<element>_color_fg, _color_bg, _style3Colours and styles
24-bit colours'#rrggbb' for any colour keyword324-bit colours
Colour zonesbar_zones11Zones
Rising rampbar_profile='ramp'11Profiles
Seven-segment digitsdigits, digits_unlit_color11Segment digits
Dashboard themestheme11Themes
Scanner (pulse with a trail)pulse_trail11Pulse trail
Smooth barpartial_blocks2The line
Progress in percentadd_progress_percent4initialize
Progress countadd_progress_count4initialize
Progress speedadd_progress_speed4Number formats
Estimated time of arrivaladd_eta, smoothing4update
Start and end timeadd_date_time4initialize
Summary at the endadd_summary4initialize
Scaleadd_scale_bar4Number formats
Spinnersspinner_string5Spinners
Spinner or percentage alonewidth=05The line
Lines above the barwrite6write
Output of a librarysuspend, resume6suspend and resume
A message at the end of the barupdate(message=)6update
Drawing ratemin_interval, frequency, FORBEAR_MIN_INTERVAL6update
Output unitoutput_unitcookbookinitialize
Nested barsposition7initialize
Plain log off a terminalinteractive, FORBEAR_INTERACTIVE8Terminals and logs
A log line every so oftenlog_interval, FORBEAR_LOG_INTERVAL8How often the bar is drawn
Cursor left visiblehide_cursorIf the program stops
Bars offdisabled, FORBEAR_DISABLE8Terminals and logs
Terminal stateis_stdout_lockedis_stdout_locked
Reusing or copying a bardestroy, initialize again, =cookbookdestroy
Layout templatetemplate9Layout templates
Fields of the programfield_object, add_field9Fields of the program
Loops of unknown lengthindeterminate, finish10finish
A loop left before its endfinish10finish

Not available: a bar that runs backwards, a spinner animated by a clock of its own (Fortran has no portable threads).

Released under the GPL v3, BSD 2-Clause, BSD 3-Clause or MIT License.