You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
curses attribute constants list is incomplete #74362
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=Noneclosed_at=<Date2017-06-19.14:13:28.288>created_at=<Date2017-04-26.16:10:21.307>labels= ['3.7', 'docs']
title='curses attribute constants list is incomplete'updated_at=<Date2017-06-19.14:13:28.287>user='https://github.com/zhangyangyu'
Initially constants was enumerated in alphabetical order (except A_ITALIC). Maybe continue supporting this order? On other hand, it may be worth to group highlighting attributes separately. A_ATTRIBUTES, A_CHARTEXT and A_COLOR are not specific attributes, but bit masks, they also could be grouped separately or moved into a separate table.
Perhaps it is worth to add notes for A_ITALIC and highlighting attributes. They are not always available.
I still think that the difference between the groups should be documented in more details. Not all functions that support A_BOLD support also A_ITALIC and A_HORIZONTAL (even if they are defined). Bit masks are used in totally different way than other constants.
I can't find any official, portable doc about the details so I don't prefer to have them. I support bit-masks are different. Previously I don't what's the better way to organize them, now I have a try. Please check the update. :-)
Activity
serhiy-storchaka commentedon Apr 26, 2017
Initially constants was enumerated in alphabetical order (except A_ITALIC). Maybe continue supporting this order? On other hand, it may be worth to group highlighting attributes separately. A_ATTRIBUTES, A_CHARTEXT and A_COLOR are not specific attributes, but bit masks, they also could be grouped separately or moved into a separate table.
Perhaps it is worth to add notes for A_ITALIC and highlighting attributes. They are not always available.
zhangyangyu commentedon Apr 26, 2017
+1 for group. I added "The exact constants available are system dependent" to note some may be absent.
serhiy-storchaka commentedon Apr 26, 2017
I still think that the difference between the groups should be documented in more details. Not all functions that support A_BOLD support also A_ITALIC and A_HORIZONTAL (even if they are defined). Bit masks are used in totally different way than other constants.
zhangyangyu commentedon Apr 27, 2017
I can't find any official, portable doc about the details so I don't prefer to have them. I support bit-masks are different. Previously I don't what's the better way to organize them, now I have a try. Please check the update. :-)
Mariatta commentedon Jun 16, 2017
New changeset 116dd5e by Mariatta (Xiang Zhang) in branch 'master':
bpo-30176: Add missing curses cell attributes constants (GH-1302)
116dd5e
Mariatta commentedon Jun 16, 2017
New changeset 304a96e by Mariatta in branch '3.6':
bpo-30176: Add missing curses cell attributes constants (GH-1302). (GH-2241)
304a96e
zhangyangyu commentedon Jun 19, 2017
New changeset 04521c2 by Xiang Zhang in branch '3.5':
bpo-30176: Add missing curses cell attributes constants (bpo-2277)
04521c2
zhangyangyu commentedon Jun 19, 2017
New changeset b39a748 by Xiang Zhang in branch '2.7':
bpo-30176: Add missing curses cell attributes constants (bpo-2278)
b39a748
zhangyangyu commentedon Jun 19, 2017
Thanks Mariatta and Serhiy!