Skip to content

Commit

Permalink
maybe fixed autoscroll problem
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronw-dev committed Aug 16, 2024
1 parent e7f16eb commit 7df2061
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ async function init() {
await sleepAsync(dev ? 0 : 200)
canUserType = true;
while (true) {
terminal.scrollTop = 10000
let result = await input(`${username}@codeclub.local:~$ `)
result = result.toLowerCase().split(" ")
let command = result[0]
Expand Down Expand Up @@ -172,7 +171,7 @@ async function init() {
} else {
await typeLine(`"${command}" is not recognized as an internal or external command.\n`, 2);
}
console.log(commandHistory)
terminal.scrollTop = terminal.scrollHeight
commandIndex++;
}
}
Expand Down

0 comments on commit 7df2061

Please sign in to comment.