https://github.com/logicblocks/antsy
Simple ANSI escape code library for Clojure.
https://github.com/logicblocks/antsy
ansi ansi-colors ansi-escape clojure clojure-library terminal terminal-colors
Last synced: 6 months ago
JSON representation
Simple ANSI escape code library for Clojure.
- Host: GitHub
- URL: https://github.com/logicblocks/antsy
- Owner: logicblocks
- License: mit
- Created: 2019-08-04T16:28:02.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-31T13:34:46.000Z (7 months ago)
- Last Synced: 2024-10-31T14:32:55.263Z (7 months ago)
- Topics: ansi, ansi-colors, ansi-escape, clojure, clojure-library, terminal, terminal-colors
- Language: Clojure
- Size: 290 KB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Support: docs/supported-display-aspects.html
Awesome Lists containing this project
README
# antsy
[](https://clojars.org/io.logicblocks/antsy)
[](https://clojars.org/io.logicblocks/antsy)
[](https://github.com/logicblocks/antsy/graphs/contributors)Simple ANSI escape code library.
## Install
Add the following to your `project.clj` file:
```clj
[io.logicblocks/antsy "0.0.16"]
```## Documentation
* [API Docs](http://logicblocks.github.io/antsy)
## Usage
```clojure
(require '[antsy.core :as antsy])(println (str
antsy/bold-escape-sequence
antsy/red-bg-escape-sequence
"Important!"
antsy/reset-escape-sequence))(println (antsy/bold "Important!"))
(println (antsy/red-fg "Something went wrong..."))(println (antsy/-> "[Incoming Message]" :bold :green-fg))
```See the [API Docs](http://logicblocks.github.io/antsy) for a more complete
getting started guide.## Credits
`antsy` is heavily inspired by [`pretty`](https://github.com/AvisoNovate/pretty)
and [`clansi`](https://github.com/ams-clj/clansi).## License
Copyright © 2019 LogicBlocks Maintainers
Distributed under the terms of the
[MIT License](http://opensource.org/licenses/MIT).