Skip to content

Conversation

@spacekitteh
Copy link

This could be much simplified if ansi-terminal had better support for underline styles and colours.

(Needs squashing)

This could be much simplified if `ansi-terminal` had better support for underline styles and colours.
@spacekitteh spacekitteh changed the title Add underline styling and hyperlinking support Add underline styling and hyperlinking support to prettyprinter-ansi-terminal Jan 16, 2023

instance Semigroup Hyperlinked where
h1 <> h2 = Hyperlink
{ ansiLinkURI = ansiLinkURI h1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropping ansiLinkURI h2 silently looks hazardous.
Seems safer to check whether the two URIs are equal, and crash when not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants