Skip to content

Progress bar #110

@jdbruijn

Description

@jdbruijn

Programming language(s)

C++

Description

Textual progress bar, similar to the progress npm package.

  • Compile time configuration for used formatting library.
    This should make it more useful on embedded systems, where program memory and RAM are often precious resources. I'm okay with making the first release just for one of these.
  • Configuration (runtime) for:
    • total total number of ticks to complete.
    • current current number of completed ticks.
    • width displayed width of the progress bar, defaulting to total or 100, whichever is the lowest.
    • head head character, defaulting to >.
    • complete complete character, defaulting to =.
    • incomplete incomplete character, defaulting to (space).
    • end_of_line end of line character(s), defaulting to \r.
  • Formatting of progress bar.
    This gives the user flexibility in placing text around the progress bar.

Motivation

  • Make it easy to display progress or some process.

Personal learnings

  • Compile time configuration of code sections.

Project name

progress-bar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    todo 📝

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions