Skip to content

Commit

Permalink
Adding Host Types/Formatters
Browse files Browse the repository at this point in the history
Fixes #26 Fixes #27
  • Loading branch information
StartAutomating authored and StartAutomating committed Jul 20, 2023
1 parent 9492f79 commit 23807ca
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Posh.types.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-16"?>
<!-- Generated with EZOut 2.0: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
<Types>
<Type>
<Name>Posh.Host</Name>
<Members>
<ScriptProperty>
<Name>Height</Name>
<GetScriptBlock>
&lt;#
.SYNOPSIS
Gets the height of the host
.DESCRIPTION
Gets the height of the host (in characters).
.EXAMPLE
$posh.Host.Height
.EXAMPLE
$Host.Height
#&gt;
$this.UI.RawUI.BufferSize.Height
</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Width</Name>
<GetScriptBlock>
&lt;#
.SYNOPSIS
Gets the Width of the host
.DESCRIPTION
Gets the Width of the host (in characters).
.EXAMPLE
$posh.Host.Width
.EXAMPLE
$Host.Width
#&gt;
$this.UI.RawUI.BufferSize.Width
</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
</Types>

0 comments on commit 23807ca

Please sign in to comment.