René's URL Explorer Experiment


Title: Out-Host -Paging does not pause on long strings or clean up after itself · Issue #7851 · PowerShell/PowerShell · GitHub

Open Graph Title: Out-Host -Paging does not pause on long strings or clean up after itself · Issue #7851 · PowerShell/PowerShell

X Title: Out-Host -Paging does not pause on long strings or clean up after itself · Issue #7851 · PowerShell/PowerShell

Description: Per the comment on #4962, paging was at some point intended to be fixed by 6.1.0 -- this is not the case, as such. Checking the contents of $function:help indicates that some effort was made for the help system specifically (it utilises ...

Open Graph Description: Per the comment on #4962, paging was at some point intended to be fixed by 6.1.0 -- this is not the case, as such. Checking the contents of $function:help indicates that some effort was made for th...

X Description: Per the comment on #4962, paging was at some point intended to be fixed by 6.1.0 -- this is not the case, as such. Checking the contents of $function:help indicates that some effort was made for th...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/7851

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Out-Host -Paging does not pause on long strings or clean up after itself","articleBody":"Per the [comment](https://github.com/PowerShell/PowerShell/issues/4962#issuecomment-333342220) on #4962, paging was at some point intended to be fixed by 6.1.0 -- this is not the case, as such.\r\n\r\nChecking the contents of `$function:help` indicates that *some* effort was made for the help system specifically (it utilises `less` on Linux, and `more.com` on Windows), but `Out-Host -Paging` does... nothing, in those cases (long strings of text aren't interrupted to page, etc.)\r\n\r\nIt *does* work with lengthy sequences of objects, *but* even there the paging is... not at all pretty. Unlike how `more` or `less` function, it leaves... useless prompt strings in the host display after they've been skipped past, duplicates the prompt after the first full page, and overall doesn't make enough of an effort to distinguish itself from the rest of the output, in my opinion. Image is below; partial host output from a call to `gci c:\\ -recurse -depth 2 | out-host -paging`\r\n\r\n![image](https://user-images.githubusercontent.com/32407840/45927943-99c16780-bf09-11e8-8412-71c22593c051.png)\r\n\r\n`Out-Host -Paging` should mimic the behaviour of `more` and `less`. As [this unfortunate soul discovered](https://www.reddit.com/r/PowerShell/comments/9hyh8v/i_must_have_screwed_up_more_literally/e6he82z/?context=3) `more.com` does have cases where it *completely breaks* non-Latin character encodings (though it is perfectly capable of reading them from a file). \r\n\r\nAnd, arguably, the `more` function should return as a function that simply maps to `Out-Host -Paging`\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n# windows\r\ngci c:\\ -recurse -depth 2 | out-host -Paging\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n*similar behaviour to `more.com` or `less`*\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\n\r\n\r\n    Directory: C:\\\r\n\r\n\r\nMode                LastWriteTime         Length Name\r\n----                -------------         ------ ----\r\nd-----         7/1/2018  12:33 AM                8336500659725115574\r\nda----        8/16/2016   4:57 PM                adb\r\nd-----        9/16/2018   6:40 PM                AMD\r\nda----         9/9/2016  11:27 AM                Android\r\nd-----        9/24/2015   5:38 PM                EFI\r\nd-----         4/7/2018   6:39 PM                ESD\r\nd-----        3/16/2015   1:35 AM                Intel\r\nd-----         5/3/2018   6:48 PM                Logs\r\nd-----        9/27/2015  11:57 PM                My Backups\r\nd-----         9/8/2018   5:23 AM                PerfLogs\r\nd-r---        9/16/2018   6:39 PM                Program Files\r\nd-r---        9/16/2018   6:39 PM                Program Files (x86)\r\nd-----        3/17/2015   9:12 PM                Python34\r\nd-----         9/4/2017   8:34 PM                Ruby24-x64\r\nd-----         7/6/2018   1:23 PM                test\r\nd-r---        9/16/2018   6:39 PM                Users\r\nd-----       11/29/2016  12:32 AM                VIA_XHCI\r\nd-----        9/16/2018   6:46 PM                Windows\r\nd-----        9/16/2018   6:48 PM                Windows.old\r\nd-----         6/1/2018  12:28 AM                Windows.old(1)\r\n-a----        3/17/2015   5:49 AM        4194304 BIOS.17.03.15.bak\r\n-a----         4/6/2018   6:05 PM          17005 PS5.1help.csv\r\n-a----         4/6/2018   6:04 PM           5535 PSCoreHelp.csv\r\n-a----         4/6/2018   6:22 PM            328 WinPSTopics.txt\r\n\r\n\r\n    Directory: C:\\adb\r\n\r\n\r\nMode                LastWriteTime         Length Name\r\n----                -------------         ------ ----\r\n-a----        10/9/2015   5:58 PM         944128 adb.exe\r\n-a----        10/9/2015   5:58 PM          96256 AdbWinApi.dll\r\n-a----        10/9/2015   5:58 PM          60928 AdbWinUsbApi.dll\r\n-a----        10/9/2015   5:58 PM         318464 fastboot.exe\r\n\r\n\r\n    Directory: C:\\AMD\r\n\r\n\r\nMode                LastWriteTime         Length Name\r\n----                -------------         ------ ----\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\nd-----         2/4/2018  11:12 AM                Packages\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\nd-----       12/12/2017   8:43 PM                PPC\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\nd-----         2/4/2018  11:12 AM                radeon-software-adrenalin-18.2.1-minimalsetup-180201_64bit\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\nd-----       12/12/2017   8:36 PM                Win10-64Bit-Radeon-Software-Adrenalin-Edition-17.12.1-Dec11\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\nd-----        9/16/2018   6:40 PM                WU-CCC2\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\n-a----         2/4/2018   9:20 AM           2647 atikmdag_dce.log\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\n\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\n\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\n    Directory: C:\\AMD\\Packages\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\n\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\n\r\n\u003cSPACE> next page; \u003cCR> next line; Q quit\r\n```\r\n\r\nLots of added clutter that does not clean up after itself.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\n> $PSVersionTable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.1.0\r\nPSEdition                      Core\r\nGitCommitId                    6.1.0\r\nOS                             Microsoft Windows 10.0.17758\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n","author":{"url":"https://github.com/vexx32","@type":"Person","name":"vexx32"},"datePublished":"2018-09-23T12:24:03Z","url":"https://github.com/PowerShell/PowerShell/issues/7851"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:40982f40-c9b5-2ed7-914b-83c6004bd1bc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB7E:2B4DE7:28D39F:39BC09:6AFD55EF
html-safe-noncecd597f2aa2766d96241e45e000e24147831b1d91ded77cbd3add22fa41ab88b6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjdFOjJCNERFNzoyOEQzOUY6MzlCQzA5OjZBRkQ1NUVGIiwidmlzaXRvcl9pZCI6Ijc3MzE3MTE1NTI5NDM2NDIwOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf945ff0c6bcc8d0d50992ffb85cdc2c66de1bf385f4b2a21e1020336e7bc5d29
hovercard-subject-tagissue:362938482
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/PowerShell/PowerShell/7851/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d36537d1022b4e48899273d5d8d97349ecaab83db937bbe71eb593814b508709/PowerShell/PowerShell/issues/7851
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d36537d1022b4e48899273d5d8d97349ecaab83db937bbe71eb593814b508709/PowerShell/PowerShell/issues/7851
og:image:altPer the comment on #4962, paging was at some point intended to be fixed by 6.1.0 -- this is not the case, as such. Checking the contents of $function:help indicates that some effort was made for th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevexx32
hostnamegithub.com
expected-hostnamegithub.com
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
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
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/7851#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F7851
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F7851
Sign uphttps://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=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/7851
Reloadhttps://github.com/PowerShell/PowerShell/issues/7851
Reloadhttps://github.com/PowerShell/PowerShell/issues/7851
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/7851
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/7851
Out-Host -Paging does not pause on long strings or clean up after itselfhttps://github.com/PowerShell/PowerShell/issues/7851#top
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
WG-Cmdletsgeneral cmdlet issueshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Cmdlets%22
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Sep 23, 2018https://github.com/PowerShell/PowerShell/issues/7851#issue-362938482
commenthttps://github.com/PowerShell/PowerShell/issues/4962#issuecomment-333342220
#4962https://github.com/PowerShell/PowerShell/issues/4962
https://user-images.githubusercontent.com/32407840/45927943-99c16780-bf09-11e8-8412-71c22593c051.png
this unfortunate soul discoveredhttps://www.reddit.com/r/PowerShell/comments/9hyh8v/i_must_have_screwed_up_more_literally/e6he82z/?context=3
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Sep 23, 2018https://github.com/PowerShell/PowerShell/issues/7851#event-1861962470
Bruce Payette (BrucePay)https://github.com/BrucePay
WG-Cmdletsgeneral cmdlet issueshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Cmdlets%22
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
on Sep 24, 2018https://github.com/PowerShell/PowerShell/issues/7851#event-1862221699
https://github.com/BrucePay
Bruce Payette (BrucePay)https://github.com/BrucePay
on Sep 24, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-423862179
Rain Sallow (/u/ta11ow) (@vexx32)https://github.com/vexx32
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Sep 24, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-423869196
https://github.com/BrucePay
Bruce Payette (BrucePay)https://github.com/BrucePay
on Sep 24, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-424021008
Rain Sallow (/u/ta11ow) (@vexx32)https://github.com/vexx32
https://github.com/rkeithhill
Keith Hill (rkeithhill)https://github.com/rkeithhill
on Sep 24, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-424025664
https://user-images.githubusercontent.com/5177512/45962824-0a868380-bfdf-11e8-9d60-312cfe5085ad.png
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Sep 24, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-424030397
https://github.com/SeeminglyScience
Patrick Meinecke (SeeminglyScience)https://github.com/SeeminglyScience
on Sep 25, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-424421488
Bruce Payette (@BrucePay)https://github.com/BrucePay
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Sep 25, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-424427507
Patrick Meinecke (@SeeminglyScience)https://github.com/SeeminglyScience
https://github.com/BrucePay
Bruce Payette (BrucePay)https://github.com/BrucePay
on Sep 26, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-424891315
Patrick Meinecke (@SeeminglyScience)https://github.com/SeeminglyScience
https://github.com/felixfbecker
Felix Becker (felixfbecker)https://github.com/felixfbecker
on Oct 6, 2018https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-427611123
https://github.com/figueroadavid
David Figueroa (figueroadavid)https://github.com/figueroadavid
on Jun 4, 2019https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-498784505
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Nov 16, 2023https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-1813888369
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Nov 16, 2023https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-1813888370
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
on Nov 16, 2023https://github.com/PowerShell/PowerShell/issues/7851#event-10976516617
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Nov 23, 2023https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-1824381629
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 23, 2023https://github.com/PowerShell/PowerShell/issues/7851#event-11047364093
https://github.com/pbarney
Peter Barney (pbarney)https://github.com/pbarney
on Aug 6, 2026https://github.com/PowerShell/PowerShell/issues/7851#issuecomment-5207228290
Felix Becker (@felixfbecker)https://github.com/felixfbecker
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/7851
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/7851
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
WG-Cmdletsgeneral cmdlet issueshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Cmdlets%22
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.