anchor.diff:  	}
   
   	if ( $mode[0] -ne 0 ) {
  -		[System.Console]::CursorLeft = $Host.UI.RawUI.WindowPosition.X;
  +		# Set the cursor to beginning of the line
  +		set-cursor $Host.UI.RawUI.WindowPosition.X $posY;
   	}
   
   	Write-Host -NoNewLine $s;
   
   	# Restore to the original cursor position
  -	[System.Console]::CursorTop = $posY;
  -	[System.Console]::CursorLeft = $posX;
  +	set-cursor $posX $posY;
   }
   
   # =========================================================================
  
positive.code: 		}
  	1 {
  		# clear from cursor to beginning of the screen.
  		[System.Console]::CursorTop = $Host.UI.RawUI.WindowPosition.Y;
  		[System.Console]::CursorLeft = $Host.UI.RawUI.WindowPosition.X;
  
  		$s = " " * ( $y * $w + $x );
  		Write-Host -NoNewLine $s;
  
negative.code: 	}
  
  	# Restore to the original cursor position
  	set-cursor $posX $posY;
  }
  
  # =========================================================================
  