Add support for "faint" intensity#260
Open
pbrisbin wants to merge 1 commit intohaskell-prettyprinter:masterfrom
Open
Add support for "faint" intensity#260pbrisbin wants to merge 1 commit intohaskell-prettyprinter:masterfrom
pbrisbin wants to merge 1 commit intohaskell-prettyprinter:masterfrom
Conversation
The "faint" console intensity (`\ESC[2m`) makes for a nice dim color and is useful for rendering comments or other, less important text. For example, the body of the PR being created by my script here:  The `ansi-terminal-types` documentation says it is "not widely supported"[^1], which may be why it's not supported here yet, but I've found other sources that say the same thing of italics[^2]. Besides, folks can simply choose not to use. [^1]: https://hackage-content.haskell.org/package/ansi-terminal-types-1.1.3/docs/System-Console-ANSI-Types.html#t:ConsoleIntensity [^2]: https://stackoverflow.com/a/33206814
Author
|
Oh, I just found #224. It looks much better than this and is Approved, but for some reason it's still in Draft. I would love to see that merged and released instead of this one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "faint" console intensity (
\ESC[2m) makes for a nice dim color andis useful for rendering comments or other, less important text.
For example, the body of the PR being created by my script here:
The
ansi-terminal-typesdocumentation says it is "not widelysupported"1, which may be why it's not supported here yet, but I've
found other sources that say the same thing of italics2. Besides,
folks can simply choose not to use.
Footnotes
https://hackage-content.haskell.org/package/ansi-terminal-types-1.1.3/docs/System-Console-ANSI-Types.html#t:ConsoleIntensity ↩
https://stackoverflow.com/a/33206814 ↩