curses.A_UNDERLINE doesn't render an underline #17675

Closed
opened 2026-01-31 05:49:49 +00:00 by claunia · 4 comments
Owner

Originally created by @Utshaan on GitHub (Jun 10, 2022).

Windows Terminal version

1.13.11432.0

Windows build number

10.0.25131.1000

Other Software

windows-curses 2.3.0

Steps to reproduce

Run the following code using Python 3.10.4

import curses
from curses import wrapper


def main(stdscr):
    stdscr.clear()

    stdscr.addstr("Text 2" , curses.A_UNDERLINE)

    stdscr.refresh()
    stdscr.getch()

wrapper(main)

Expected Behavior

image

Actual Behavior

image

Originally created by @Utshaan on GitHub (Jun 10, 2022). ### Windows Terminal version 1.13.11432.0 ### Windows build number 10.0.25131.1000 ### Other Software windows-curses 2.3.0 ### Steps to reproduce Run the following code using Python 3.10.4 ``` import curses from curses import wrapper def main(stdscr): stdscr.clear() stdscr.addstr("Text 2" , curses.A_UNDERLINE) stdscr.refresh() stdscr.getch() wrapper(main) ``` ### Expected Behavior ![image](https://user-images.githubusercontent.com/69788046/173090977-5d7408b7-1122-4ffc-8420-fad02afdf60f.png) ### Actual Behavior ![image](https://user-images.githubusercontent.com/69788046/173091097-de358657-60d6-4042-a6f6-bae990bdae40.png)
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 05:49:49 +00:00
Author
Owner

@DHowett commented on GitHub (Jun 10, 2022):

If I had to guess, this is because the curses-windows library is using COMMON_LVB_UNDERSCORE (Windows-specific flag, supported only by Windows) instead of SGR 4 (VT underline, supported by everyone). LVB was originally intended for use with CJK locales...

We have work tracked to get the LVB attributes working/passed over to Terminal in a reasonable way, so on this hunch I'm going to close this as a /duplicate of #8037.

@DHowett commented on GitHub (Jun 10, 2022): If I had to guess, this is because the curses-windows library is using `COMMON_LVB_UNDERSCORE` (Windows-specific flag, supported only by Windows) instead of `SGR 4` (VT underline, supported by everyone). `LVB` was originally intended for use with CJK locales... We have work tracked to get the LVB attributes working/passed over to Terminal in a reasonable way, so on this hunch I'm going to close this as a /duplicate of #8037.
Author
Owner

@ghost commented on GitHub (Jun 10, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jun 10, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@Utshaan commented on GitHub (Jun 10, 2022):

If I had to guess, this is because the curses-windows library is using COMMON_LVB_UNDERSCORE (Windows-specific flag, supported only by Windows) instead of SGR 4 (VT underline, supported by everyone). LVB was originally intended for use with CJK locales...

We have work tracked to get the LVB attributes working/passed over to Terminal in a reasonable way, so on this hunch I'm going to close this as a /duplicate of #8037.

Alright thanks.

@Utshaan commented on GitHub (Jun 10, 2022): > If I had to guess, this is because the curses-windows library is using `COMMON_LVB_UNDERSCORE` (Windows-specific flag, supported only by Windows) instead of `SGR 4` (VT underline, supported by everyone). `LVB` was originally intended for use with CJK locales... > > We have work tracked to get the LVB attributes working/passed over to Terminal in a reasonable way, so on this hunch I'm going to close this as a /duplicate of #8037. Alright thanks.
Author
Owner

@DHowett commented on GitHub (Jun 10, 2022):

Thank you, for the report!

@DHowett commented on GitHub (Jun 10, 2022): Thank _you_, for the report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17675