You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
Show dynamically updating OCGV while pipeline input is being received #209
Compare 1..5|%{Start-Sleep -Seconds 1;$_}|Out-GridView with 1..5|%{Start-Sleep -Seconds 1;$_}|Out-ConsoleGridView. OGV displays records as they are received (ProcessRecord) while OCGV shows records only at the end (EndProcessing).
Tig (@tig) I think this may be a choice to change how OCGV display the results. Instead displaying on the same terminal, it can be displayed on a separate terminal through using the ProcessStartInfo. If you using various OGV commands it'll open on separated terminals.
I'll take a closer look at how hard it would be to change OCGV to support this use case. I can't imagine any blockers.
Terminal.Gui now supports a TableView that was designed to support very large data sets, loaded dynamically. When OCGV was first developed this didn't exist and thus it uses ListView which is not great with huge amounts of data, and not ideally suited for dynamic updating. I have an ambition to re-factor OCGV to use TableView. This provides more motivation!
Reacted by Majid Maskati, ClauS, MindGirl and Rolf Bremer
Activity
tig commentedon Aug 7, 2023
Thanks Majid Maskati (@maskati). I didn't realize OGV did that!
Can you explain the use case for having the results show up dynamically?
BDisp commentedon Aug 7, 2023
Tig (@tig) I think this may be a choice to change how OCGV display the results. Instead displaying on the same terminal, it can be displayed on a separate terminal through using the
ProcessStartInfo. If you using various OGV commands it'll open on separated terminals.maskati commentedon Aug 7, 2023
Tig (@tig) anything where you are handling larger or slower to enumerate datasets, and when using the grid view as a filterable view of such records. See for example Stream Application Insights live metrics to a local PowerShell grid view.
tig commentedon Aug 7, 2023
Thanks for this!
I'll take a closer look at how hard it would be to change OCGV to support this use case. I can't imagine any blockers.
Terminal.Gui now supports a
TableViewthat was designed to support very large data sets, loaded dynamically. When OCGV was first developed this didn't exist and thus it usesListViewwhich is not great with huge amounts of data, and not ideally suited for dynamic updating. I have an ambition to re-factor OCGV to useTableView. This provides more motivation!Add Out-ConsoleTableView (octv) cmdlet using Terminal.Gui TableView