diff --git a/chrome/content/vimperator/ui.js b/chrome/content/vimperator/ui.js
index 90d35af8..7e3b5fc3 100644
--- a/chrome/content/vimperator/ui.js
+++ b/chrome/content/vimperator/ui.js
@@ -74,6 +74,9 @@ function CommandLine() //{{{
var prompt_widget = document.getElementById('vimperator-commandline-prompt');
// The command bar which contains the current command
var command_widget = document.getElementById('vimperator-commandline-command');
+ // The widget used for multiline in-/output
+ var multiline_widget = document.getElementById("vimperator-multiline");
+ multiline_widget.contentDocument.body.setAttribute("style", "margin: 0px; font-family: -moz-fixed;"); // get rid of the default border
// we need to save the mode which were in before opening the command line
// this is then used if we focus the command line again without the "official"
@@ -130,7 +133,20 @@ function CommandLine() //{{{
// Sets the command - e.g. 'tabopen', 'open http://example.com/'
function setCommand(cmd)
{
- command_widget.value = cmd;
+ // FIXME: very simple, buggy version as of yet, just a tech-demo --mst
+ //multiline_widget.contentDocument.designMode ="on";
+ // multiline
+ if (cmd.indexOf("\n") > -1 || cmd.indexOf("\\n") > -1 || cmd.indexOf("
") > -1 || cmd.indexOf("
") > -1)
+ {
+ multiline_widget.collapsed = false;
+ cmd = cmd.replace(/\n|\\n/g, "
") + "
Press ENTER or type command to continue";
+ multiline_widget.contentDocument.body.innerHTML = cmd;
+ }
+ else
+ {
+ multiline_widget.collapsed = true;
+ command_widget.value = cmd;
+ }
}
function addToHistory(str)
diff --git a/chrome/content/vimperator/vimperator.js b/chrome/content/vimperator/vimperator.js
index 52087736..2171a18b 100644
--- a/chrome/content/vimperator/vimperator.js
+++ b/chrome/content/vimperator/vimperator.js
@@ -40,7 +40,7 @@ window.addEventListener("load", init, false);
function init() //{{{
{
- window.dump("in init\n");
+ window.dump("Vimperator init\n");
// init the main object
vimperator = new Vimperator;
vimperator.log("Initializing vimperator object...", 1);
@@ -315,7 +315,7 @@ function Vimperator() //{{{
*/
this.log = function(msg, level)
{
-// if(Options.getPref("verbose") >= level) FIXME: hangs vimperator
+ // if(Options.getPref("verbose") >= level) // FIXME: hangs vimperator, probably timing issue --mst
console_service.logStringMessage('vimperator: ' + msg);
}
diff --git a/chrome/content/vimperator/vimperator.xul b/chrome/content/vimperator/vimperator.xul
index 26093e47..59a6ba20 100644
--- a/chrome/content/vimperator/vimperator.xul
+++ b/chrome/content/vimperator/vimperator.xul
@@ -101,6 +101,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
onblur="vimperator.commandline.onEvent(event);"
style="font-family: monospace; -moz-user-focus:ignore;"/>
+