============== idConsoleLocal::Init ============== */
| 380 | ============== |
| 381 | */ |
| 382 | void idConsoleLocal::Init( void ) { |
| 383 | int i; |
| 384 | |
| 385 | keyCatching = false; |
| 386 | |
| 387 | lastKeyEvent = -1; |
| 388 | nextKeyEvent = CONSOLE_FIRSTREPEAT; |
| 389 | |
| 390 | consoleField.Clear(); |
| 391 | |
| 392 | consoleField.SetWidthInChars( LINE_WIDTH ); |
| 393 | |
| 394 | for ( i = 0 ; i < COMMAND_HISTORY ; i++ ) { |
| 395 | historyEditLines[i].Clear(); |
| 396 | historyEditLines[i].SetWidthInChars( LINE_WIDTH ); |
| 397 | } |
| 398 | |
| 399 | cmdSystem->AddCommand( "clear", Con_Clear_f, CMD_FL_SYSTEM, "clears the console" ); |
| 400 | cmdSystem->AddCommand( "conDump", Con_Dump_f, CMD_FL_SYSTEM, "dumps the console text to a file" ); |
| 401 | } |
| 402 | |
| 403 | /* |
| 404 | ============== |
nothing calls this directly
no test coverage detected