Terminal Language

Welcome! Here is some WIP documentation of the Terminal in ROBLOS

Terminal commands are created using the vanilla version of Lua

Here is an example of the lsls command

--#DESCRIPTION: Displays a list of files and subdirectories in a directory\nUsage: ls
modules.echo.off()
local folders = modules.folder.getFolder(modules.folder.getDir())
local stuff = {}
for name,_ in pairs(folders) do
	table.insert(stuff,name)
end
modules.echo.on()
	
print(table.concat(stuff,","))

So what is going on?

All programs must start with a description, to start your first program go to the notepad and start it off with the code below.

--#DESCRIPTION: Explain what your program does

Next let's get used to our tools

There is a new global variable called modulesmodules

These variables allow you to interact with the OS, some examples could be getting the current directory and changing it as well.

Current Modules Implemented

Folder Modules

Echo Module

Now you know, the basics of the terminal language.

As of now this is still a WIP and more modules are getting added along with more commands. This documentation will be changed to include more information but of now.

That's all folks!

Last updated

Was this helpful?