Skip to content

Underlines in Terminal.app #14

Closed
Closed

Description

@overvale

This command should print the word 'Hello" underlined.

echo -e '\033[4mHello'

However, as you can see below, this doesn't work.

pragmata_underline

I'd assume this is a terminal bug, but it works fine with other fonts.

Activity

  1. fabrizioschiavi commented on Dec 31, 2015

    @fabrizioschiavi
    Owner

    Thanks for letting me know. I'll find why it doesn't work

  2. fabrizioschiavi commented on Dec 31, 2015

    @fabrizioschiavi
    Owner

    In my Terminal it works
    screen shot 2015-12-31 at 13 38 35
    My Mac OS version is still 10.9.5, probably it doesn't work in more recent versions

  3. overvale commented on Jan 2, 2016

    @overvale
    Author

    I’m on 10.11.2

    On 31 Dec 2015, at 4:41 AM, Fabrizio Schiavi notifications@github.com wrote:

    In my Terminal it works
    https://cloud.githubusercontent.com/assets/1576663/12064473/f10af5a4-afc3-11e5-8443-9ac3132b74a4.png
    My Mac OS version is still 10.9.5, probably it doesn't work in more recent versions

    —
    Reply to this email directly or view it on GitHub #14 (comment).

  4. HealsCodes commented on Mar 24, 2016

    @HealsCodes

    @OliverTaylor - doesn't look like an issue with Pragmata but rather with the line spacing applied by Terminal.app. I'm on 10.11.4 and if I enter just your command I get Hello with underline and then a split second later the underline is overdrawn with the next prompt. But If I then press enter a few times the underline reappears.

    It also works out-of-the-box on a recent version of iTerm2 so it looks pretty much like Terminal.app thing.

    [EDIT] I didn't test with Pragmata since I haven't bought it yet but I'm experiencing the same with Fira Code.

  5. overvale commented on Mar 24, 2016

    @overvale
    Author

    Yeah. I came to the same conclusion.

    On Mar 24, 2016, at 1:52 AM, René Köcher notifications@github.com wrote:

    @OliverTaylor - doesn't look like an issue with Pragmata but rather with the line spacing applied by Terminal.app. I'm on 10.11.4 and if I enter just your command I get Hello with underline and then a split second later the underline is overdrawn with the next prompt. But If I then press enter a few times the underline reappears.

    It also works out-of-the-box on a recent version of iTerm2 so it looks pretty much like Terminal.app thing.

    —
    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub

  6. lloeki commented on Oct 20, 2017

    @lloeki

    @Shirk This should really be echo -e '\033[4mHello\033[0m'

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions