-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
🐞 Terminal edges bleed if height is not a multiple of the line height #615
Comments
@austincondiff could you provide a more in-detail description and what you did to get this error? That would help me fix it. |
Simply open the integrated terminal. If you have any kind of background to your line like in powerline, you will see some stretching at the bottom. |
@austincondiff thanks |
@austincondiff I was looking inside the source files for the |
@SwiftUILabs : UI Bugs could be tricky at all time. I will take a glimpse of it when I am free. |
@austincondiff How do you open the terminal? I don't see it anywhere in the UI. |
@jevonmao To open the terminal click the rectangular symbol at the bottom right of the window. |
I don't have the bottom bar, building with main branch. |
@jevonmao Can you post a screenshot of what you are seeing? |
@austincondiff I think he didn't open the full-featured UI by opening a file and not a folder. @jevonmao Unfortunately I couldn't make a tutorial, my Xcode is updating. Instead, I added step-by-step instructions below.
|
Yes that worked! |
@jevonmao Good to hear. Have fun using the app! |
@SwiftUILabs The issue lies somewhere within SwiftTerm - the library |
@lukepistrol I'll do that now |
@maxsuaudeau Please reference it here if you can |
@austincondiff sure |
Hello folks, Would love to track each of these rendering defects in SwiftTerm independently. I can give some guidance on the first one about “bleeding”. This is sadly a choice, I am also a fan of not bleeding, but as you can see in the history or commits and bugs, it is not a settler problem: some like it one way, some like it the other. one solution to please everyone is to snap the window size to the character sizes, so there is no room for bleeding or for drawing with the background character. This is not always possible, but it is something that you might want to look into. There are some band aids that could help, like changing the rendering code to always draw at the bottom; and that could help for console sessions but would trigger the bug on top for full screen apps or apps using colors on top. As for the other issues, would love to track those separately. I am gone for the next 10 days, but can look at those when I am back |
@migueldeicaza Snapping is a great idea even if we snap the contained view instead of the resizable drawer itself. We would just need to get the height of its container and see how many whole line heights will go into it. Then we would just multiply that number by the line height and set that height to the contained terminal view. About everything else, as mentioned, we are in no hurry and can wait until you have time. Thanks! |
Should be resolved once #1117 is merged |
Description
The bottom line seems to bleed to the edge if the terminal view height is not an even multiple of the terminal text line height.
To Reproduce
Resize the terminal in between multiples of the line height and you will see color bleeding for characters that take up the full height.
Expected behavior
Potential solution
We might solve this by "snapping" the terminal view height to only multiples of the terminal text line height per @migueldeicaza's comment below.
The text was updated successfully, but these errors were encountered: