Skip to content

v2.3 — Terminal & Dot Editor

Latest

Choose a tag to compare

@engneer-hamachan engneer-hamachan released this 03 Sep 10:33
46db9db

Terminal

  • Added a terminal to the file manager. Press t to open it, and exit to return to the list.
  • Added the commands cd, ls, pwd, run, vim, md, dot, compile, compile --all, touch, mkdir, rm, mv, cp, irb, python-repl, top, clear, help, reboot and exit.
  • Added command history on the up and down keys, Tab completion of command and entry names, and Ctrl-F to accept the suggestion shown after the cursor.
  • vim with a name that does not exist yet creates the file.
  • top shows battery, VM, RAM and stack usage as bars.

REPL

  • Added irb, a Ruby REPL running on the on-screen console. Each line is compiled and run in a sandbox, and its result is printed as => value.
  • Added python-repl, a MicroPython REPL. The runtime stays open until the REPL is left.
  • Both read further lines while the input is incomplete, showing ...> (Ruby) or ... (Python). Esc returns to the terminal, and Ctrl-C discards the line being typed.

Dot Images

  • Added .a5d dot images and an on-device dot editor. Open one from the file manager, or with the dot command; a new file starts as a 32x32 blank image.
  • Editor keys: h j k l to move, Space to paint, p for pen mode, 09 and af to pick a palette color, x and z to mark and unmark hitbox dots, g for the grid, s to save, q to quit.
  • Added the Dot API to PicoRuby and MicroPython: load, edit, width, height, the painted bounds, push onto a Sprite, and overlap? for collision, either by painted dots or by the hitbox marks.

Default UI

  • The UI the device starts in is read from /sdcard/Area512_data/etc/ui at boot. default=terminal starts in the terminal, default=graphical starts in the file manager. Without the file the file manager is used.