{"id":13439706,"url":"https://github.com/doches/progressbar","last_synced_at":"2025-04-05T00:10:04.486Z","repository":{"id":46596051,"uuid":"652195","full_name":"doches/progressbar","owner":"doches","description":"An easy-to-use C library for displaying text progress bars.","archived":false,"fork":false,"pushed_at":"2023-05-02T18:11:31.000Z","size":179,"stargazers_count":469,"open_issues_count":5,"forks_count":53,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-28T23:08:55.422Z","etag":null,"topics":["c","command-line-tools","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doches.png","metadata":{"files":{"readme":"README.mdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2010-05-06T21:56:40.000Z","updated_at":"2025-01-29T07:21:56.000Z","dependencies_parsed_at":"2024-05-28T03:15:55.427Z","dependency_job_id":"dd109cf1-d8b5-4c98-8700-85866ff084cd","html_url":"https://github.com/doches/progressbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Fprogressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Fprogressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Fprogressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Fprogressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doches","download_url":"https://codeload.github.com/doches/progressbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266565,"owners_count":20910836,"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","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":["c","command-line-tools","hacktoberfest"],"created_at":"2024-07-31T03:01:16.403Z","updated_at":"2025-04-05T00:10:04.452Z","avatar_url":"https://github.com/doches.png","language":"C","funding_links":[],"categories":["C","Utilities","公用事业"],"sub_categories":["YAML"],"readme":"## What is this thing?\n\nprogressbar is a C-class (it's a convention, dammit) for displaying attractive\nprogress bars on the command line. It's heavily influenced by the ruby ProgressBar\ngem, whose api and behaviour it imitates.\n\n## Ok, what the hell is a C-class, and how do I use one?\n\nprogressbar is implemented in pure C99, but using a vaguely object-oriented convention.\n\nExample usage:\n\n```c\nprogressbar *progress = progressbar_new(\"Loading\",100);\nfor(int i=0; i \u003c 100; i++)\n{\n  // Do some stuff\n  progressbar_inc(progress);\n}\nprogressbar_finish(progress);\n```\n\nExample output (from `progressbar_demo.c`):\n\n![demo output](example_output/demo.png)\n\nAdditional examples can be found in `test/progressbar_demo.c`\n\n## Why did you do this?\n\nOne of the things I miss most when I'm writing C instead of Ruby is the\nhow ridiculously easy it is to write user-friendly, informative CLI apps\nin Ruby. A big part of that, at least for me, is the ProgressBar gem --\nand since most of the time when I'm writing C I'm doing so because I need\na tool to handle some long-running, processor-intensive task, I'd really\nlike to have a way of seeing at a glance how much time is remaining and\nhow far along we've gotten. Enter progressbar!\n\n## Can I use it?\n\nOf course, if you're so inclined. progressbar is licensed under a simplified BSD license,\nso feel free to take it and run with it. Details can be found in the `LICENSE` file.\n\n## Why doesn't it compile?\n\nIf progressbar fails to build because `termcap.h` isn't found, you're probably missing the ncurses dev libraries.\n\n```\ngcc -c -std=c99 -Iinclude lib/progressbar.c\nlib/progressbar.c:13:45: fatal error: termcap.h: No such file or directory\ncompilation terminated.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoches%2Fprogressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoches%2Fprogressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoches%2Fprogressbar/lists"}