mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-13 07:48:30 +00:00
| .. | ||
| locales | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
REPL
A simple demo application that provides a bare-bones REPL framework.
Integration
- Add a UX context by editing
services/gam/src/lib.rs/EXPECTED_BOOT_CONTEXTS - Copy this demo application, and rename the relevant structures in its
Cargo.tomlandmain.rs. - Add it to the Workspace
default-membersandmembersarrays by editing./Cargo.toml - Add it to the build by editing
xtask/src/main.rsand inserting it into the relevant descriptor. Typically, you would insert your app into thehw_pkgsarray, as this is what is built and targeted for full hardware builds. Most of the other trimmed-down descriptors are for debug, emulation, and benchmarking. - (optional) You may also need to run
cargo xtask generate-localesif you modify/add any internationalization strings. - Add entries to the app switching menu.
services/status/src/appmenu.rsto add the menu item (pluslocales/i18n.jsonin the status directory if you want translated names for the app), andservices/status/src/main.rsto add the Opcode (inside theStatusOpcodestruct, around line 55) and the actual operation itself (in the mainloop, around line 670).