write_to_buffer( d, "\x1bwrite_to_buffer( d, "\x1b[2J\x1b[H", 0 );[/code]
This is from a SMAUG code, so your syntax might be different, but the clear screen should still be the same.
write_to_buffer( d, "\x1bwrite_to_buffer( d, "\x1b[2J\x1b[H", 0 );[/code]
This is from a SMAUG code, so your syntax might be different, but the clear screen should still be the same.[/quote]
Absolutely brilliant. Thank you a thousand times!
I just downloaded QuickMUD (I am using Cygwin) and am having fun messing around with it. I know next to nothing about coding and I have just been customizing the login experience and things like that. Here is what I am having trouble doing:
Right after a new character selects a password and you go to the race menu, I would like the screen to clear and have the race options at the top of a brand new screen, instead of continuing on the same screen. I have looked around for "C++ clear screen" for a few hours and nothing has really helped. I got a system call of clear or cls to sort of work… but it cleared my cygwin window instead of inside the game. And from what I've read system calls are a huge security no no.
Can anyone help me to get a new screen going for the race menu? That's all I've been trying to do for hours and it's blowing my mind! Yeah I know it's sort of pointless but once I get going on something I have to figure it out before I can move on to something else. :) Thanks for your help.
Eithon