1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-14 11:05:47 +01:00

Much more advanced :echo[err] methods which can print objects/etc. through eval()

This commit is contained in:
Martin Stubenschrott
2007-09-27 00:35:57 +00:00
parent c2fa37e4b3
commit 8e2775530d
3 changed files with 110 additions and 24 deletions

View File

@@ -185,9 +185,7 @@ function CommandLine() //{{{
multiline_input_widget.collapsed = true;
var output = str.replace(/\n|\\n/g, "<br/>");
//output = ":" + command_widget.value + "<br/>" + output;
output += "<br/>"
var output = "<pre>" + str + "</pre>";
output += '<span id="end-prompt" style="color: green; background-color: white;">Press ENTER or type command to continue</span>';
output += '<span id="more-prompt" style="display: none; position: fixed; top: auto; bottom: 0; left: 0; right: 0; color: green; background-color: white;">';
output += "-- More --";
@@ -289,7 +287,7 @@ function CommandLine() //{{{
str = "";
setNormalStyle();
if (flags || str.indexOf("\n") > -1 || str.indexOf("\\n") > -1 || str.indexOf("<br>") > -1 || str.indexOf("<br/>") > -1)
if (flags || str.indexOf("\n") > -1 || str.indexOf("<br>") > -1 || str.indexOf("<br/>") > -1)
{
setMultiline(str);
}