René's URL Explorer Experiment


Title: Rich Console Status Visual Bug · Issue #1578 · python-cmd2/cmd2 · GitHub

Open Graph Title: Rich Console Status Visual Bug · Issue #1578 · python-cmd2/cmd2

X Title: Rich Console Status Visual Bug · Issue #1578 · python-cmd2/cmd2

Description: Description Using the Cmd.p* output methods from while a rich status spinner is running causes the messages to merge on the terminal. Environment Windows 11 Windows Terminal Version: 1.23.20211.0 Python 3.12.2 cmd2-3.2.0 Steps to Reprodu...

Open Graph Description: Description Using the Cmd.p* output methods from while a rich status spinner is running causes the messages to merge on the terminal. Environment Windows 11 Windows Terminal Version: 1.23.20211.0 P...

X Description: Description Using the Cmd.p* output methods from while a rich status spinner is running causes the messages to merge on the terminal. Environment Windows 11 Windows Terminal Version: 1.23.20211.0 P...

Opengraph URL: https://github.com/python-cmd2/cmd2/issues/1578

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rich Console Status Visual Bug","articleBody":"### Description\nUsing the `Cmd.p*` output methods from while a rich status spinner is running causes the messages to merge on the terminal.\n\n### Environment\n- Windows 11\n- Windows Terminal Version: 1.23.20211.0\n- Python 3.12.2\n- cmd2-3.2.0\n\n### Steps to Reproduce\n```python\nimport time\nfrom argparse import Namespace\n\nfrom cmd2 import Cmd, with_category\nfrom rich.console import Console\n\nTEST_CATAGORY: str = \"Test Commands\"\nconsole = Console()\n\n\nclass MyCmd(Cmd):\n    @with_category(TEST_CATAGORY)\n    def do_exemplar(self, args: Namespace):\n        \"\"\"This is what the status is expected to look like.\"\"\"\n        with console.status(\"Working!\"):\n            for _ in range(10):\n                console.log(\"console.log: Hello from cmd!\")\n                time.sleep(0.1)\n\n    @with_category(TEST_CATAGORY)\n    def do_problem(self, args: Namespace):\n        \"\"\"Demonstrate the problem.\"\"\"\n        with console.status(\"Working!\"):\n            for _ in range(10):\n                self.pwarning(\"pwarning: Hello from cmd!\")\n                time.sleep(0.1)\n\n\nif __name__ == \"__main__\":\n    MyCmd().cmdloop()\n```\n\n\u003cimg width=\"390\" height=\"456\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/a7141af4-b665-4709-a7f1-8e3b341425a0\" /\u003e\n\n### Solutions\n\nI did some digging into `rich` and `cmd2` and could not find a way to insert my own console instance into the `cmd2.Cmd` for use with the print methods (`cmd2.Cmd.p*`). If there is an obvious solution, please let me know. I have been a long time user of this package and the new changes integrating `rich` are very exciting.\n\nOne possible fix would be to not create a new console object for each call to the print methods. I am not really sure how easy that will be to change or maintain. There could be a console attribute for the `cmd2.Cmd` class or `cmd2` could manage a global console object like how `rich` [does](https://github.com/Textualize/rich/blob/master/rich/__init__.py#L23).","author":{"url":"https://github.com/ShiftPoster","@type":"Person","name":"ShiftPoster"},"datePublished":"2026-02-19T01:44:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/1578/cmd2/issues/1578"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:337e12af-d19c-66db-46e4-c8cdf2fe11dd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB6AC:34BFFD:2CBE40C:3D91A30:6A4F0719
html-safe-nonce3be620edfeb5f635bb15bf23b8a959fe372fd6f0da3d2806e699997671c9d5e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkFDOjM0QkZGRDoyQ0JFNDBDOjNEOTFBMzA6NkE0RjA3MTkiLCJ2aXNpdG9yX2lkIjoiNTMyMjMxNTMxMDI1MzkzNDM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac62009b26ec68f20a6d37d42597447b02b990d6bd246aad12f8d2292a24e85af8
hovercard-subject-tagissue:3960561642
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-cmd2/cmd2/1578/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f91ea84e6e1b7b22d0316b3b648cf9bddddc13047cd3109d8a7e4cb9f672c824/python-cmd2/cmd2/issues/1578
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f91ea84e6e1b7b22d0316b3b648cf9bddddc13047cd3109d8a7e4cb9f672c824/python-cmd2/cmd2/issues/1578
og:image:altDescription Using the Cmd.p* output methods from while a rich status spinner is running causes the messages to merge on the terminal. Environment Windows 11 Windows Terminal Version: 1.23.20211.0 P...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameShiftPoster
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
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
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-cmd2/cmd2/issues/1578#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fissues%2F1578
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2Fissues%2F1578
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-cmd2%2Fcmd2
Reloadhttps://github.com/python-cmd2/cmd2/issues/1578
Reloadhttps://github.com/python-cmd2/cmd2/issues/1578
Reloadhttps://github.com/python-cmd2/cmd2/issues/1578
Please reload this pagehttps://github.com/python-cmd2/cmd2/issues/1578
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
#1593https://github.com/python-cmd2/cmd2/pull/1593
Rich Console Status Visual Bughttps://github.com/python-cmd2/cmd2/issues/1578#top
#1593https://github.com/python-cmd2/cmd2/pull/1593
https://github.com/kmvanbrunt
enhancementhttps://github.com/python-cmd2/cmd2/issues?q=state%3Aopen%20label%3A%22enhancement%22
pythonPull requests that update Python codehttps://github.com/python-cmd2/cmd2/issues?q=state%3Aopen%20label%3A%22python%22
4.0.0https://github.com/python-cmd2/cmd2/milestone/67
https://github.com/ShiftPoster
ShiftPosterhttps://github.com/ShiftPoster
on Feb 19, 2026https://github.com/python-cmd2/cmd2/issues/1578#issue-3960561642
https://private-user-images.githubusercontent.com/223374232/551864843-a7141af4-b665-4709-a7f1-8e3b341425a0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM1NjQzNTgsIm5iZiI6MTc4MzU2NDA1OCwicGF0aCI6Ii8yMjMzNzQyMzIvNTUxODY0ODQzLWE3MTQxYWY0LWI2NjUtNDcwOS1hN2YxLThlM2IzNDE0MjVhMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwOVQwMjI3MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01YTIxYjFhMjcwM2JiZWEyODRmMThiMmQ3OTAwNzQ1MTJlZTY2MzlhMDljNzBjMTY1N2NlZWYwODdhZTBkMzE5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.kJU8PjwWqb_MIv4VFYMn6VB-vMlK-KpIGLBEK2daT-E
doeshttps://github.com/Textualize/rich/blob/master/rich/__init__.py#L23
kmvanbrunthttps://github.com/kmvanbrunt
enhancementhttps://github.com/python-cmd2/cmd2/issues?q=state%3Aopen%20label%3A%22enhancement%22
pythonPull requests that update Python codehttps://github.com/python-cmd2/cmd2/issues?q=state%3Aopen%20label%3A%22python%22
4.0.0https://github.com/python-cmd2/cmd2/milestone/67
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.