programs test
This commit is contained in:
parent
cda6f727f6
commit
e0b5c4b2ea
4 changed files with 31 additions and 1 deletions
1
programs.yarn
Normal file
1
programs.yarn
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"protected":false,"mode":"f","metadata":{"name":"programs","author":"Luna Magdalena :3","version":[1],"dependencies":["info"],"paths":{"programs.js":"%B/programs.js"}},"content":"{\"programs.js\":{\"protected\":false,\"metadata\":{},\"mode\":\"f\",\"content\":\"for (let path of itty.env.path) {\\n path = fs.listDir(path)\\n for (let p in path) {\\n p = path[p]\\n if (p.ext === \\\"js\\\") {\\n const name = p.name.slice(0, -3)\\n if (itty.cursorX + name.length >= itty.width) {\\n itty.cursorX = 0\\n itty.cursorY++\\n }\\n while (itty.cursorY >= itty.height)\\n display.lift()\\n display.buffer(name + \\\" \\\")\\n }\\n }\\n}\\n \\ndisplay.render()\\nquit()\"}}"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue