Skip to content

Commit 4ea39b0

Browse files
author
Jean-Baptiste Doderlein
committed
Update autoscroll function to fit terminal window
1 parent 2fe923a commit 4ea39b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js/editor_change.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ let clean_content = function (content) {
4848
* Auto scroll down output interpreter
4949
*/
5050
function autoscroll_output() {
51+
if(terminalFitter){
52+
terminalFitter.fit();
53+
}
5154
let container = document.getElementsByClassName("xterm-viewport")[0];
5255
container.scrollTop = container.scrollHeight;
5356
}

0 commit comments

Comments
 (0)