diff --git a/scripts/core/cursor.js b/scripts/core/cursor.js
index 36621ec..6be0761 100644
--- a/scripts/core/cursor.js
+++ b/scripts/core/cursor.js
@@ -23,6 +23,7 @@ function Cursor()
{
this.position = position;
this.mode.mouse_down(position);
+ ronin.widget.update();
}
this.mouse_move = function(position)
@@ -35,5 +36,6 @@ function Cursor()
{
this.position = position;
this.mode.mouse_up(position);
+ ronin.widget.update();
}
}
\ No newline at end of file
diff --git a/scripts/core/init.js b/scripts/core/init.js
index 74b7242..db4fb28 100644
--- a/scripts/core/init.js
+++ b/scripts/core/init.js
@@ -23,4 +23,5 @@ var starting_canvas = new Rect();
starting_canvas.width = window.innerWidth - 200;
starting_canvas.height = window.innerHeight - 200;
+commander.query("~ "+ronin.timestamp());
commander.query("@ "+starting_canvas.render());
\ No newline at end of file
diff --git a/scripts/core/ronin.js b/scripts/core/ronin.js
index c5dddbb..e302ec5 100644
--- a/scripts/core/ronin.js
+++ b/scripts/core/ronin.js
@@ -41,4 +41,11 @@ function Ronin()
{
return new Position(p.x + parseFloat(ronin.surface.style.left) + parseFloat(ronin.canvas.element.style.left),p.y + parseFloat(ronin.surface.style.top) + parseFloat(ronin.canvas.element.style.top));
}
+
+ this.timestamp = function()
+ {
+ var currentdate = new Date();
+ var date = currentdate.getFullYear()+""+(currentdate.getMonth()+1)+""+currentdate.getDate();
+ return date+" "+currentdate.getHours()+":"+currentdate.getMinutes()+":"+currentdate.getSeconds();
+ }
}
\ No newline at end of file
diff --git a/scripts/modules/history.js b/scripts/modules/history.js
index dd7f748..719692f 100644
--- a/scripts/modules/history.js
+++ b/scripts/modules/history.js
@@ -2,21 +2,29 @@ function History(rune)
{
Module.call(this,rune);
- this.lines = [];
+ this.cmds = [];
this.active = function(cmd)
{
- console.log(this.lines);
+ var w = window.open('about:blank','source');
+ var html = "";
+
+ for (i = 0; i < this.cmds.length; i++) {
+ if(this.cmds[i][0] == this.rune){ continue; }
+ html += this.cmds[i]+"
";
+ }
+ w.document.write("