Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit ab48ec1

Browse files
authored
feat: add scroll to bottom functionality to PanelTerminalClient (#138)
1 parent bf1b6db commit ab48ec1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/PanelTerminalClient.client.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ watch(
6565
const reader = p.output.getReader()
6666
function read() {
6767
reader.read().then(({ done, value }) => {
68-
if (value)
68+
if (value) {
6969
terminal.write(value)
70+
terminal.scrollToBottom()
71+
}
7072
if (!done)
7173
read()
7274
})
@@ -78,6 +80,7 @@ watch(
7880
terminal.writeln('')
7981
terminal.writeln(`-------------`)
8082
terminal.writeln('')
83+
terminal.scrollToBottom()
8184
}
8285
8386
read()

0 commit comments

Comments
 (0)