-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Open
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
I'm using SetBufferContents to do something like quickly access to character change.
But thus work sucessfully in windows, not work in MacOS terminal.
$list = '123','qwer','asdf','zxcv'
$cd=[System.Management.Automation.Host.Coordinates]::new(1,1)
$bf=$ui.NewBufferCellArray($list,[System.ConsoleColor]::Green,[System.ConsoleColor]::Gray)
$host.UI.RawUI.SetBufferContents($cd,$bf)
I think it should be like this:

It have two error:
- when I pass string[], but can't auto wrap lines
- the color can't work properly ( both backgroundcolor and foregroundcolor)
Expected behavior
123
qwer
asdf
zxcvActual behavior
123 qwerasdfzxcvError details
No response
Environment data
Name Value
---- -----
PSVersion 7.4.6
PSEdition Core
GitCommitId 7.4.6
OS Darwin 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 31 21:42:48 PDT 2024; root:xnu-8796.141.3.707.4~1/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Metadata
Metadata
Assignees
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.
