/* Just a small snippet to give something back. Got the idea from the ROM
* Mailing List archives.
*
* No need to credit me or even email me if you use this snippet.
* Just leave my comments in please :)
*
* Clear screen snippet: Coding level: Easy
*
* This command will allow your players to clear the screen on thier client should they so choose.
*/
/*act_comm.c*/
/*Clear screen command by -- Leviticus*/
void do_clear (CHAR_DATA * ch, char *argument)
{
send_to_char ("\x01B[2J", ch);
}
/*interp.c*/
"clear", do_clear, POS_DEAD, 0, LOG_NORMAL, 1}, /*Leviticus*/
/*interp.h*/
DECLARE_DO_FUN( do_clear ); /*Leviticus*/
I use
send_to_char ("\x01B[2J", ch);
and
send_to_desc ("\x01B[2J", ch);
in my code for quite a few different things.
I find it very useful during character creation.