Skip to content

adding text styles has no effect on Windows #332

Open

Description

@icy-comet

I am on the devel branch of termdash and I passed 4 different styles with text.WriteCellOpts to the text.Write call for testing the result. Except, I found only the blink style to be working, as seen in the attached image.

image

Is this an implementation issue at termdash's end or a bug in the upstream lib tcell?

I also tested the same thing with termdash v0.16.0 which was before merging #329, but had the same outcome.

image

Shell: Powershell 7.2.5
Terminal Emulator: Windows Terminal v1.13.11432.0
OS: Windows 11

PS: I know that the styling works on my device because golang-based OhMyPosh, which handles ANSI codes differently, works with all the 4 styles.

Activity

  1. changed the title [-]adding text styles has no effect[/-] [+]adding text styles has no effect on Windows[/+] on Jul 8, 2022
  2. icy-comet commented on Jul 8, 2022

    @icy-comet
    ContributorAuthor

    I just tested the same program inside WSL, and all the styles work fine with the Linux build.

  3. added
    bug
    on Jul 8, 2022
  4. mum4k commented on Jul 8, 2022

    @mum4k
    Owner

    Thank you for reporting this @icy-comet, considering this works in Linux, chances are the problem is in upstream tcell. We could start by verifying if the tcell support works as expected by running tcell natively without termdash on windows and selecting these options.

    @icy-comet please indicate if you are interested in looking into this issue.

  5. icy-comet commented on Jul 10, 2022

    @icy-comet
    ContributorAuthor

    chances are the problem is in upstream tcell

    Seems like it @mum4k.

    I just put together a test file according to tcell's getting started guide for 4 text styles — italic, bold, blink and dim.

    Here are the results:

    • Windows + Windows Terminal + Powershell - only the blink style works
      image
    • Windows + Conhost + cmd - blink and bold styles work
      image
    • WSL2 + Windows Terminal + bash - bold style doesn't work
      image
    • WSL2 + Conhost + bash - all styles work
      image

    Here's the gist I used for testing:
    https://gist.github.com/icy-comet/76cc7fdbb77f272c5653e533ddebdb63

  6. icy-comet commented on Jul 10, 2022

    @icy-comet
    ContributorAuthor

    I just opened an issue describing this at tcell's issue tracker: gdamore/tcell#539

  7. mum4k commented on Jul 14, 2022

    @mum4k
    Owner

    Thank you for following up upstream @icy-comet.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions