Cuberite Forum

Full Version: Learning C++/lua
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
You mean in a console application?
Try issuing the command "cls" I think in C++ you can do:
Code:
System("cls");

not sure tho
i already saw that but many people say it is unsafeTongue
I don't think it's unsafe. The point is that it's only compatible with windows
It's as unsafe as running external programs can be - if someone puts a malicious cls.exe with your app, your app will run that instead of the system cmd.
Ah, that makes senseTongue Didn't think of that, good one
Hmm, maybe you could try some sort of "curses" like thing for windows.
If you're aiming just for windows support, then find an WinAPI call(s) to clear the console:
http://support.microsoft.com/kb/99261
for anyone who wants to learn Lua, the mod Computercraft (http://www.minecraftforum.net/topic/8922...-monitors/) is a realy fun way of trying to learn it.
i learned allot from it.
Sethblings programming tutorials are also very usefull (episode 1: http://www.youtube.com/watch?v=DSsx4VSe-Uk)
You can compile Lua to standalone executable ;O Thats pretty awesome Smile
Actually that's the primary mode of distribution for Lua. It even has a plugins system that way, I believe it is called LuaRocks; you can download and install various packages for quite a lot of functionality - sockets, db access, xml parsing...
Pages: 1 2 3 4