Skip to content

Clear-Host only when differences #4

@ZHider

Description

@ZHider

I am using the watch-command module to track changes in catalog files. I've noticed that with the -ClearScreen parameter, the screen is cleared every time a comparison is made. And if the object being compared is not updated as fast as the wc-command comparison, the entire terminal is empty in the one loop where the object being compared has not changed.
So I would like to clear-host only when there is a change in the comparison, and then output the result.

I'm a beginner in powershell, so if you have any questions, feel free to ask, thanks!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions