{"id":16618502,"url":"https://github.com/dimo414/f-ansi","last_synced_at":"2025-09-12T21:25:12.864Z","repository":{"id":155531023,"uuid":"234515813","full_name":"dimo414/f-ansi","owner":"dimo414","description":"Terminal control API for Java; colored output and more","archived":false,"fork":false,"pushed_at":"2020-03-29T18:47:19.000Z","size":34194,"stargazers_count":6,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T04:41:13.525Z","etag":null,"topics":["ansi","ansi-codes","ansi-colors","console","java","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimo414.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-01-17T09:29:31.000Z","updated_at":"2023-07-30T13:01:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d22709a-118c-48d9-a8d8-1a80730ae9da","html_url":"https://github.com/dimo414/f-ansi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimo414%2Ff-ansi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimo414%2Ff-ansi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimo414%2Ff-ansi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimo414%2Ff-ansi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimo414","download_url":"https://codeload.github.com/dimo414/f-ansi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238882424,"owners_count":19546513,"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":["ansi","ansi-codes","ansi-colors","console","java","shell","terminal"],"created_at":"2024-10-12T02:20:24.813Z","updated_at":"2025-02-14T17:32:03.710Z","avatar_url":"https://github.com/dimo414.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# F-ANSI - Java Colored Output\n\n[![0.3 Release](https://img.shields.io/badge/release-0.3-green.svg)](https://github.com/dimo414/f-ansi/releases/0.3)\n[![0.3 API docs](https://img.shields.io/badge/API-0.3-red.svg)](https://dimo414.github.io/f-ansi/0.3/)\n[![Open Issues](https://img.shields.io/github/issues/dimo414/f-ansi.svg)](https://github.com/dimo414/f-ansi/issues)\n[![GPL License](https://img.shields.io/badge/license-GPL-blue.svg)](https://github.com/dimo414/f-ansi/blob/master/LICENSE)\n\n*A fluent Java API to control console output via ANSI control codes*\n\n## Background\n\nConsole output doesn't have to be boring black and white, but creating visually\nappealing command line programs isn't straightforward. The standard mechanism,\n[ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code), are\nconfusing and tedious to work with. F-ANSI provides an intuitive, fluent\nabstraction to create elegant applications without the hassle.\n\n## Usage\n\n**In Beta**: F-ANSI is still in active development, and the API may change. See\nGuava's\n[Beta API](https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)\npolicy for more.\n\nF-ANSI's fluent interface allows you to compose readable chains of output; the\nfollowing example prints \"Foo\" in red, followed by a hyphen in the terminal's\ndefault styling, followed by \"Bar\" in green.\n\n    ansi().color(RED).out(\"Foo\").out(\" - \").color(LIGHT_GREEN).outln(\"Bar\");\n\n![Colored 'Foo - Bar'](/images/FooBar.png)\n\nThere are several demo scripts in the [demo](/demo/demo) directory you can use\nfor reference and testing. To print a color table of the default ANSI colors,\nyou can call `demo.ColorTable`:\n\n![ANSI Color Table](/images/ColorTable.png)\n\n## Dependencies\n\nF-ANSI depends on [Guava](https://github.com/google/guava). The tests further\ndepend on [TestNG](testng.org/) and [Truth](https://github.com/google/truth).\n\nFor convenience the `f-ansi-no-dependencies.jar` bundles in Guava, at the cost\nof a much larger Jar. If you already have Guava on your classpath, the\n`f-ansi.jar` is much smaller.\n\n## Copyright\n\nCopyright 2016-2017 Michael Diamond\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimo414%2Ff-ansi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimo414%2Ff-ansi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimo414%2Ff-ansi/lists"}