Inspired by OpenConsole
BlitzMax Forums/BlitzMax Programming/Inspired by OpenConsole
| ||
Not a total ripoff though. Mostly rewritten with more features/simpler interface. Just call Init, then Update in your main loop. Update will check the TAB key. New features are: Two consoles, an active and a passive, execute console script files, dump console to file, easier command add/execute, default commands: clear, echo, exec, dumpconsole, cmdlist. Small test script you can 'exec' echo Hello! echo This is an executed test script! clear passive echo Cleaned passive console yeah! |
| ||
' Thanks to OpenConsole guy (forgot name) That would be me :) |
| ||
Ahh right. Thanks to Perturbatio for the OpenConsole source :) |
| ||
Can I get an example of usage of this? I know I know, I'm failing the IQ test here. Thaaaaaanks! |
| ||
Yep. In your max2D based application, create an instance of TConsole. Then call Init(width, height) Then just call Update in your main loop. Press TAB to enter the console and type cmdlist. See the bottom of the source file for examples on how to add your own commands. |