René's URL Explorer Experiment


Title: Fix ANSI colors stripped when TERM=dumb or color system undetectable by Nilsonfsilva · Pull Request #1629 · python-cmd2/cmd2 · GitHub

Open Graph Title: Fix ANSI colors stripped when TERM=dumb or color system undetectable by Nilsonfsilva · Pull Request #1629 · python-cmd2/cmd2

X Title: Fix ANSI colors stripped when TERM=dumb or color system undetectable by Nilsonfsilva · Pull Request #1629 · python-cmd2/cmd2

Description: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python - Fix ANSI colors stripped when TERM=dumb or color system undetectable by Nilsonfsilva · Pull Request #1629 · python-cmd2/cmd2

Open Graph Description: Hi! @tleonhardt I have rebased the fix on top of the current main branch in a new branch fix-ansi-color-dumb-terminal-v2 and updated the PR accordingly. Please let me know if anything else is neede...

X Description: Hi! @tleonhardt I have rebased the fix on top of the current main branch in a new branch fix-ansi-color-dumb-terminal-v2 and updated the PR accordingly. Please let me know if anything else is neede...

Opengraph URL: https://github.com/python-cmd2/cmd2/pull/1629

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:90618a9d-cb13-bf86-4785-4aeba0054c94
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE7BC:100AB9:130076F:1A43598:6A4DE64B
html-safe-nonce839ec0ce86c35cb6e7f848b5cb9cb2f7ea91a4f15e4755fb49b5ffa5a129ee87
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0JDOjEwMEFCOToxMzAwNzZGOjFBNDM1OTg6NkE0REU2NEIiLCJ2aXNpdG9yX2lkIjoiNjcyOTg0Njg5NDU2MDQ3NjkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc7ce5958a327cb66db11226fbf684fe01d03fe372cfc1118c28a58593e1a91b8
hovercard-subject-tagpull_request:3519136826
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python-cmd2/cmd2/1629/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/bec81aab4f63f19cf680ff98cc94aa3e8233a468ecc3c49001aec4fedf3fc439/python-cmd2/cmd2/pull/1629
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bec81aab4f63f19cf680ff98cc94aa3e8233a468ecc3c49001aec4fedf3fc439/python-cmd2/cmd2/pull/1629
og:image:altHi! @tleonhardt I have rebased the fix on top of the current main branch in a new branch fix-ansi-color-dumb-terminal-v2 and updated the PR accordingly. Please let me know if anything else is neede...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNilsonfsilva
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-cache
go-importgithub.com/python-cmd2/cmd2 git https://github.com/python-cmd2/cmd2.git
octolytics-dimension-user_id17161025
octolytics-dimension-user_loginpython-cmd2
octolytics-dimension-repository_id51442999
octolytics-dimension-repository_nwopython-cmd2/cmd2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51442999
octolytics-dimension-repository_network_root_nwopython-cmd2/cmd2
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-cmd2/cmd2/pull/1629#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1629
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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-cmd2%2Fcmd2%2Fpull%2F1629
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python-cmd2%2Fcmd2
Reloadhttps://github.com/python-cmd2/cmd2/pull/1629
Reloadhttps://github.com/python-cmd2/cmd2/pull/1629
Reloadhttps://github.com/python-cmd2/cmd2/pull/1629
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
python-cmd2 https://github.com/python-cmd2
cmd2https://github.com/python-cmd2/cmd2
Notifications https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Fork 132 https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Star 689 https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Code https://github.com/python-cmd2/cmd2
Issues 0 https://github.com/python-cmd2/cmd2/issues
Pull requests 0 https://github.com/python-cmd2/cmd2/pulls
Discussions https://github.com/python-cmd2/cmd2/discussions
Actions https://github.com/python-cmd2/cmd2/actions
Projects https://github.com/python-cmd2/cmd2/projects
Security and quality 0 https://github.com/python-cmd2/cmd2/security
Insights https://github.com/python-cmd2/cmd2/pulse
Code https://github.com/python-cmd2/cmd2
Issues https://github.com/python-cmd2/cmd2/issues
Pull requests https://github.com/python-cmd2/cmd2/pulls
Discussions https://github.com/python-cmd2/cmd2/discussions
Actions https://github.com/python-cmd2/cmd2/actions
Projects https://github.com/python-cmd2/cmd2/projects
Security and quality https://github.com/python-cmd2/cmd2/security
Insights https://github.com/python-cmd2/cmd2/pulse
Nilsonfsilvahttps://github.com/Nilsonfsilva
python-cmd2:mainhttps://github.com/python-cmd2/cmd2/tree/main
Nilsonfsilva:fix-ansi-color-dumb-terminal-v2https://github.com/Nilsonfsilva/cmd2/tree/fix-ansi-color-dumb-terminal-v2
Conversationhttps://github.com/python-cmd2/cmd2/pull/1629
Commits2 (2)https://github.com/python-cmd2/cmd2/pull/1629/commits
Checkshttps://github.com/python-cmd2/cmd2/pull/1629/checks
Files changedhttps://github.com/python-cmd2/cmd2/pull/1629/files
Fix ANSI colors stripped when TERM=dumb or color system undetectablehttps://github.com/python-cmd2/cmd2/pull/1629#top
Nilsonfsilvahttps://github.com/Nilsonfsilva
python-cmd2:mainhttps://github.com/python-cmd2/cmd2/tree/main
Nilsonfsilva:fix-ansi-color-dumb-terminal-v2https://github.com/Nilsonfsilva/cmd2/tree/fix-ansi-color-dumb-terminal-v2
https://github.com/Nilsonfsilva
Nilsonfsilvahttps://github.com/Nilsonfsilva
Apr 12, 2026https://github.com/python-cmd2/cmd2/pull/1629#issue-4247552085
@tleonhardthttps://github.com/tleonhardt
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
https://github.com/Nilsonfsilva
Fix ANSI colors stripped when TERM=dumb or color system undetectablehttps://github.com/python-cmd2/cmd2/pull/1629/commits/fc65237b019c0632b87bf79c9e8acbb10810b9d4
fc65237https://github.com/python-cmd2/cmd2/pull/1629/commits/fc65237b019c0632b87bf79c9e8acbb10810b9d4
https://github.com/Nilsonfsilva
Nilsonfsilvahttps://github.com/Nilsonfsilva
kmvanbrunthttps://github.com/kmvanbrunt
tleonhardthttps://github.com/tleonhardt
code ownershttps://github.com/python-cmd2/cmd2/blob/1d6910a06646e8b328184b904be76a0f7cc12840/.github/CODEOWNERS#L44
April 12, 2026 10:14https://github.com/python-cmd2/cmd2/pull/1629#event-24418904807
https://github.com/Nilsonfsilva
Nilsonfsilvahttps://github.com/Nilsonfsilva
Apr 12, 2026 https://github.com/python-cmd2/cmd2/pull/1629#ref-pullrequest-4246193023
Fix ansi color dumb terminal #1628 https://github.com/python-cmd2/cmd2/pull/1628
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Apr 12, 2026https://github.com/python-cmd2/cmd2/pull/1629#issuecomment-4231665475
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
Codecovhttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1629?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
ea66804https://app.codecov.io/gh/python-cmd2/cmd2/commit/ea66804c3dec5c431f87560ca6beb9c07cd337d1?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
3d1239ahttps://app.codecov.io/gh/python-cmd2/cmd2/commit/3d1239ab519bf5feddefca6b7bd84e61d246a051?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Flaghttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1629/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
unittestshttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1629/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Sentryhttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1629?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
https://github.com/tleonhardt
tleonhardthttps://github.com/tleonhardt
Apr 12, 2026 https://github.com/python-cmd2/cmd2/pull/1629#pullrequestreview-4095122431
View reviewed changes https://github.com/python-cmd2/cmd2/pull/1629/files/fc65237b019c0632b87bf79c9e8acbb10810b9d4
tleonhardthttps://github.com/tleonhardt
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
https://github.com/python-cmd2/cmd2/pull/1629#pullrequestreview-4095122431
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@kmvanbrunthttps://github.com/kmvanbrunt
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
cmd2/rich_utils.pyhttps://github.com/python-cmd2/cmd2/pull/1629/files/fc65237b019c0632b87bf79c9e8acbb10810b9d4#diff-30643c13dc3488cef7cec475f67a3d9507ad7c39cd356a2aa74f5a63af94f970
tleonhardthttps://github.com/tleonhardt
Apr 12, 2026https://github.com/python-cmd2/cmd2/pull/1629#discussion_r3069574625
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
https://github.com/tleonhardt
Merge branch 'main' into fix-ansi-color-dumb-terminal-v2https://github.com/python-cmd2/cmd2/pull/1629/commits/3d1239ab519bf5feddefca6b7bd84e61d246a051
3d1239ahttps://github.com/python-cmd2/cmd2/pull/1629/commits/3d1239ab519bf5feddefca6b7bd84e61d246a051
https://github.com/tleonhardt
tleonhardthttps://github.com/tleonhardt
Apr 13, 2026https://github.com/python-cmd2/cmd2/pull/1629#issuecomment-4240065309
@Nilsonfsilvahttps://github.com/Nilsonfsilva
3.5.0https://pypi.org/project/cmd2/3.5.0/
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
Apr 13, 2026 https://github.com/python-cmd2/cmd2/pull/1629#ref-pullrequest-4258328801
Force truecolor support to avoid automatic color detection. (4.x) #1634 https://github.com/python-cmd2/cmd2/pull/1634
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
#1634 https://github.com/python-cmd2/cmd2/pull/1634
Apr 13, 2026https://github.com/python-cmd2/cmd2/pull/1629#event-24465613411
https://github.com/tleonhardt
tleonhardthttps://github.com/tleonhardt
Apr 13, 2026https://github.com/python-cmd2/cmd2/pull/1629#issuecomment-4240130989
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
#1634https://github.com/python-cmd2/cmd2/pull/1634
#1633https://github.com/python-cmd2/cmd2/pull/1633
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
https://github.com/Nilsonfsilva
Nilsonfsilvahttps://github.com/Nilsonfsilva
Apr 14, 2026https://github.com/python-cmd2/cmd2/pull/1629#issuecomment-4240779616
https://github.com/python-cmd2/cmd2/pull/1629
#1629https://github.com/python-cmd2/cmd2/pull/1629
https://avatars.githubusercontent.com/u/2812720?s=20&v=4]tleonhardthttps://avatars.githubusercontent.com/u/2812720?s=20&v=4]tleonhardt
python-cmd2/cmd2#1629https://github.com/python-cmd2/cmd2/pull/1629
#1629 (comment)https://github.com/python-cmd2/cmd2/pull/1629#issuecomment-4240065309
@Nilsonfsilvahttps://github.com/Nilsonfsilva
https://github.com/Nilsonfsilvahttps://github.com/Nilsonfsilva
https://pypi.org/project/cmd2/3.5.0/https://pypi.org/project/cmd2/3.5.0/
#1629 (comment)https://github.com/python-cmd2/cmd2/pull/1629#issuecomment-4240065309
https://github.com/notifications/unsubscribe-auth/AVZIS7Y5B5O6JY3YZYQ3SFT4VVT6ZAVCNFSM6AAAAACXVWZTISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DENBQGA3DKMZQHEhttps://github.com/notifications/unsubscribe-auth/AVZIS7Y5B5O6JY3YZYQ3SFT4VVT6ZAVCNFSM6AAAAACXVWZTISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DENBQGA3DKMZQHE
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
https://github.co/hiddenchars
https://github.com/python-cmd2/cmd2/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1629
https://github.com/tleonhardt
tleonhardt https://github.com/tleonhardt
https://github.com/python-cmd2/cmd2/pull/1629/files/fc65237b019c0632b87bf79c9e8acbb10810b9d4
https://github.com/kmvanbrunt
kmvanbrunt https://github.com/kmvanbrunt
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1629
https://github.com/Nilsonfsilva
https://github.com/tleonhardt
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.