-
Notifications
You must be signed in to change notification settings - Fork 42
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
Text bleeds from one widget to another #100
Comments
Do you have your code on github or somewhere where I could take a look? It shouldn't be bleeding over like that obviously, so I'm wondering what could be causing it. As for your other question, I've been working on a feature where you can display logging utilities as an overlay over the UI. But for now, the way you could do it is to write to a file, and have another window that simply watches the file and prints any new messages. Edit: For future reference the overlay logging message printing is tracked here |
Hello, The UI overlay sounds awesome; in the meantime, I’ll try to implement your workaround. Yes, here’s the repository: https://github.com/Laanan/Slither/tree/master if you use your Gmail account, you’ll need an app password. Thanks very much for the response and any help you can provide 👍🏼! |
Hi, any chance you were able to take a look at my code? |
Yes, sorry, I forgot to follow up on this. Basically, the issue is that for some reason the subjects of certain emails seem to have carriage returns embedded in them, which causes a line break to happen. I added the following to the end of the
and then, after opening my message box and exiting the TUI, I got the list of subjects, and a few of them (the ones that displayed the issue) had the carriage return in them: As for why this goes away when the mailbox widget is in focus - the in-focus widget is always drawn last to make sure that any changes made are reflected in it, so likely the overlap is always there, but the widget is drawn over it. |
Hi, thank you so much! Yes, getting rid of those carriage returns did the trick. My next step is to decode any messages coming in as UTF8.
|
At some point this should be revisited to not allow carriage returns by default, but for now I think we can consider this issue closed. |
Describe the bug
I am making a simple IMAP client. I have two widgets, one for listing mailboxes, and one for listing messages in the mailboxes.
When the messages are displayed, parts of the messages bleed over into the mailboxes widget to the left. When I change focus back to the mailboxes widget, the bled over messages vanish, and when I refocus to the messages widget, they return.
Expected behavior
I expect the text in the widget to stay within the bounds of the widget.
Environment:
** Sidebar/newbie question**
Would someone kindly explain how I can see the output of a print(variable) or the response from the IMAP server in a separate buffer/screen than the one displaying the CUI? I tend to use Screen and flip flop back and forth between my editor (Kaa Edit) and a venv shell from which I execute the script. Any advice would be greatly appreciated, and sorry for the stupid question. Just trying to be better able to assess what is going on inside my script when it is "working."
The text was updated successfully, but these errors were encountered: