Skip to content

Commit 60b1956

Browse files
author
jossonsmith
committed
Update Shell handler and use a simple console rather than old black-white console box.
1 parent 9095112 commit 60b1956

File tree

1 file changed

+2
-39
lines changed
  • sources/net.sf.j2s.java.core/src/java/lang

1 file changed

+2
-39
lines changed

sources/net.sf.j2s.java.core/src/java/lang/Console.js

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -197,47 +197,10 @@ Console.loopChecking = function () {
197197
*/
198198
/* protected */
199199
Console.createConsoleWindow = function (parentEl) {
200-
var b = document.body;
201-
var s = b.parentNode.style; // html
202-
s.height = "100%";
203-
s.margin = "0";
204-
s.padding = "0";
205-
s.overflow = "hidden";
206-
s = b.style; // body
207-
s.height = "100%";
208-
s.margin = "0";
209-
s.padding = "0";
210-
s.overflow = "hidden";
211-
212-
var console = document.createElement ("DIV");
213-
console.style.cssText = "background-color: black;" +
214-
"color: white;" +
215-
"overflow: scroll;" +
216-
"font-family: Arial, sans-serif;" +
217-
"font-size: 10pt;" +
218-
"font-weight: bold;" +
219-
"width: 100%;" +
220-
"height: 100%;";
221-
//document.body.appendChild (console);
222-
if (b.childNodes.length == 0) {
223-
b.appendChild (console);
224-
} else {
225-
b.insertBefore (console, b.childNodes[0]);
226-
}
227-
return console;
228-
/*
229200
var console = document.createElement ("DIV");
230-
console.style.cssText = "background-color: black;" +
231-
"color: white;" +
232-
"overflow: scroll;" +
233-
"font-family: Arial, sans-serif;" +
234-
"font-size: 10pt;" +
235-
"font-weight: bold;" +
236-
"width: 100%;" +
237-
"height: 200px;";
201+
console.style.cssText = "font-family:monospace, Arial, sans-serif;";
238202
document.body.appendChild (console);
239203
return console;
240-
*/
241204
};
242205

243206
/* protected */
@@ -408,7 +371,7 @@ window.error = function (s) {
408371

409372
/* public */
410373
window.log = function (s) {
411-
Console.consoleOutput (s + "\r\n", "yellow");
374+
Console.consoleOutput (s + "\r\n", "blue");
412375
};
413376

414377
/**

0 commit comments

Comments
 (0)