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

curses' window.chgat does not change color when specifying curses.A_COLOR #85761

Open
madebr mannequin opened this issue Aug 20, 2020 · 2 comments
Open

curses' window.chgat does not change color when specifying curses.A_COLOR #85761

madebr mannequin opened this issue Aug 20, 2020 · 2 comments
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@madebr
Copy link
Mannequin

madebr mannequin commented Aug 20, 2020

BPO 41595
Nosy @websurfer5, @madebr
Files
  • chgat.py: Python script using chgat that does not show any text
  • chgat.c: C source using chgat that works correctly
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-08-20.00:39:50.621>
    labels = ['3.7', 'library']
    title = "curses' window.chgat does not change color when specifying curses.A_COLOR"
    updated_at = <Date 2020-08-20.01:24:12.377>
    user = 'https://github.com/madebr'

    bugs.python.org fields:

    activity = <Date 2020-08-20.01:24:12.377>
    actor = 'Jeffrey.Kintscher'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-08-20.00:39:50.621>
    creator = 'maarten'
    dependencies = []
    files = ['49407', '49408']
    hgrepos = []
    issue_num = 41595
    keywords = []
    message_count = 2.0
    messages = ['375681', '375682']
    nosy_count = 2.0
    nosy_names = ['Jeffrey.Kintscher', 'maarten']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41595'
    versions = ['Python 3.7']

    @madebr
    Copy link
    Mannequin Author

    madebr mannequin commented Aug 20, 2020

    Or'ing curses.A_COLOR in the attr argument of curses.window.chgat ends of with the line not showing.

    Actual Problem:
    The text is invisible/hidden/not shown.
    Using only the attribute curses.A_BLINK is fine.

    Expected:
    The color of the line is changed +the text starts blinking.

    I have attached a small python reproducer and a small c source that shows the correct behavior.
    The c example should be compiled as gcc chgat.c -lncurses -o chgat.

    This is using ncurses 6.1

    The c code is from https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/attrib.html,
    and the python script is a translation of it.

    @madebr madebr mannequin added 3.7 (EOL) end of life stdlib Python modules in the Lib dir labels Aug 20, 2020
    @madebr
    Copy link
    Mannequin Author

    madebr mannequin commented Aug 20, 2020

    Equivalent c script of chgat.py

    Compile with:
    gcc chgat.c -lncurses -o chgat

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @erlend-aasland erlend-aasland added the type-bug An unexpected behavior, bug, or error label May 20, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    Status: Bugs
    Development

    No branches or pull requests

    1 participant