Skip to content
Levi Webb edited this page Oct 20, 2015 · 3 revisions

For computers, there is a text editor implemented that can be ran by default by using edit [filename].

It's a simple, command-based text editor that also lets you interact with it to change the cursor location. You can easily enter code by typing into the console like you would with any command, and set the cursor location by right-clicking the canvas. Text is always inserted before the cursor.

For deleting text, you can type any amount of characters after a - character to tell the editor that you want to delete some text. For example, /-8 would delete 8 characters.

There's a handful of other commands:

  • /-n adds a new line
  • /-q saves and quits
  • /-Q quits without saving
  • /-u scrolls up by two lines
  • /-d scrolls down by two lines
  • /-U scrolls to the top of the file
  • /-D scrolls to the bottom of the file
  • /-s adds a space
  • /-t adds four spaces (tab)

There's also a configuration file for the editor in each computer at /etc/edit/config. It's parsed as lua code, so it should be pretty straightforward to edit.

You can also remove color formatting in the editor by launching it with -s, which strips all formatting.

Clone this wiki locally