Skip to content

Terminal text is cleared after calling Out-ConsoleGridView #260

@c3rberus

Description

@c3rberus

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Hello,

I am using Out-ConsoleGridView in my PowerShell script, and I noticed that whenever I call ocgv, any text that was on my terminal before this, is wiped out, similar to calling clear-host before outputting anything selected from ocgv.

Is there any way to call ocgv and preserve the text in the terminal that was there before?

Expected behavior

Write-Host "Hello World!"
echo "123" | ocgv

Hello World!
123

Actual behavior

Write-Host "Hello World!"
echo "123" | ocgv

123

Error details

Environment data

PS C:\Oppy\AdminTools_v2> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Microsoft Windows 10.0.20348
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

0.7.7

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions