I've been fiddling with various bits of code lately, and OasisOLC happens to be one of them. OasisOLC uses a version of the Screen Clear sequence to clear the screen so that the "menus" are plainly visible without having to see previous menus. But while testing it on various clients, I've noticed that MUSHClient (version 4.40) Will parse out the code and then appears to ignore it. Where Telnet and zMUD will parse it and clear the screen before displaying the next set of output.
An example from a Smaug port of OasisOLC (in a slightly modified version of SmaugFUSS.):
The code I'm currently fiddling with is for a Menu-esque based Character creation sequence that makes use of the screen clear sequence to simulate a sort of Computer interface. For example:
As I said, zMUD and Telnet both handle this sequence in the expected manner. While MUSHClient 4.40 appears to just ignore the sequence. Is there anything special I need to do code-wise, or in the client to get it to register and react in the expected fashion or is this something that MUSHClient just isn't built for?
It's not a terribly huge deal if it doesn't work for people using MUSHClient, or really for any client, but I found it to be rather humorous and figured I'd make use of the code in the only place I could think of. As an aside, GMud handles it in a much more.. grotesque manner, even going so far as to display a partially parsed version of the sequence.
An example from a Smaug port of OasisOLC (in a slightly modified version of SmaugFUSS.):
void medit_disp_sex( DESCRIPTOR_DATA *d )
{
write_to_buffer( d, "50\x1B[;H\x1B[2J", 0 ); //This is the screen clear
d->character->print( " &[olc1]0&[olc6]) &[olc2]Neutral\r\n" );
d->character->print( " &[olc1]1&[olc6]) &[olc2]Male\r\n" );
d->character->print( " &[olc1]2&[olc6]) &[olc2]Female\r\n" );
d->character->print( "\n\rEnter gender number : " );
}The code I'm currently fiddling with is for a Menu-esque based Character creation sequence that makes use of the screen clear sequence to simulate a sort of Computer interface. For example:
write_to_buffer( d, "\x1b[2J\x1b[H", 0 );
send_to_desc_color( "\r\n&r+&z---------------------------------------------------------------------------&r+&D\r\n", d );
send_to_desc_color( "&z|&w Input Accepted. Verifying. &z|&D\r\n", d );
send_to_desc_color( "&r+&z---------------------------------------------------------------------------&r+&D\r\n", d );As I said, zMUD and Telnet both handle this sequence in the expected manner. While MUSHClient 4.40 appears to just ignore the sequence. Is there anything special I need to do code-wise, or in the client to get it to register and react in the expected fashion or is this something that MUSHClient just isn't built for?
It's not a terribly huge deal if it doesn't work for people using MUSHClient, or really for any client, but I found it to be rather humorous and figured I'd make use of the code in the only place I could think of. As an aside, GMud handles it in a much more.. grotesque manner, even going so far as to display a partially parsed version of the sequence.