summaryrefslogtreecommitdiff
path: root/src/util/console.cpp
blob: eee90300943e8a1c1773456288e8746f397bc66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "console.h"
#include "../game.h"

extern GAME_DATA* game;

I32 console_clear_cb( CVAR *self, LIST<STR> cmdline ) {
  if( !game )
    return 0;
  return console_clear_output( &game->console );
}

CVAR* g_clear = var_new( "clear", "clear console output window", &console_clear_cb );