René's URL Explorer Experiment


Title: bpo-36982: Add support for extended color functions in ncurses 6.1 by websurfer5 · Pull Request #13534 · python/cpython · GitHub

Open Graph Title: bpo-36982: Add support for extended color functions in ncurses 6.1 by websurfer5 · Pull Request #13534 · python/cpython

X Title: bpo-36982: Add support for extended color functions in ncurses 6.1 by websurfer5 · Pull Request #13534 · python/cpython

Description: ncurses 6.1 adds extended color functions to support terminals with 256 colors (e.g. xterm-256color). The extended functions use color-pair values that are signed integers because the existing functions only use signed short integer values that are too small to support the 65,536 color-pair values needed for a 256-color terminal. The new extended color functions are used transparently by curses.color_content(), curses.init_color(), curses.init_pair(), and curses.pair_content() when available, and the original functions are used when they aren't. The module functions validate their parameters as signed integers when using the new extended functions and as signed short integers when using the original library functions to match the underlying ncurses function parameters. The original behavior remains unchanged when Python is built with a curses library that does not contain the new extended color functions. A new function, curses.has_extended_color_support(), indicates whether extended color support is provided by the underlying ncurses library. This PR also fixes issue #36630. https://bugs.python.org/issue36982

Open Graph Description: ncurses 6.1 adds extended color functions to support terminals with 256 colors (e.g. xterm-256color). The extended functions use color-pair values that are signed integers because the existing func...

X Description: ncurses 6.1 adds extended color functions to support terminals with 256 colors (e.g. xterm-256color). The extended functions use color-pair values that are signed integers because the existing func...

Opengraph URL: https://github.com/python/cpython/pull/13534

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:e0ab2feb-2f04-484a-86d2-6f711977f0d2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9FA2:19C838:44D787E:5C12549:699597CA
html-safe-nonce0c23dd414f9f27fe0d88b88c43f53005a735a50f9acf855a04f79f6a43a4b727
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkEyOjE5QzgzODo0NEQ3ODdFOjVDMTI1NDk6Njk5NTk3Q0EiLCJ2aXNpdG9yX2lkIjoiMTA2NDM2MDI2NDI4MjI0OTE2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacce54f9900d3334b830c85e34357894e3a53c0621bf1a6b7ad582b74205483657
hovercard-subject-tagpull_request:281872311
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
twitter:imagehttps://avatars.githubusercontent.com/u/49998481?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/49998481?s=400&v=4
og:image:altncurses 6.1 adds extended color functions to support terminals with 256 colors (e.g. xterm-256color). The extended functions use color-pair values that are signed integers because the existing func...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4bd759bc5f83244e2a0de29b937365905c0fefd238b6f077c24a49830375b4df
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6de0b4814d356b3d1ba4b5c6f757c6d4b967559b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F13534%2Fcommits%2F1d38c537939a946c736fc664bb0eaf534c8fcefd
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F13534%2Fcommits%2F1d38c537939a946c736fc664bb0eaf534c8fcefd
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
Reloadhttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
Reloadhttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.5k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
websurfer5https://github.com/websurfer5
python:masterhttps://github.com/python/cpython/tree/master
websurfer5:fix-issue-36982https://github.com/websurfer5/cpython/tree/fix-issue-36982
Conversation 9 https://github.com/python/cpython/pull/13534
Commits 14 https://github.com/python/cpython/pull/13534/commits
Checks 0 https://github.com/python/cpython/pull/13534/checks
Files changed https://github.com/python/cpython/pull/13534/files
Please reload this pagehttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
bpo-36982: Add support for extended color functions in ncurses 6.1 https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#top
Show all changes 14 commits https://github.com/python/cpython/pull/13534/files
1d38c53 bpo-36982, bpo-36630: replumb these curses module functions to support websurfer5 May 21, 2019 https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
899fc20 bpo-36982, bpo-36630: refactor the curses color implementation functions websurfer5 May 22, 2019 https://github.com/python/cpython/pull/13534/commits/899fc201f6f6b561221335819bcf95158d984403
b54ab0d bpo-36982, bpo-36630: _NCURSES_EXTENDED_COLOR_FUNCS is always defined, websurfer5 May 23, 2019 https://github.com/python/cpython/pull/13534/commits/b54ab0d8d3ea376cc3763cd5d24bc27060e45b04
765d44d bpo-36982: add new function: curses.has_extended_color_support() websurfer5 May 24, 2019 https://github.com/python/cpython/pull/13534/commits/765d44d347a68172dc83e1e21b05e57cd276fdcd
7bc2725 Merge branch 'master' of github.com:python/cpython into fix-issue-36982 websurfer5 May 24, 2019 https://github.com/python/cpython/pull/13534/commits/7bc2725067d9a8fd84028e311a08df5ff8808de9
a6e3280 bpo-36982, bpo-36630: rename the ncurses section to curses (since websurfer5 May 24, 2019 https://github.com/python/cpython/pull/13534/commits/a6e3280e40a4312e2fc0b20730aecb1273d086a3
ee38996 bpo-36982, bpo-36630: add test for curses.has_extended_color_support() websurfer5 May 24, 2019 https://github.com/python/cpython/pull/13534/commits/ee3899639b3c6838c4c93ea9521dbc937b776890
a43d221 bpo-36982: reorganize new code to keep clinic happy websurfer5 May 24, 2019 https://github.com/python/cpython/pull/13534/commits/a43d22166180d08c869d219e6eb6e7e754781008
4568f43 📜🤖 Added by blurb_it. blurb-it[bot] May 25, 2019 https://github.com/python/cpython/pull/13534/commits/4568f43f127bb262325fcad85b192bba0b145d6e
636b188 Merge branch 'master' of github.com:python/cpython into fix-issue-36982 websurfer5 May 25, 2019 https://github.com/python/cpython/pull/13534/commits/636b188f19ff92d3fb5123cc03c6badc39a9f999
696a83c Merge branch 'master' of github.com:python/cpython into fix-issue-36982 websurfer5 May 29, 2019 https://github.com/python/cpython/pull/13534/commits/696a83ce6cd641c96e07ab45afa26bfa44fc8f07
9f9d6f8 Merge branch 'fix-issue-36982' of github.com:websurfer5/cpython into … websurfer5 May 29, 2019 https://github.com/python/cpython/pull/13534/commits/9f9d6f82d66e5e956706e2ad390ba6d7610f5f93
7050d60 Merge branch 'master' of github.com:python/cpython into fix-issue-36982 websurfer5 May 29, 2019 https://github.com/python/cpython/pull/13534/commits/7050d600877790970696b7228708a7c6bd412183
039ffa6 bpo-36982: refactor color-pair functions to use clinic websurfer5 May 29, 2019 https://github.com/python/cpython/pull/13534/commits/039ffa63a7a864f9456711791d11aab1886ddd84
Clear filters https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
Please reload this pagehttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
Please reload this pagehttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
_cursesmodule.c https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
_cursesmodule.c.h https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-3712cb338691dd25b68632e5dae69b904aff02ecc7348a2c792d4c0acf007d8a
Next https://github.com/python/cpython/pull/13534/commits/899fc201f6f6b561221335819bcf95158d984403
bpo-36982https://bugs.python.org/issue?@action=redirect&bpo=36982
bpo-36630https://bugs.python.org/issue?@action=redirect&bpo=36630
Please reload this pagehttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
https://github.com/websurfer5
websurfer5https://github.com/python/cpython/commits?author=websurfer5
Modules/_cursesmodule.chttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
View file https://github.com/websurfer5/cpython/blob/1d38c537939a946c736fc664bb0eaf534c8fcefd/Modules/_cursesmodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/13534/commits/{{ revealButtonHref }}
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
Please reload this pagehttps://github.com/python/cpython/pull/13534/commits/1d38c537939a946c736fc664bb0eaf534c8fcefd
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.