aboutsummaryrefslogtreecommitdiff
path: root/src/shell.html
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-26 12:23:04 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-26 12:23:04 -0700
commitab34c718a3e715898c9a02ccf9da70a6d2d3c158 (patch)
tree8c23c829321134656582e4e19c25ea7678f215a6 /src/shell.html
parenteb0f4c41bf79ccaf2236b5aa37bb019c2af7a6b5 (diff)
improve output textarea behavior
Diffstat (limited to 'src/shell.html')
-rw-r--r--src/shell.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell.html b/src/shell.html
index 0a42e0bb..9aa73e83 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -5,7 +5,7 @@
<center>
<canvas id='canvas' width='256' height='256'></canvas>
<hr>
- <textarea id="output" style="font-family: monospace; width: 80%" rows="8" readonly></textarea>
+ <textarea id="output" style="font-family: monospace; width: 80%" rows="8"></textarea>
<hr>
<div id='status'>Downloading...</div>
</center>
@@ -23,6 +23,7 @@
//text = text.replace(/>/g, "&gt;");
//text = text.replace('\n', '<br>', 'g');
element.value += text + "\n";
+ element.scrollTop = 99999; // focus on bottom
};
})(),
canvas: document.getElementById('canvas'),