PSWriteColor icon indicating copy to clipboard operation
PSWriteColor copied to clipboard

Enhancement - Added PadLeft; PadCenter; PadRight; and PadCharacter Parameters to Write-Color Function

Open jbaechtelMT opened this issue 2 years ago • 3 comments

Added PadLeft; PadCenter; PadRight; and PadCharacter Parameters to Write-Color Function

Updated LinesBefore & LinesAfter code to make use of these new parameters. Allows for easily formatting menus or table output. See Example code (lines 54-65)

Screenshot 2023-04-13 191308

Screenshot 2023-04-13 190549

Write-Color.zip

jbaechtelMT avatar Apr 14 '23 01:04 jbaechtelMT

Care to sumbit PR instead?

PrzemyslawKlys avatar Apr 14 '23 11:04 PrzemyslawKlys

THX, created pull request. Hope it is useful to the project.

jbaechtelMT avatar Apr 15 '23 00:04 jbaechtelMT

Please provide proper example, not in a form of screenshot and I am not sure I understand the usage. What would be your use case? It's pretty complicated to try and use it that way.

PrzemyslawKlys avatar Apr 23 '23 10:04 PrzemyslawKlys