Skip to content

Commit

Permalink
feat: Posh.Host.UI.Box.MiddleRight ( Fixes #366 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Feb 25, 2024
1 parent 20942f3 commit 3fadc8f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Types/Posh.Host.UI.Box/get_MiddleRight.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<#
.SYNOPSIS
Gets a box's Middle Right character
.DESCRIPTION
Gets the Middle Right character in a box
#>
$theseLines = @($this -split '[\r\n]+' -ne '')

if (-not $theseLines) { return }
$theLine = $theseLines[[Math]::Floor($theseLines.Length/2)]
$theLine.Substring($theLine.Length - 1)


0 comments on commit 3fadc8f

Please sign in to comment.