Curated Examples
Create a simple terminal window
Use ConsoleMonster to assemble a small terminal UI window.
This pattern is useful when a console tool needs a basic interactive surface.
It is adapted from Examples/Example-Terminal.ps1.
Example
Import-Module ConsoleMonster
New-Terminal {
New-TerminalWindow -Title 'Maintenance action' {
New-TerminalText -Text 'Choose what to run' -Width 30 -X 4 -Y 2
New-TerminalRadioGroup -Text 'Preview', 'Apply', 'Cancel' -X 4 -Y 5
New-TerminalCheckBox -Text 'Write log file' -X 4 -Y 9
New-TerminalButton -Text 'Quit' -X 4 -Y 12 -Command { }
}
}
What this demonstrates
- grouping terminal controls in one window
- combining text, radio choices, checkboxes, and a button
- using a small interactive UI instead of positional console output