GraphicalTools: get-history | Out-ConsoleGridView with multi-line commands causes issues
Start with:
$someJson = @'
{
"foo" : true
}
'@
Then
get-history | Out-ConsoleGridView
Results in something ugly like this:
Powershell 7.0.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Fixed #58: Multi-line commands rendering wrong — committed to tig/GraphicalTools by tig 4 years ago
- Fixed #58 - Newlines in commands render incorrectly — committed to tig/GraphicalTools by tig 4 years ago
- Resize filter (#83) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme * Update src/Microsoft.PowerShell.Co... — committed to PowerShell/GraphicalTools by tig 4 years ago
- Upgrade to Terminal.gui 0.81.0 (#84) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme * Update src/Micros... — committed to PowerShell/GraphicalTools by tig 4 years ago
- Leverage 'StatusBar' instead of the 'Menu'. (#85) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme ... — committed to PowerShell/GraphicalTools by tig 4 years ago
- ENTER now moves to list if on filter (#98) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme * Updat... — committed to PowerShell/GraphicalTools by tig 4 years ago
- Update out-consolegridview to Terminal.Gui 89.4 (#106) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme *... — committed to PowerShell/GraphicalTools by tig 4 years ago
- OCGV - Fixes OutputMode Single (#107) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme * Update src... — committed to PowerShell/GraphicalTools by tig 4 years ago
- Adds Filter switch (#110) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme * Update src/Microsoft.PowerSh... — committed to PowerShell/GraphicalTools by tig 4 years ago
- Upgrade to latest Terminal.Gui nuget (#114) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme * Upda... — committed to PowerShell/GraphicalTools by tig 4 years ago
- Tighter columns & less rows (#115) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme * Update src/Microsof... — committed to PowerShell/GraphicalTools by tig 4 years ago
- Merge Tig Kindel's work (#166) * Fixed #58: Multi-line commands rendering wrong * Fixed #58 - Newlines in commands render incorrectly * Added debug instructions to readme * simplified stripping of... — committed to PowerShell/GraphicalTools by tig 2 years ago
Got it. Found https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_special_characters?view=powershell-7
I think following PowerShell syntax, it may make more sense to replace
\n
with`n
. Otherwise, this seems like a good improvement.Nevermind. Found it
$pid
.