Inspired by OpenConsole

BlitzMax Forums/BlitzMax Programming/Inspired by OpenConsole

ozak(Posted 2006) [#1]
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!



Perturbatio(Posted 2006) [#2]
' Thanks to OpenConsole guy (forgot name)


That would be me :)


ozak(Posted 2006) [#3]
Ahh right. Thanks to Perturbatio for the OpenConsole source :)


Booticus(Posted 2006) [#4]
Can I get an example of usage of this? I know I know, I'm failing the IQ test here. Thaaaaaanks!


ozak(Posted 2006) [#5]
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.