Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hyperlink support #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Apr 22, 2020

  1. Add hyperlink support

    Some terminals support hyperlinks to URLs as a text style, defined at
    https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda .
    
    Add support for these escape sequences to ansi_term, storing the
    hyperlink target as an Option<Rc<str>>. This avoids copying URLs when
    modifying styles.
    
    This makes Style no longer Copy, so Style now requires .clone() when
    duplicating it.
    
    Note that this intentionally omits support for the `id` attribute, used
    by screen-oriented applications to group separated links together as
    "the same link". This arises when splitting links across lines within a
    windowing or window-splitting mechanism. Applications with such use
    cases will need other screen-oriented escape sequences that ansi_term
    doesn't cover, as well.
    joshtriplett committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    f34e07e View commit details
    Browse the repository at this point in the history