10 Commits

Author SHA1 Message Date
octacian
ca6beff464
Move clear, shutdown, and reboot to OS
* Add `system.shutdown()`
* Add `system.reboot()`
* Add `clear` command
* Add `shutdown [-r]` command
2018-11-24 22:45:30 -08:00
octacian
12415cc700
Replace input, output, and output_editable APIs for system.* keys
* [set/get]_input -> system.input (string)
* [set/get]_output -> system.output (string)
* set_output_editable -> system.output_editable (bool)
2018-11-24 21:25:27 -08:00
octacian
0326648b0d
Replace OS APIs in favour of a system table
`get_os` and `set_os` APIs are replaced with a `system` table which 
stores the data and limits the valid keys and types via metatables.
2018-07-23 18:39:42 -07:00
octacian
327a6dd29e
Clean up custom environment definition
* Separate custom function definitions from make_env for better
readability
* Add newlines between functions
* Make comments more descriptive
* Move `Settings()` API to `fs.read_settings()`
2018-07-23 12:26:21 -07:00
octacian
d749eafb28
Preserve, improve environment and replace userdata
* Preserve the environment table so that it must
only be regenerated after a game restart, after
a computer is restarted, and at the tiem of the
initialization of a computer.
* Replace the current meta-based userdata
mechanisms with a global `ram` variable within the
environment, as the preservation of the environment
itself causes its global variables to be preserved
as well
* Make `get_attr` convert meta to a table before
accessing the requested key in order to ensure that
the meta can be correctly accessed even if it is
not a string
* Initialize output_editable meta on node place
2018-06-01 07:50:42 -07:00
octacian
fdeb68a5d5
Improve help and fix blank output after reinit
* Add clear to help
* Add off/shutdown to help
* Add reboot/restart to help
* Sort help alphabetically
* Ensure that start.lua is automatically run after
the filesystem is reinitialized in order to prevent
the output buffer from being empty
2018-05-31 19:13:15 -07:00
octacian
613657d454
Add luacheck and convert spaces to tabs 2018-05-31 11:00:44 -07:00
octacian
c4bd091ae8 OctOS: Add params field to applications
Shows parameters for each command in help.
2017-03-28 16:31:10 -07:00
octacian
9ec3d9e76f OctOS: Add command framework
Documented in commands.md and applications.md.
2017-03-28 16:23:49 -07:00
octacian
a4e0a2c875 Computers: Rename BiosOS to octOS
Thanks for the idea OldCoder!
2017-01-30 22:14:27 -08:00