Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / DBP Simple Console

Author
Message
JerBil
21
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 7th Mar 2006 04:45 Edited at: 7th Mar 2006 04:48
Here is an example of a simple console. All console vars are Typed
so they will be unique to the console. In this case, press the "`"
(Tilde) key to drop/raise the console.

Set Con.S_Flag = 1 if your main program uses sync, 0 if not.
Con.Red,Con.Green and Con.Blue can set Console Screen Color,
and each would be 0-255.

Var Con.In will hold the entire command to be parsed. In
this example it is set to "" at each line-feed.
Con vars are Global, and it should be easy to add to them.

The console will show the last 8 lines entered.



-JerBil

Ad Astra Per Asper

Login to post a reply

Server time is: 2025-05-15 15:51:23
Your offset time is: 2025-05-15 15:51:23