From c5249e1b832716787bcce14e1487a07294d7b2e3 Mon Sep 17 00:00:00 2001 From: chlee0925 Date: Thu, 10 Aug 2017 17:24:24 +0800 Subject: [PATCH] Scroll to the end of page after every resetPrompt --- terminal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminal.js b/terminal.js index af49a2d..d915976 100644 --- a/terminal.js +++ b/terminal.js @@ -18,6 +18,8 @@ var Terminal = (function() { terminal.appendChild(newPrompt); newPrompt.querySelector(".input").innerHTML = " "; newPrompt.querySelector(".input").focus(); + + window.scrollTo(0, document.body.scrollHeight); }; var runCommand = function(terminal, cmd, args) {