expanded strip documentation
updated length to work with links and notifications
Write pretty terminal output the easy way.
Want your text green?
ansi.Green("I am Shrek")
Want it black on a red ground?
ansi.RedBG(ansi.Black("You can just combine them"))
Moving around is as simple as Specifying a direction
¹) support depends on the terminal emulator used and configuration
This library implements the (informal)
standard. This disables all colour-related ANSI-Codes but does not restrict any
other function (like cursor movement or formatting). If this behavior is
unwanted please stay on version 1.3.0 or below.
Bug Reports and Feature Requests can be sent to the issue tracker or via email to ~firstname.lastname@example.org (possible without creating an account on Sourcehut).
Want to improve it yourself? Awesome! Please send your patches to ~email@example.com (see submitted patches here).
For an easy quickstart, just run these commands:
$ git config format.subjectPrefix "PATCH go-ansi" $ git config sendemail.to "~firstname.lastname@example.org"
Please sign-off your Commits to confirm the DCO.
This library is licensed under the MIT License which can be found here.