You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to how the information is written (first the image, then each function output to the right), if the console height is too small and auto-scrolls with output, the function output will start being written at $img.length - [Console]::WindowHeight, sometimes being cut off depending on the terminal being used. This is usually seen in terminals with limited space like the terminal within an IDE.
The information and image should always be aligned, regardless of the console size.
Actual Behavior
The information column is mis-aligned when the terminal window height is smaller than the image height. This is due to the order of events. The image $img is drawn, then the cursor is moved back to the top to its right with Write-Output "$e[$($img.Length + 1)A".
If there's a way to move the cursor in such a way independent of the terminal size or where it's scrolled, that would be ideal. About everything is done with VT control codes in winfetch, but there are plenty of .NET methods in [Console] that might be used.
The text was updated successfully, but these errors were encountered:
Description
Due to how the information is written (first the image, then each function output to the right), if the console height is too small and auto-scrolls with output, the function output will start being written at
$img.length - [Console]::WindowHeight
, sometimes being cut off depending on the terminal being used. This is usually seen in terminals with limited space like the terminal within an IDE.Examples
Windows Terminal, squashed down to a height of 13
VS Code
Then, after entering another command and re-sizing the terminal, some lines repeated (~line 17):
Expected Behavior
The information and image should always be aligned, regardless of the console size.
Actual Behavior
The information column is mis-aligned when the terminal window height is smaller than the image height. This is due to the order of events. The image
$img
is drawn, then the cursor is moved back to the top to its right withWrite-Output "$e[$($img.Length + 1)A"
.If there's a way to move the cursor in such a way independent of the terminal size or where it's scrolled, that would be ideal. About everything is done with VT control codes in winfetch, but there are plenty of .NET methods in [Console] that might be used.
The text was updated successfully, but these errors were encountered: