[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Character \b

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Character \b

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Pages: 1  2 

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #15 on Sat 08 Jan 2005 12:32 AM (UTC)  quote  ]

Amended on Sat 08 Jan 2005 12:33 AM (UTC) by Flannel

Message
I think defining a backspace as only being able to delete things on the same line is fine. Once a line has been finished with a newline, too bad. Your mud server is severely messed up, and you should take it up with your admins.

The question next is styles. Are they entities to be backspaced independantly? I would think not, since they arent characters being displayed. But do you erase it when the former character or with the latter character?
This would be for styles, MXP entities, and everything of that sort.
I would think it'd be when the character infront of it gets erased. A(style)B would cause the style to get erased when A is erased, or more specifically, the space in between the characters, which is where the style is anyway and seems to make more sense with MXP and such.

I would like to see the functionality be passed to plugins, in one form or another. But as to what the function is going to be, I really dont know. There are a couple ways to do it.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #16 on Sat 08 Jan 2005 12:47 AM (UTC)  quote  ]
Message
Why do we care much about styles? That is, why would the MUD server try to erase a style, especially an MXP one? I think it should be fine to just make it undefined behavior whenever a an attempt to erase a style is made.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Shadowfyr   USA  (1,774 posts)  [Biography] bio
Date Reply #17 on Sat 08 Jan 2005 05:05 AM (UTC)  quote  ]
Message
In my experience, applications treat the first character in a sequence as 'belonging' to the style, so if you had:

<grey>This is <blue>Fred\b\b\b\bWilma.\n

What you finally end up with is:

<grey>This is Wilma.\n

All in grey. You don't erase the style seperately, it is 'attached' to the first character in the line it effects. This, again, would be do to the transition from teletype to eventually Ansi and telnet. In the first terminals that allowed any sort of style or even color, they where literally physically coded into the display memory like:

@4This like is color 4$

Though, the @ and $ would have been unprintable characters. When Ansi emerged, the 'end of style' part got dropped, but the @4 like part remained. The reason being that each individual character was stored as two bytes, one to define the style, the second to define the letter. When you sent '^[[32m' to it, it automatically set each following characters 'style' to that color. So, when you used \b, it erased 'both' the letter and the style that was defined for the last memory address. Since Ansi was specifically developed to be used this way on such terminals, as was VT-52, VT-100, et al, the 'expected' behaviour is for the color/style information to be removed at the same time the letter you erase is. This is also why I am fairly sure backspace can't span lines, the terminals the standard was developed for wouldn't have likely allowed it. \b past the first part of the line and you would end up at the 80th column on the right of the display, not the 'end of line', since no special character was likely used in to designate where that was.

The newline would not likely, if used at all have been treated as a character itself, but merely the end of the 'visible' and thus erasable characters. However, that doesn't mean I am right about it. I am 99.9% sure of the color/style issue, but only about 70% sure of the newline one.

main {
__if (Schrodinger_Cat is Alive or version >= "XP"){
____if version = "Vista" then Performance /= Number_of_Cores;
____call Functional_Code();}
__else
____call Crash_Windows();}
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #18 on Sat 08 Jan 2005 07:29 AM (UTC)  quote  ]

Amended on Sat 08 Jan 2005 07:32 AM (UTC) by Greven

Message
Quote:
Greven, what you could do to handle this case of the "timer display" is detect the specific sequence, and omit it from the packet altogether, eg. match on:


Processing: |


You would delete that part entirely, and show it on the status line.

Then when you get a second packet:


\b /


You would also delete that, but update the status line, and so on until the sequence ends.
Thanks alot for the suggestion Nick. Never meant this as something large, was just curious about it. Honestly, its not that important to me, and I think I use a very small portion of MUSHclients functionality as I do almost no playing on muds, strictly development, and have the rare occasion for triggers and such. Aliases are useful though :)

I use MUSHclient mostly because it supports almost all things that my mud does, like MCCP and MXP. I also thouroughly like the look, feel, and use of the client. After years and years of gmud the resizable input area was a god send. Plus I thouroughly despise zmud.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #19 on Sat 08 Jan 2005 07:04 PM (UTC)  quote  ]
Message
Thank you, Greven. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #20 on Sat 08 Jan 2005 07:11 PM (UTC)  quote  ]
Message
Hey, don't get me wrong either - I love MC as well (and think it's the best client, hence the recommendation for it on the BMud page!), I was just trying to make a small suggestion that I thought would be kind of neat. I didn't mean to have an argument or anything. :-)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] 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.


4,604 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]