Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #131 - Out-ConsoleGridView doesn't handle ANSI escape sequences correctly #154

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6af1903
Fixed #58: Multi-line commands rendering wrong
tig Mar 11, 2020
a69373e
Fixed #58 - Newlines in commands render incorrectly
tig Mar 11, 2020
f155262
Added debug instructions to readme
tig Mar 11, 2020
440833e
Update src/Microsoft.PowerShell.ConsoleGuiTools/ConsoleGui.cs
tig Mar 11, 2020
dd2e765
simplified stripping of newline/linefeed
tig Mar 12, 2020
e66f614
Merge branch 'master' of tig:tig/GraphicalTools
tig Mar 14, 2020
ebcb92f
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Apr 12, 2020
dce01c8
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Apr 17, 2020
a2c0238
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Apr 19, 2020
2184386
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Apr 19, 2020
668c5c5
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Apr 20, 2020
9d2c85a
Merge branch 'master' of tig:tig/GraphicalTools
tig May 13, 2020
d15fb38
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Aug 24, 2020
49b9559
Merge branch 'master' of tig:tig/GraphicalTools into master
tig Sep 25, 2020
4175dc0
Merge branch 'master' of tig:PowerShell/GraphicalTools into master
tig Sep 27, 2020
53b1203
Merge branch 'master' of tig:PowerShell/GraphicalTools into master
tig Sep 27, 2020
941cef7
Merge branch 'master' of tig:PowerShell/GraphicalTools into master
tig Sep 29, 2020
06c8a1f
Merge branch 'master' of tig:PowerShell/GraphicalTools into master
tig Sep 29, 2020
869b578
Merge branch 'master' of tig:PowerShell/GraphicalTools into master
tig Sep 29, 2020
1137d7d
Merge branch 'master' of tig:PowerShell/GraphicalTools into master
tig Oct 3, 2020
e965afd
Merge branch 'master' of tig:PowerShell/GraphicalTools into master
tig Oct 3, 2020
4188094
Merge branch 'master' of tig:PowerShell/GraphicalTools into master
tig Oct 5, 2020
797de5e
Merge branch 'master' of tig:tig/GraphicalTools into master
tig Oct 11, 2020
be4bea2
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Oct 21, 2020
85d8578
Merge branch 'master' of tig:tig/GraphicalTools
tig Oct 21, 2020
a03fc9b
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Nov 18, 2020
a54d7d3
Updated references to latest Terminal.Gui
tig Jun 3, 2022
7134c16
Fixed #131 and upgraded to terminal.gui 1.6, pwsh 7.2, and net60
tig Jun 3, 2022
cec80a4
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Jun 3, 2022
8daadd3
supported .net and reverted change
tig Jun 3, 2022
c50d504
Fixes #131 - Out-ConsoleGridView doesn't handle ANSI escape sequences…
tig Jun 3, 2022
c172968
Merge branch 'master' of tig:PowerShell/GraphicalTools
tig Jul 30, 2022
afc522a
merge
tig Jul 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"command": "/usr/local/bin/pwsh"
},
"windows": {
"command": "pwsh.exe"
"command": "C:/Program Files/PowerShell/7-preview/pwsh.exe"
},
"linux": {
"command": "/usr/local/bin/pwsh"
Expand Down
2 changes: 1 addition & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Invoke-Build Build -ModuleName Microsoft.PowerShell.ConsoleGuiTools

# Run what was built...
# pwsh -noprofile -command "Import-Module -verbose '$PSScriptRoot/module/Microsoft.PowerShell.GraphicalTools'; Get-Module -all | Out-GridView -OutputMode Single -Title 'Imported Modules'
pwsh -noprofile -command "Import-Module -verbose '$PSScriptRoot/module/Microsoft.PowerShell.ConsoleGuiTools'; Get-Module -all | Out-ConsoleGridView -OutputMode Single -Title 'Imported Modules' -Filter power"
pwsh -noprofile -command "Import-Module -verbose '$PSScriptRoot/module/Microsoft.PowerShell.ConsoleGuiTools'; Get-Module -all | Out-ConsoleGridView -OutputMode Single -Title 'Imported Modules'"
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ Now you're ready to build the code. You can do so in one of two ways:
PS ./GraphicalTools> Invoke-Build Build -ModuleName Microsoft.PowerShell.ConsoleGuiTools
```

From there you can import the module that you just built for example:
From there you can import the module that you just built for example (start a fresh `pwsh` instance first so you can unload the module with an `exit`; otherwise building again may fail because the `.dll` will be held open):

```powershell
pwsh
Import-Module ./module/Microsoft.PowerShell.ConsoleGuiTools
```

And then run the cmdlet you want to test, for example:

```powershell
Get-Process | Out-ConsoleGridView
exit
```

> NOTE: If you change the code and rebuild the project, you'll need to launch a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="Nstack.Core" Version="0.17.*" />
<PackageReference Include="Terminal.Gui" Version="1.6.*" />
<PackageReference Include="Terminal.Gui" Version="1.7.*" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.2.*" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
RootModule = 'Microsoft.PowerShell.ConsoleGuiTools.dll'

# Version number of this module.
ModuleVersion = '0.6.3'
ModuleVersion = '0.7.2'

# Supported PSEditions
CompatiblePSEditions = @( 'Core' )
Expand Down Expand Up @@ -105,6 +105,13 @@ PrivateData = @{

# ReleaseNotes of this module
ReleaseNotes = '# Release Notes
## v0.7.0

Upugraded to PS 7.2 and net60

Updated Terminal.Gui to 1.6

Fixed #131 - Strip ANSI

## v0.6.3

Expand Down
3 changes: 2 additions & 1 deletion src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System;
using System.Management.Automation;
using System.Management.Automation.Internal;
using System.Linq;
using System.Globalization;
using System.Collections.Generic;
using Microsoft.PowerShell.Commands;
using OutGridView.Models;
using System.Text.RegularExpressions;

namespace OutGridView.Cmdlet
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.2.1" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.2.*" />
</ItemGroup>

<ItemGroup>
Expand Down