{"id":16476398,"url":"https://github.com/softprops/screenprints","last_synced_at":"2025-03-21T07:30:21.780Z","repository":{"id":57666390,"uuid":"47882777","full_name":"softprops/screenprints","owner":"softprops","description":"reprints for your terminal screen","archived":false,"fork":false,"pushed_at":"2016-04-11T00:14:50.000Z","size":544,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T12:00:01.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/softprops.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-12T15:12:21.000Z","updated_at":"2019-12-04T01:03:32.000Z","dependencies_parsed_at":"2022-09-26T20:31:46.558Z","dependency_job_id":null,"html_url":"https://github.com/softprops/screenprints","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fscreenprints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fscreenprints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fscreenprints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fscreenprints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/screenprints/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244757014,"owners_count":20505301,"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-11T12:42:22.256Z","updated_at":"2025-03-21T07:30:21.438Z","avatar_url":"https://github.com/softprops.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# screenprints\n\n[![Build Status](https://travis-ci.org/softprops/screenprints.svg?branch=master)](https://travis-ci.org/softprops/screenprints) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE) ![crates.io](http://meritbadge.herokuapp.com/screenprints)\n\n\u003e reprints for your terminal screen\n\n\nScreenprints acts as a buffer for terminal display continuously printing output at a configured interval.\n\n## api docs\n\nFind them [here](https://softprops.github.io/screenprints)\n\n## usage\n\nScreensprints defines a `Printer` which implements [std::io::Write](https://doc.rust-lang.org/std/io/trait.Write.html) which means anywhere you would normally write output to, you could substitude in an instance of a `Printer`.\n\n```rust\nextern crate screenprints;\n\nuse screenprints::Printer;\nuse std::io::{stdout, Write};\nuse std::time::Duration;\nuse std::thread;\n\nfn main() {\n    let mut printer = Printer::new(stdout(), Duration::from_millis(10));\n    for f in \u0026[\"foo.txt\", \"bar.txt\", \"baz.txt\"] {\n        for i in 0..51 {\n            let _ = write!(printer, \"Downloading {}.. ({}/{}) GB\\n\", f, i, 50);\n            thread::sleep(Duration::from_millis(50));\n        }\n    }\n}\n```\n\nThe result should look something like the following\n\n[![asciicast](https://asciinema.org/a/9auhm32umebr14bulaifhynni.png)](https://asciinema.org/a/9auhm32umebr14bulaifhynni)\n\n\nDoug Tangren (softprops) 2016\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fscreenprints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Fscreenprints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fscreenprints/lists"}