New console functions

Posted By: Dark_samurai

New console functions - 02/02/11 10:09

Hi,

using the engine in console window (video_screen = 0) works great. But there are 2 important functions missing:
1) A function for clearing the content of the console
2) A function for making input in the console window (like scanf())

This would be very useful for server applications and small test programs.

Thanks!
Posted By: SchokoKeks

Re: New console functions - 02/02/11 10:20

yes, i need it a lot, too!
Posted By: jcl

Re: New console functions - 02/02/11 13:08

Ok, I think this can be relatively easily implemented.
Posted By: Quad

Re: New console functions - 02/02/11 19:57

In the mean time you can use this

include stdio.h and you can use scanf from lite-c with the console version of acknex.exe

there is a dll for printing to console with printf, you do not have to use that since the original printf prints to white screen. But then it makes 2 console like screens so you can start with -nwnd and use the original black console.

or you can print to white video_screen=0 with original printf and cprintf to print to real console.(you need to comment out or edit the 3rd(last) line of printf.h tough)

edit: and oh, of course, you can use this console wihout the video_screen 0, you can both have the console and the engine window
Posted By: Dark_samurai

Re: New console functions - 02/16/11 16:52

Thanks!
© 2024 lite-C Forums