Open grnt426 opened 6 months ago
I'm not sure I can do anything about that, unfortunately. I recommend the ASCII border set in that case, or changing the font?
How can the font of a VirtualTerminal be selected? I don't see the option inside VirtualTerminal
, Session
, or Section
.
@grnt426 did you ever resolve this issue on your end, with the recommendation for changing the font?
I too have this issue. I don't know what to set the font to. It wants a path.
@ShawSumma it's been a while. I believe you put a ttf inside your resources for and the path is to that file, relative to the resource root. So probably something like "fonts/ex.ttf"
Thanks for the suggestion. That sounds right.
Describe the bug Virtual terminals on Windows 10 incorrectly calculate the length of bordered text, causing the header and footer to be shorter than expected.
To Reproduce
build.gradle.kts
Main.KT
Expected behavior After bundling the above application into a jar and executing it on Powershell 7.4.1, I see the below
Screenshots When running inside a virtual terminal launched from IntelliJ, or forcibly launched from the Jar with the
session(terminal = VirtualTerminal.create())
option, it renders with incorrect length calculated for the header and footer.Desktop (please complete the following information):
Additional Notes: I included the text from Powershell as it formatted and displayed correctly, however I couldn't get the text copied out of the virtual terminal (is that possible?), so included only screenshots. I can include screenshots of the correct Powershell 7 behavior if requested.