{"id":15979019,"url":"https://github.com/perry-mitchell/logupdate","last_synced_at":"2025-07-23T23:32:41.086Z","repository":{"id":74696362,"uuid":"297943450","full_name":"perry-mitchell/logupdate","owner":"perry-mitchell","description":"Single-line log updater for vlang","archived":false,"fork":false,"pushed_at":"2020-09-23T13:58:14.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T13:24:13.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perry-mitchell.png","metadata":{"files":{"readme":"README.md","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":"2020-09-23T11:09:39.000Z","updated_at":"2024-07-29T13:44:05.000Z","dependencies_parsed_at":"2023-02-25T07:45:13.302Z","dependency_job_id":null,"html_url":"https://github.com/perry-mitchell/logupdate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Flogupdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Flogupdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Flogupdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Flogupdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perry-mitchell","download_url":"https://codeload.github.com/perry-mitchell/logupdate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240215795,"owners_count":19766468,"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":[],"created_at":"2024-10-07T23:40:42.107Z","updated_at":"2025-02-22T18:21:08.706Z","avatar_url":"https://github.com/perry-mitchell.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logupdate\n\u003e Single-line log updater for vlang\n\n[![Build Status](https://travis-ci.org/perry-mitchell/logupdate.svg?branch=master)](https://travis-ci.org/perry-mitchell/logupdate)\n\nUpdate the current terminal line by overwriting it - useful for displaying progress bars/animations while some work is done.\n\n![logupdate animation](demo.gif)\n\n## Installation\n\nInstall using vpm:\n\n```shell\nv install perry_mitchell.logupdate\n```\n\n## Usage\n\nUsage is very simple - `update` simply updates the same line over and over:\n\n```v\nimport logupdate\nimport time\n\nfn main() {\n    mut val := 0\n\tfor {\n\t\tval = val + 1\n\t\tif val \u003e 9 {\n\t\t\tval = 1\n\t\t}\n\t\tlogupdate.update(\"Counter: $val\")\n\t\ttime.sleep_ms(200)\n\t}\n}\n```\n\nUse `clear` to clear the update by setting one final value to the line (writes a new-line as well).\n\n## Testing\n\nSimply run `make all`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Flogupdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperry-mitchell%2Flogupdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Flogupdate/lists"}