|
|
@ -203,7 +203,7 @@ function clear(ctx) { |
|
|
|
/* Auto-scroll if the scrollbar is near the bottom, otherwise do nothing. */ |
|
|
|
/* Auto-scroll if the scrollbar is near the bottom, otherwise do nothing. */ |
|
|
|
function checkScrolling() { |
|
|
|
function checkScrolling() { |
|
|
|
if ((stdout.scrollHeight - stdout.scrollTop) <= stdout.offsetHeight) { |
|
|
|
if ((stdout.scrollHeight - stdout.scrollTop) <= stdout.offsetHeight) { |
|
|
|
stdout.scrollTop = stdout.scrollHeight; |
|
|
|
stdout.scrollTop = stdout.scrollHeight; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|