19 lines
No EOL
486 B
JavaScript
19 lines
No EOL
486 B
JavaScript
for (let path of itty.env.path) {
|
|
path = fs.listDir(path)
|
|
for (let p in path) {
|
|
p = path[p]
|
|
if (p.ext === "js") {
|
|
const name = p.name.slice(0, -3)
|
|
if (itty.cursorX + name.length >= itty.width) {
|
|
itty.cursorX = 0
|
|
itty.cursorY++
|
|
}
|
|
while (itty.cursorY >= itty.height)
|
|
display.lift()
|
|
display.buffer(name + " ")
|
|
}
|
|
}
|
|
}
|
|
|
|
display.render()
|
|
quit() |