Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Primatives:
- stdout_write(msg)
- Outputs msg to the console
- stdin_read(rchar)
- Reads input from the console, optionally replacing the characters written to the console with rchar
- Filesystem:
- fs_mount(address, index)
- Mounts drive with UUID address to the FS table with index
- fs_proxy(index)
- Returns the proxy for the drive in the FS table with index
- fs_get_drive()
- Returns the letter of the active drive
- fs_set_drive(index)
- Sets the active drive to the index drive in the filesystem table.
- fs_open(path,mode)
- Opens the file path in access mode mode. Mode defaults to "r"
- fs_write(handle, data)
- Writes data to the file descriptor handle.
- fs_read(handle,length)
- Reads data from a file descriptor. Length is optional, defaults to infinite, however that doesn't quite work as filesystems have a max size.
- fs_close(handle)
- Closes a file descriptor
- fs_exists(path)
- Checks whether a file exists
- fs_is_dir(path)
- Checks whether a file is a directory
- fs_mkdir(path)
- Creates a directory
- fs_list(path)
- Lists files in a directory. Defaults to /
- fs_remove(path)
- Deletes a file
- fs_move(path)
- Moves a file.
- Component
- component_list(type)
- Wrapper for component.list
- component_type(addr)
- Returns the type of a component
- component_proxy(addr)
- Returns a proxy of a component
- component_methods(addr)
- Returns the methods of a component.
- To boot to sked:
- At the prompt, usually after a memory usage notification, type 'load', followed by 'sked.lua'
- That will get you to sked, shadowkat editor, my really basic line editor. I need to update the docs, but you can find them here: http://pastebin.com/gXtc0nze
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement