summaryrefslogtreecommitdiff
path: root/Dalos/Dalos.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Dalos/Dalos.cc')
-rw-r--r--Dalos/Dalos.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/Dalos/Dalos.cc b/Dalos/Dalos.cc
index 6ab2153..bbfdadf 100644
--- a/Dalos/Dalos.cc
+++ b/Dalos/Dalos.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Dalos.cc,v 1.12 2004-12-26 03:29:10 pixel Exp $ */
+/* $Id: Dalos.cc,v 1.13 2004-12-27 18:46:43 pixel Exp $ */
#include <SDL.h>
#include <SDL_thread.h>
@@ -48,6 +48,8 @@
#define main SDL_main
#endif
+
+// all these global variables are ugly...
bool auto_exec = true;
bool lua_started = false;
bool do_lua_break = false;
@@ -196,7 +198,7 @@ class myprinter : public printer_t {
SDL_mutexP(lock);
- vsprintf(buffer, m, ap);
+ vsnprintf(buffer, 20479, m, ap);
if (level >= 0)
CurrentConsole->add_line("(" + heads[level] + ") " + buffer);
else
@@ -322,7 +324,8 @@ virtual int startup() throw (GeneralException) {
CurrentConsole = new console(sh, Root, 0, 8);
console::create_console_thread();
CurrentConsole->move(0, Root->GetH() - CurrentConsole->GetH());
- CurrentConsole->add_line("Dalos v0.1 - LUA console");
+ CurrentConsole->add_line("Dalos v0.1 - LUA console - Press ESC to show/hide it.");
+ CurrentConsole->SetVisible(true);
printer = new myprinter();
locker = new threaded_locker();