Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Derar
Novice


Joined: 09 Sep 2006
Posts: 44

PostPosted: Thu Aug 05, 2010 6:40 pm   

[3.xx] End of Command Line + Show Column = Bad
 
Okay, this has been issue for me since 3.... something. It's been around a while. I'll be honest, really only recently started getting into the testing side of things here.

Anyway, it's happened on both XP & Vista boxes, so not a specific OS or CMud version problem.

Basically, if you turn on the "Show Column" option in Preferences->User Interface->Command Line and have Word Wrap on as well, everything is hunky dory until you get to the end of the line. Then this happens:



What you can't tell in that shot is that the little box there at the end between the 'w' and the '1' is actually flashing really fast showing a digit, usually.

So I took a screenshot, put it in paint, then switched back to the window and got this little gem:



CMud would usually show a black background for me there. Instead it ate my desktop background. Go figure.

As near as I can tell, what's happening is this: the column number is anchored on the right hand-side. As your counter increases from 1 to 2 to 3 digits, the field for it extends leftward. When you get to the end of the line, with Word Wrap active, CMud will push down to the second line, and reset the column counter. The problem is, there is a 1-2 character span where, say, your column counter is 3 digits, and after the word wrap, it's only 1 digit. The smaller column field means the word would still fit solely on the first line, and CMud gets confused, because then it puts it back up there, and then it doesn't fit, and then it does, and so on. So it gets stuck. And flashy. And weird.

Now, if you go ahead and keep typing, it's a non-issue. Once you get out of that 1-2 character span, you're fine again. But, if whatever you're putting in happens to finish in that span that makes stuff flashy, and you don't realize, and you hit enter to send it... CMud locks up and you can't do anything and have to end task in task manager. I'm not really sure why it has such a problem with it, but it does.

Long story short...

To reproduce:
1) Open blank session in CMud. You can do a maximized window or shrink it to save yourself some typing. Happens in both cases.
2) Make sure that 'Word-wrap Command Line' and 'Show Column' are both checked in Preferences->User Interface->Command Line.
3) Type until the end of the command line. Don't type past it, just right to the character there. Finish the line with a shortish word; if it's too long and sets the column counter to double-digit after the wrap as well as before, you won't see the issue.
4) Send the command and watch it, like, esplode.

To Fix:
Make the Show Column field a static three-character width. That should stop the resize from even occuring and prevent the whole problem.
You might want to look into why it makes CMud die in fire when you send the command though...

D
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Aug 05, 2010 7:51 pm   
 
I don't get the screen explosion but I do get the screen flashing artifact close to the end of the command line. It also prevents the the screen from updating.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Aug 06, 2010 1:27 am   
 
Confirmed and added to bug list. Your analysis is correct and your proposed solution is a good one.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net