diff options
| author | 2lag <96544487+2lag@users.noreply.github.com> | 2026-08-08 17:33:36 +0200 |
|---|---|---|
| committer | 2lag <96544487+2lag@users.noreply.github.com> | 2026-08-08 17:33:36 +0200 |
| commit | 2973df584978d9aae6f164ce0204179c8a28b3ae (patch) | |
| tree | c1b793c8e0d17aeb66c5197bc28acca84b2c98ab /src/util/console.cpp | |
| parent | e540910745aad31378452eec25aacfb3f346191a (diff) | |
console, textbox changes, some other shit
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 ); |
