Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Bug reports
➜ MUSHclient does not re-wrap already outputted text when you resize a window
MUSHclient does not re-wrap already outputted text when you resize a window
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Metaxy
(28 posts) Bio
|
Date
| Wed 27 Nov 2002 09:14 PM (UTC) |
Message
| If I have one very long line, and MUSHclient is small, if I maximize it after the line has been outputted MUSHclient will not make use of all available space. Likewise, if I shrink a window previously outputted text will go past the edge of the screen rather than re-wrapping. Even if I have MUSHclient set to change the wrap width automatically whenever the window is resized. First, is there any way to cause MUSHclient to re-wrap already outputted text automatically, and failing that, is there a way to cause it to do that by hand? | Top |
|
Posted by
| Vaejor
(120 posts) Bio
|
Date
| Reply #1 on Wed 27 Nov 2002 11:06 PM (UTC) |
Message
| My understanding is that each specific line is stored in the buffer at the length determined at the exact point when it arrived. Lines that are wrapped are also stored as multiple lines inside of mushclient without any information stating that it's important to any other line. Allowing for this change would require changing how this works(and I'm guessing it does it this way for a specific reason).
This is probably wrong at least in part, but Nick can clean up any incorrectness.
| Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Thu 28 Nov 2002 02:01 AM (UTC) |
Message
| Vaejor is correct. The wrapping is done as lines arrive, primarily for speed reasons. For a start, many MUDs (but not all, I know) use fixed 80-column width descriptions, so rewrapping at different widths just looks silly. Either lines break too soon, looking like some emails I get where lines break halfway along every line, or alternatively with heaps of blank space on the right of everything.
To rewrap as you resized a window, particularly if you had thousands of lines, would be quite time-consuming.
However what you *can* do is copy text from the window, paste it into somewhere that supports dynamic wrapping (eg. the notepad window) and then wrap to your heart's content. However doing it that way will lose the colour information.
When you copy lines MUSHclient remembers which lines had "hard" returns and preserves that, so that the lines will rewrap correctly.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Metaxy
(28 posts) Bio
|
Date
| Reply #3 on Thu 28 Nov 2002 04:40 AM (UTC) |
Message
| How about adding a feature to re-wrap the entire world text when you resize the window, or to a user-specified width? I guess that makes this a feature request now :) | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #4 on Sat 30 Nov 2002 01:39 PM (UTC) |
Message
| I usuallu have about 300,000 lines in my memory buffer (not buffer capacity, i actually get 300,000 lines). Imagine having to resize all that, it'd take a week. And I wouldn't want to lessen my output buffer, i like scrolling back hours before :) |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Metaxy
(28 posts) Bio
|
Date
| Reply #5 on Sun 01 Dec 2002 12:02 AM (UTC) |
Message
| I guess you're right. How about having an option to re-wrap the world text on the fly as you scroll? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #6 on Sun 01 Dec 2002 09:14 PM (UTC) |
Message
| Ugh. The problem with that is knowing which line you are at. Why do you need that? Well, say you drag the scroll thumb to the half-way mark and let go. MUSHclient now needs to display the line that is 50% of the way through the buffer. But if it has to re-wrap on the fly it doesn't know which line that is until it rewraps them all. For example, if you had 100-character line widths, and changed to 50-character, then a lot of lines would wrap a lot sooner (but not the short ones) so it would be impossible to know which was line was, say line number 150,000 out of 300,000 lines.
Doing rewrapping on-the-fly is why certain word processing programs are - shall we say - sluggish, when you are editing large documents. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
20,969 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top