ansi.c

gurba-0.40/lib/cmds/player/ansi.c · 361 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

void main( string str ) {
  if( str == "on" || str == "On" || str == "1" ) {
    this_player()->set_ansi( 1 );
    out( "Turning on ANSI.\n" );
  } else if( str == "off" || str == "Off" || str == "0" ) {
    this_player()->set_ansi( 0 );
    out( "Turning off ANSI.\n" );
  } else {
    out( "Usage:\nansi <on/off>\n\nTurns on or off ANSI support.\n" );
  }
}

Site Stats

Snippets: 1791
Codebases: 571