Apps and home

On a Rinc with storage, such as the Fruit Jam's SD card, each app is a Rio file in a folder of its own name: /apps/bounce/bounce.rio. Home lists them, and its first line describes it:

# Bounce: the arrow keys tilt gravity

Home is an app too (system/home/home.rio), using procs any app can:

  • appfiles.list(out) (Rinc's library) looks for the apps, adds a line for each to a Blob (its name, a tab, and its first line without the #), and says how many there are.
  • pc.launch(name) starts an app (or home, or console) after the current frame.

So is the console (system/console/console.rio): it runs the Rio you type in a session of its own, with pc.rioStart, pc.rioEval and the rest (see Rio inside an app), and reads and writes apps with Rinc's library appfiles (appfiles.source, appfiles.save, appfiles.remove). And so is the editor (system/edit/edit.rio), which opens, saves and runs apps the same way.

The system key with Esc always goes home: Windows+Esc, a controller's Xbox+Back, or Ctrl and Shift tapped together and then Esc.