From 7b5fe1f3ee14fcbec37f0f8b2d4708a9232baebc Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 20 Feb 2023 15:41:09 -0800 Subject: [PATCH] Spelling. --- webfiles/tcell.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webfiles/tcell.js b/webfiles/tcell.js index cd48dd8..67acd72 100644 --- a/webfiles/tcell.js +++ b/webfiles/tcell.js @@ -22,16 +22,16 @@ var cursorClass = "cursor-blinking-block" var content // {data: row[height], dirty: bool} // 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 function initialize() { - resize(width, height) // intialize content + resize(width, height) // initialize content show() // then show the screen } function resize(w, h) { - + width = w height = h content = {data: new Array(height), dirty: true} @@ -48,7 +48,7 @@ function clearScreen(fg, bg) { content.dirty = true 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++) { content.data[i].data[j] = document.createTextNode(" ") // set the entire row to spaces. } @@ -61,7 +61,7 @@ function drawCell(x, y, mainc, combc, fg, bg, attrs) { var span = document.createElement("span") var use = false - + if (fg) { span.style.color = intToHex(fg); use = true } if (bg) { span.style.backgroundColor = intToHex(bg); use = true } @@ -195,4 +195,4 @@ document.addEventListener("paste", e => { const go = new Go(); WebAssembly.instantiateStreaming(fetch(wasmFilePath), go.importObject).then((result) => { go.run(result.instance); -}); \ No newline at end of file +});