mirror of https://github.com/gdamore/tcell.git
Spelling.
This commit is contained in:
parent
729d178abc
commit
7b5fe1f3ee
|
@ -22,11 +22,11 @@ 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
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue