First off, thanks for taking the time to contribute!
This project and everyone participating in it is governed by the OpenTTY Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to opentty@proton.me.
Before creating a bug report, please check the issue tracker — you might find that it has already been reported. When creating a report, include as much detail as possible:
- a clear, descriptive title
- the exact steps to reproduce the problem
- the behavior you observed after following the steps
- the behavior you expected instead, and why
- screenshots or error messages if possible
- which JVM / MIDP environment you're using
- which OpenTTY version you're running
Example:
## Bug Report
**OpenTTY Version:** 2026-1.18.1
**Environment:** Nokia S40, J2ME Loader 1.7.2
**Description:**
When I run `/bin/init`, I get a Kernel Panic:
`java.lang.ArrayIndexOutOfBoundsException at ELF.java:2456`
**Steps to Reproduce:**
1. Install OpenTTY
2. Launch the MIDlet
3. See the error immediately
**Expected Behavior:**
OpenTTY should boot normally to the console.Open an issue describing the feature, why it's useful, and — if possible — how you'd approach implementing it. Larger ideas can also be added to the roadmap.
OpenTTY has no working CI or desktop build in-repo; the real build happens on-device with a J2ME SDK (see docs/BUILD.md). When working on the source:
- The canonical runtime lives in
src/(Lua.java,OpenTTY.java,ELF.java,LuaCanvas.java). - Lua scripts under
src/binshould be sanity-checked with:lua -e "assert(loadfile('<file>'))".
src/— canonical MIDlet source (Java runtime + built-in/binLua commands)apps/<major>/— on-device app-store catalog, versioned by major release (e.g.apps/1.18/)res/— embedded resources (Lua modules, bundled apps, pages)dist/archive/<ver>— per-version filesystem snapshots of the app storedocker/— web services deployment (PHP + Python proxies)
- Do not comment J2ME/Lua runtime code unless the comment is essential.
- Write everything in English (US): code identifiers, comments, commit messages, docs, and on-device user-facing strings. The project must stay accessible to everyone; do not add Portuguese (or other) text, and translate existing non-English content when you touch it.
- Follow the existing naming and formatting style of the file you edit.
- Lua
stringlibrary:string.format,string.rep,string.gsub, andstring.gmatchdo not exist. Don't introduce them. Use nativestring.startswith/string.endswithrather than Lua reimplementations. io.dirs(path)returns entries only for/tmp/,/mnt/<sub>, and exactly/bin/,/etc/,/lib/,/boot/,/home/.- Daemon convention: daemon apps must check
arg[1] == "--deamon"(the typo is intentional), name themselves withos.setproc("name", ...), and end with a top-levelreturn function(payload, args, scope, pid, uid) ... endhandler. - Java exceptions carry no message; the runtime appends a Lua-side traceback.
- When adding an app to the store, update the app files and the catalog
table in the
sources.luaof your release'sapps/<major>/dir (mirrored on-device at/etc/sources, seeded fromsrc/etc/sources).
- Fork the repository and create a branch from
main. - Make your changes, keeping commits focused and explaining why.
- Sanity-check any Lua you touch with
lua -e "assert(loadfile('<file>'))". - Open a pull request against
mainand describe the change and how to verify it.
Thank you for helping make OpenTTY better!