diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-26 12:23:04 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-26 12:23:04 -0700 |
commit | ab34c718a3e715898c9a02ccf9da70a6d2d3c158 (patch) | |
tree | 8c23c829321134656582e4e19c25ea7678f215a6 /src/shell.html | |
parent | eb0f4c41bf79ccaf2236b5aa37bb019c2af7a6b5 (diff) |
improve output textarea behavior
Diffstat (limited to 'src/shell.html')
-rw-r--r-- | src/shell.html | 3 |
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, ">"); //text = text.replace('\n', '<br>', 'g'); element.value += text + "\n"; + element.scrollTop = 99999; // focus on bottom }; })(), canvas: document.getElementById('canvas'), |