[GH-ISSUE #332] adding text styles has no effect on Windows #155

Open
opened 2026-03-03 16:22:57 +03:00 by kerem · 5 comments
Owner

Originally created by @icy-comet on GitHub (Jul 8, 2022).
Original GitHub issue: https://github.com/mum4k/termdash/issues/332

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.

Originally created by @icy-comet on GitHub (Jul 8, 2022). Original GitHub issue: https://github.com/mum4k/termdash/issues/332 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](https://user-images.githubusercontent.com/50461557/177916937-3042b9f8-fc1f-48b3-8262-4f4a595a8d62.png) 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](https://user-images.githubusercontent.com/50461557/177918820-1d06d2b0-51b6-42a1-ab10-efd8c7fa4391.png) ```text 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.
Author
Owner

@icy-comet commented on GitHub (Jul 8, 2022):

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

<!-- gh-comment-id:1178634173 --> @icy-comet commented on GitHub (Jul 8, 2022): I just tested the same program inside WSL, and all the styles work fine with the Linux build.
Author
Owner

@mum4k commented on GitHub (Jul 8, 2022):

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.

<!-- gh-comment-id:1179047035 --> @mum4k commented on GitHub (Jul 8, 2022): 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.
Author
Owner

@icy-comet commented on GitHub (Jul 10, 2022):

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

<!-- gh-comment-id:1179661214 --> @icy-comet commented on GitHub (Jul 10, 2022): > 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](https://github.com/gdamore/tcell/blob/master/TUTORIAL.md) for 4 text styles — `italic`, `bold`, `blink` and `dim`. Here are the results: - Windows + Windows Terminal + Powershell - only the `blink` style works ![image](https://user-images.githubusercontent.com/50461557/178132918-a648a20d-9dd2-45d2-9dde-95d657bade0c.png) - Windows + Conhost + cmd - `blink` and `bold` styles work ![image](https://user-images.githubusercontent.com/50461557/178132876-facf132d-05aa-46f6-8b50-965c7ed995e3.png) - WSL2 + Windows Terminal + bash - `bold` style doesn't work ![image](https://user-images.githubusercontent.com/50461557/178132899-058a3c8d-f0a7-4c93-a248-991c20fc6945.png) - WSL2 + Conhost + bash - all styles work ![image](https://user-images.githubusercontent.com/50461557/178133166-95c052e3-2ac8-45ff-bc50-c7af1e603fa9.png) Here's the gist I used for testing: https://gist.github.com/icy-comet/76cc7fdbb77f272c5653e533ddebdb63
Author
Owner

@icy-comet commented on GitHub (Jul 10, 2022):

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

<!-- gh-comment-id:1179662629 --> @icy-comet commented on GitHub (Jul 10, 2022): I just opened an issue describing this at `tcell`'s issue tracker: gdamore/tcell#539
Author
Owner

@mum4k commented on GitHub (Jul 14, 2022):

Thank you for following up upstream @icy-comet.

<!-- gh-comment-id:1183958261 --> @mum4k commented on GitHub (Jul 14, 2022): Thank you for following up upstream @icy-comet.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#155
No description provided.