-
Notifications
You must be signed in to change notification settings - Fork 234
The editor
Jaume Olivé Petrus edited this page Jun 6, 2017
·
17 revisions
Lua RTOS has an integrated editor that allows you to edit files. You can edit a file typing os.edit("file") in the Lua prompt, or typing edit file in the shell.
-- system.lua
--
-- This script is executed after a system boot or a system reset and is intended-- for setup the system.
---------------------------------------------------
-- Main setups
---------------------------------------------------
os.loglevel(os.LOG_INFO) -- Log level to info
os.logcons(true) -- Enable/disable sys log messages to console
os.shell(true) -- Enable/disable shell
os.history(false) -- Enable/disable history
/system.lua Ctrl+Y=Help Ln 1 Col 1 In the table below you will find all available functions of the editor:
| Key | Function |
|---|---|
| Ctrl+S | Save file |
| Ctrl+Q | Quit |
| up | Move one line up |
| down | Move one line down |
| left | Move one character left |
| right | Move one character right |
| right | Move one character right |
| page up | Move one page up |
| page down | Move one page down |
