diff options
| author | aura <nw@moneybot.cc> | 2026-08-11 19:10:16 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-08-11 19:10:16 +0200 |
| commit | 17c07b5f884453130d8be3a6d91d730d80d4f8ae (patch) | |
| tree | 6ec11e5e5f7f0be9ed899196c2897aa76a907de2 /src/util/console.cpp | |
| parent | 1aa17de9188790f049c0edc4281597cb4e535627 (diff) | |
| parent | 0a9d7ce6a0764a87766ebb23cc1ece4c26c8c678 (diff) | |
Merge remote-tracking branch 'origin/day'
Diffstat (limited to 'src/util/console.cpp')
| -rw-r--r-- | src/util/console.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/console.cpp b/src/util/console.cpp new file mode 100644 index 0000000..eee9030 --- /dev/null +++ b/src/util/console.cpp @@ -0,0 +1,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 ); |
