I tried that one. It didn't work, nor did any of the other JS scrolling options. The box doesn't have a scroll until it overflows (done with CSS - overflow:scroll;
And My code here looks like this:
-
<div class="consoleBox">
-
<p id="consoleOutput" class="consoleText"></p>
-
</div>
-
<br />
-
<div style="margin-left:auto;margin-right:auto;width:95%;">
-
<input type="text" id="consoleInput" style="width:75%" />
-
<input type="button" onclick="sendToConsole();" style="width:20%;margin-left:3px;" value="Send to console" />
-
</div>
-
And when I add to it, I do by the following:
-
var consoleScreen = document.getElementById("consoleOutput");
-
var data = encodeProcess.standardOutput.readUTFBytes(encodeProcess.standardOutput.bytesAvailable);
-
consoleScreen.innerText += data;
-
encodeProcess is a process thread handle object, that allows me to read and write to STDOUT and STDIN, respecively. Anyway, none of the scroll properties that I saw in Javascript proper let me scroll like I needed to, so now I'm trying jQuery. Does anybody have another idea? Basically, the output from this terminal will exceed 10 pages every time, and sometimes might be hundreds of pages.