New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Virtual Terminal Incorrectly Sizes Border #105
Comments
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 |
kotter/kotter/src/jvmMain/kotlin/com/varabyte/kotter/terminal/virtual/VirtualTerminal.kt Line 92 in 6217380
|
@grnt426 did you ever resolve this issue on your end, with the recommendation for changing the font? |
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.
The text was updated successfully, but these errors were encountered: