-
Notifications
You must be signed in to change notification settings - Fork 26
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
Why are all the messages in "reverse" order? #47
Comments
Hi @brunobord, My first try was to make it as you say: from top to the bottom, but I found a limitation in Anyway, I tried this several months ago, and I do not know if |
oh. that sounds very tricky :/ |
There is a related issue in |
Maybe you can manually split the user input it if its longer than the screen width, and make a variable to track the total number of lines that message is going to take, and by doing this for all the messages and adding them to the variable, you can get an offset by subtracting the message panel height by this length if the length is greater, and use that offset for the scroll method in the paragraph widget, might work 🤔 |
I think that the main problem resides here. How do you know to split a message (or a paragraph) into lines? It could contain Unicode characters that can be represented with different widths and depending on if the last word fits in the line it could be moved to the following line. To be sure you split all possible messages correctly, you need to "replicate" exactly the internal algorithm that tui uses to render a paragraph into lines :( |
Oh, fair enough |
Actually, my preferences would be the current implementation, the newest on top ;-) |
Hello. And first of all, thank you for this very nice litte tool, really interesting.
I was a bit puzzled by the order of the ordering of the messages, that are stacked upon each other, from the newest to the oldest, while it looks more familiar and more readable to have them the other way around. When you read from top to bottom, you expect the question before the answer, for example, or the event announcing that someone is connected before their firs message, etc.
Would it be possible to reverse the order of the messages, or, even better, to have an optional parameter to make your choice if you prefer the top-down or bottom-up display?
The text was updated successfully, but these errors were encountered: