cyntachs / LiskelOS

A basic OpenComputer operating system that is fast and lightweight.
4 stars 1 forks source link

Liskel OS

A bare-bones OpenComputers operating system that is fast and lightweight.

Versions

Current version: LiskelOS 2.2.1

Minified version: LiskelOS 2.2.1 Compact

Previous version: LiskelOS 1.8 (Deprecated)

(Optional libraries for LiskelOS here)

Features

Installation

To install LiskelOS follow these steps:

How to use

Print to console:

print("hello world!")

Getting a file handler

-- returns a file handler which can be used as a parameter for other commands
f.open("openfile.txt")

Reading a file:

-- read file contents to console
print(f.readfile(f.open("afile.txt")))

Writing to file:

f.write(f.open("newfile.txt"),"text to write out")

Run a lua file:

-- no need to put .lua on the end of the filename
f.run("luafile")

Print a table

-- prints the table named 'mytable'
print(mytable)

Print out system tables

-- alternatively this can be used to print out the functions in a table like 'component'
-- examples:
print(component) -- prints out functions provided by component
print(f) -- prints all functions provided by the built in file IO library
print(component.filesystem.address) -- prints out filesystem UUID
print(_G) -- prints out all functions and tables in global (2.1 only)

And much more! Just use the print feature above!