{"id":19414851,"url":"https://github.com/fcannizzaro/c-progress-bar","last_synced_at":"2026-05-19T07:09:04.518Z","repository":{"id":101091881,"uuid":"40595615","full_name":"fcannizzaro/c-progress-bar","owner":"fcannizzaro","description":"Simple Animated Progress Bar (Terminal | Windows)","archived":false,"fork":false,"pushed_at":"2019-04-27T10:57:14.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T03:12:18.593Z","etag":null,"topics":["progress-animation","terminal"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcannizzaro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-12T10:47:52.000Z","updated_at":"2023-12-10T16:54:51.000Z","dependencies_parsed_at":"2023-09-17T01:33:59.806Z","dependency_job_id":null,"html_url":"https://github.com/fcannizzaro/c-progress-bar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fcannizzaro/c-progress-bar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fc-progress-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fc-progress-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fc-progress-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fc-progress-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcannizzaro","download_url":"https://codeload.github.com/fcannizzaro/c-progress-bar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fc-progress-bar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012673,"owners_count":26085159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["progress-animation","terminal"],"created_at":"2024-11-10T12:40:03.399Z","updated_at":"2025-10-12T19:42:45.971Z","avatar_url":"https://github.com/fcannizzaro.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C Progress Bar\nSimple Animated ProgressBar (Terminal | Windows)\n\n## Preview\n![Preview](https://github.com/FrancisCan/CProgressBar/blob/master/preview/preview.gif)\n![Preview](https://github.com/FrancisCan/CProgressBar/blob/master/preview/preview1.gif)\n\n## Simple Usage\nimport \"lib/progressbar.h\" and execute code inside a Win Thread ( [see example](https://github.com/FrancisCan/CProgressBar/blob/master/example.c) )\n\n\n## Compile and Link library\n```bash\ngcc sample.c bin/progressbar.c\n```\n\n## Methods\n```C\n\n// define onProgressEnd function\nvoid end(ProgressBar bar){\n\n     printf(\"Completed %d%%!\", bar.progress);\n     Sleep(2500);\n\n     // hide with animation (animation type , animation speed in milliseconds)\n     bar.clearWithAnimation(ANIMATION_ZIG_ZAG, 6);\n\n     // do other\n}\n\n// create new progressbar\nProgressBar bar = ProgressBarBuilder();\n\nbar.setBackground(\u0026bar, BRIGHT_RED );\nbar.setForeground(\u0026bar, BRIGHT_WHITE);\nbar.setBarColor(\u0026bar, BAR_WHITE);\n\nbar.setMax(\u0026bar,100); //  [REQUIRED] Max Value of Bar\nbar.setSize(\u0026bar, 50); // [REQUIRED] Width of Bar\nbar.setText(\u0026bar,\"Loading Data...\");  // [Optional]\nbar.setOnEndProgress(\u0026bar,end); // [Optional] Void Function to execute at the end of progress\nbar.show(bar);\n\n// change progress\nwhile(progress \u003c= bar.max){\n\t\tbar.setProgress(\u0026bar, progress++);\n\t\tSleep(20);  // pause progress\n}\n```\n\n## Colors\n\n###### Background and Foreground\n\n* BLACK\n* BLUE\n* GREEN\n* CYAN\n* RED\n* PURPLE\n* YELLOW\n* WHITE\n* GRAY\n* BRIGHT_BLUE\n* BRIGHT_GREEN\n* BRIGHT_CYAN\n* BRIGHT_RED\n* BRIGHT_PURPLE\n* BRIGHT_YELLOW\n* BRIGHT_WHITE\n\n###### Bar Tint\n\n* BAR_BLUE\n* BAR_GREEN\n* BAR_CYAN\n* BAR_RED\n* BAR_PURPLE\n* BAR_YELLOW\n* BAR_WHITE\n* BAR_GRAY\n\n## Author\nFrancesco Cannizzaro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcannizzaro%2Fc-progress-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcannizzaro%2Fc-progress-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcannizzaro%2Fc-progress-bar/lists"}