Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eraserhd/kak-ansi
Kakoune support for rendering ANSI-colored text.
https://github.com/eraserhd/kak-ansi
kakoune plugin
Last synced: about 2 months ago
JSON representation
Kakoune support for rendering ANSI-colored text.
- Host: GitHub
- URL: https://github.com/eraserhd/kak-ansi
- Owner: eraserhd
- License: unlicense
- Created: 2018-10-22T17:26:36.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-18T13:38:06.000Z (8 months ago)
- Last Synced: 2024-10-14T12:11:44.184Z (2 months ago)
- Topics: kakoune, plugin
- Language: C
- Homepage: https://github.com/eraserhd/kak-ansi
- Size: 94.7 KB
- Stars: 41
- Watchers: 6
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.asc
- Changelog: CHANGELOG.asc
Awesome Lists containing this project
README
kak-ansi
========Kakoune support for rendering ANSI-colored text.
== Installing
You'll need a C99-compatible C compiler. The Kakoune plugin will build the
filter program automatically if it's not already built on load. If you want
to build it manually instead:[source,sh]
----
$ make
----== Usage
This plugin provides `ansi-render`, `ansi-render-selection`, `ansi-clear`,
`ansi-enable` and `ansi-disable` commands. In addition, when Kakoune is
used as a pager, it will automatically execute `ansi-enable` in the `*stdin*`
buffer to process escape codes when idle.*ansi-render*::
Removes ANSI escapes from the buffer and adds highlighting for regions
that were ANSI-colored.
*ansi-render-selection*::
Removes ANSI escapes from selections and adds highlighting for regions
that were ANSI-colored.
*ansi-clear*::
Clear highlighting added by the previous two commands.
*ansi-enable*::
Configures current buffer to run `ansi-render` on the new data received
through fifo.
*ansi-disable*::
Disables automatic rendering of new fifo data.== Contributing
New features and bug fixes should have test coverage in `tests/tests.bash`
where possible. Tests can be run with a modern bash:----
$ bash tests/tests.bash
----