Spelling.

This commit is contained in:
Garrett D'Amore 2023-02-20 15:41:09 -08:00
parent 729d178abc
commit 7b5fe1f3ee
1 changed files with 6 additions and 6 deletions

View File

@ -22,11 +22,11 @@ var cursorClass = "cursor-blinking-block"
var content // {data: row[height], dirty: bool} var content // {data: row[height], dirty: bool}
// row = {data: element[width], previous: span} // row = {data: element[width], previous: span}
// dirty/[previous being null] indicates if previous (or entire terminal) needs to be recaclulated. // dirty/[previous being null] indicates if previous (or entire terminal) needs to be recalculated.
// dirty is true/null if terminal/previous need to be re-calculated/shown // dirty is true/null if terminal/previous need to be re-calculated/shown
function initialize() { function initialize() {
resize(width, height) // intialize content resize(width, height) // initialize content
show() // then show the screen show() // then show the screen
} }
@ -48,7 +48,7 @@ function clearScreen(fg, bg) {
content.dirty = true content.dirty = true
for (let i = 0; i < height; i++) { for (let i = 0; i < height; i++) {
content.data[i].previous = null // we set the row to be recacluated later content.data[i].previous = null // we set the row to be recalculated later
for (let j = 0; j < width; j++) { for (let j = 0; j < width; j++) {
content.data[i].data[j] = document.createTextNode(" ") // set the entire row to spaces. content.data[i].data[j] = document.createTextNode(" ") // set the entire row to spaces.
} }